CSharpFeeds - All your C# feeds in one place.

Saturday, January 19, 2008

Evil Extension method

by gavin via elephantsintheroom.org on 1/19/2008 1:40:03 AM

The Evil method (+ 1 overload and a MemberInfo extension), below, allows traversal of an object graph by string. It works on properties, fields and methods that take no parameters or indexers.   usage: string s = person.Evil("Home.Postcode.ToString");   static class ObjectExtension { public static object Evil(this object target , string s) { return target.Evil(s, '.', '\\', '/', ','); } public static object Evil(this object target ...

[ 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