Statically-typed reflection with LINQ

Posted by: eXtensible mind, on 21 Feb 2008 | View original | Bookmarked: 0 time(s)

Quite some time ago I posted about how to use LINQ to provide a strong-typed reflection API. I used a very old LINQ preview back then. With .NET 3.5 and C# 3.0 released now, it was time for an update. As part of the update, I also improved the API a little bit. Usage now is: MethodInfo toString = Reflect<object>.GetMethod(x => x.ToString()); The renamed Reflect<TTarget> class receives the type you want to reflect as a generic parameter. Then you can use GetMethod,...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: XLinq | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 708 | Hits: 45

Similar Posts

  • LINQ in Action samples in LINQPad more
  • Creating LINQToTwitter library using LinqExtender more
  • Silverlight Related Skills Post 2 more
  • Athena - A LINQ to flickr API (Release 1.4) more
  • Implementing SqlBulkCopy in Linq to Sql more
  • DevConnections Spring Slides and Demos more
  • Dynamic Queries and LINQ Expressions more
  • Is V1 of LINQ to SQL only suitable for RAD? more
  • Screencast: Enable Server Mode using LINQ (ASPxGridView & XtraGrid) more
  • Linq to SQL code posted in VB and C# more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD