Home
  Latest posts
  My Writings
  My Code
  My Gallery
  About me
 
  rssfeed Syndication
 
Bloggtoppen.se
 
 
Links
  Cornerstone
  SweNug
 
Post categories
  misc (48)
  Architecture (21)
  C# (19)
  Asp.Net (2)
  Vb.Net (2)
  Training (7)
  Data (19)
  Events (40)
  Platform (2)
  Orcas (4)
  Updates (3)
  Methods (10)
  Tools (6)
  Announcements (14)
  Languages (1)
  Patterns (6)
  Opinions (11)
  Fun (3)
  Ineta (1)
  Opinion (0)
  Practices (2)
  WCF (5)
 
 
 

LINQ: Killing Reflection Softly

Tuesday, February 26, 2008

Roger just IM'ed a link to his blog: http://rogeralsing.com/2008/02/26/linq-expressions-access-private-fields/ where he removes the need for reflection to access private fields by creating an expression tree instead. Reeally cool and a lot more performant then reflection:

"The Reflection.FieldInfo approach took 6.2 seconds to complete.
The Compiled lambda approach took 0.013 seconds to complete.
That?s quit a big difference."

 

Comments


Comment
Title:
Your name:
Your url:
Text:
Please enter the text from the image: