|
by Paulo Morgado via Paulo Morgado : C# on 8/6/2010 12:40:39 AM
Following my last post, I received lots of enquiries about how got to master the creation of expression trees. The answer is: .NET Reflector On that post I needed to to generate an expression tree for this expression: Expression<Func<object, object>> expression = o => ((object)((SomeType)o).Property1);
I just compiled that code in Visual Studio 2010, loaded the assembly in .NET Reflector, and disassembled it to C# without optimizations (View –> Options –> Disassembler –&
... [ read more ]
|
|