CSharpFeeds - All your C# feeds in one place.

Monday, August 04, 2008

C# And Visual Basic Generate Different Expression Trees

by Paulo Morgado via Paulo Morgado : C# on 8/4/2008 12:23:00 AM

(This was pointed out to me by Frans Bouma and explained by Jon Skeet) Imagine you have this set of classes:public class A { public virtual string P { get { return "A"; } } } public class B : A { } public class C : B { public override string P { get { return "C"; } } } And this class:public static class Reporter { public static void Report<T>(T target, Expression<Func<T, string>> expression) { Consol ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us