Tuesday, August 11, 2009

Improved type safety when dealing with generic types, generic methods and re...

 
 

Sent to you by Sparkie via Google Reader:

 
 

via DotNetSlackers Latest ASP.NET News by eXtensible mind on 8/10/09

Compile-time safety is always important, as it reduces the chances that a refactoring can break existing code that compiles successfully. This benefit took me previously to the path of using expression trees to achieve strong-typed reflection. There is, however, an alternative that works on previous versions of .NET and doesnt involve expression trees. It essentially involves creating a delegate of the target method, and using the delegate properties to get to the corresponding MethodInfo: Action<string>...

Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.



Email this Article

 
 

Things you can do from here:

 
 

No comments: