﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Jacob Stanley commented on Safe for multi threading...</title><description>So it would, wow I must've having been having a bad day yesterday!
</description><link>http://ayende.com/3637/safe-for-multi-threading#comment5</link><guid>http://ayende.com/3637/safe-for-multi-threading#comment5</guid><pubDate>Fri, 10 Oct 2008 03:17:16 GMT</pubDate></item><item><title>configurator commented on Safe for multi threading...</title><description>@Jacob, How does the ordering matter?  Am I missing something here? It seems that the recursive call would check the inner type for immutability whether it has been checked or not, wouldn't it?
</description><link>http://ayende.com/3637/safe-for-multi-threading#comment4</link><guid>http://ayende.com/3637/safe-for-multi-threading#comment4</guid><pubDate>Thu, 09 Oct 2008 16:28:07 GMT</pubDate></item><item><title>Jacob Stanley commented on Safe for multi threading...</title><description>Ahh ok, you are doing that, it's just that it depends on the ordering of types in the GetRootTypesToCheck() collection as to whether it works or not.
</description><link>http://ayende.com/3637/safe-for-multi-threading#comment3</link><guid>http://ayende.com/3637/safe-for-multi-threading#comment3</guid><pubDate>Thu, 09 Oct 2008 03:43:52 GMT</pubDate></item><item><title>Jacob Stanley commented on Safe for multi threading...</title><description>It would also be cool to check if the type of the field was immutable. Otherwise the following would be verified as thread safe, when it's not:
  
  
class MyClass
  
{
  
  private readonly List
&lt;int field;
  
  // ...
  
}
  
  
I remember reading a blog article with some good ideas about verifying immutability - 
[blogs.msdn.com/.../...ng-immutability-in-code.aspx](http://blogs.msdn.com/kevinpilchbisson/archive/2007/11/20/enforcing-immutability-in-code.aspx)&gt;.
</description><link>http://ayende.com/3637/safe-for-multi-threading#comment2</link><guid>http://ayende.com/3637/safe-for-multi-threading#comment2</guid><pubDate>Thu, 09 Oct 2008 03:40:39 GMT</pubDate></item><item><title>Judah Himango commented on Safe for multi threading...</title><description>Heheh, nice!
</description><link>http://ayende.com/3637/safe-for-multi-threading#comment1</link><guid>http://ayende.com/3637/safe-for-multi-threading#comment1</guid><pubDate>Thu, 09 Oct 2008 01:43:04 GMT</pubDate></item></channel></rss>