Geeks With Blogs
Simon Cooper Peering into the depths of .NET April 2013 Entries
Inside Portable Class Libraries
Portable Class Libraries were introduced with Visual Studio 2010 SP1 to aid writing libraries that could be used on many different platforms - the full .NET 4/4.5 framework, Windows Phone, Silverlight, Xbox, and Windows Store apps. You simply select which platforms and versions you want to target, then the available subset of APIs are magically available. But how does it work? How does Visual Studio know what it can target, and how does the same assembly run on many different platforms? Today, I'll ......

Posted On Friday, April 19, 2013 3:41 PM

Subterranean IL: ThreadLocal revisited
Last year, I looked at the ThreadLocal type as it exists in .NET 4. In .NET 4.5, this type has been completely rewritten. In this post, I'll be looking at how the new ThreadLocal works in .NET 4.5. I won't be looking at all the implementation details, but concentrating on how this type works. Again, it's recommended you have the type open in a decompiler. No More Generics! The most obvious change is the lack of generic classes - it no longer uses generic instantiations to store individual thread ......

Posted On Thursday, April 18, 2013 5:09 PM

Copyright © simonc | Powered by: