MOAR Objects

Steve Wilkes' blog on .NET, Agile, TDD, design patterns and all that jazz

Extension Methods

There are 1 entries for the tag Extension Methods

A C# Extension Method using Expression Trees to Create an instance from a Type

I recently wrote a Type.GetInstance() extension method, and used the opportunity to play around with Expression Trees, which I'd recently read up on. Here's the set of extension methods I came up with, which allow you to quickly create an instance of a Type from the Type itself.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
  •   Short Url: http://wblo.gs/ca9
Posted On Wednesday, January 11, 2012 8:46 PM

About
  • Contact
  • Login
Tag Cloud
  • Agile
  • Amazon
  • ASP.NET
  • ASP.NET MVC
  • Books
  • Extension Methods
  • MVC
  • Programming
  • more tags...
Archives
  • June 2017 (1)
  • March 2017 (1)
  • December 2016 (1)
  • November 2016 (3)
  • October 2016 (2)
  • June 2016 (1)
  • May 2016 (1)
  • April 2016 (1)
  • March 2016 (2)
  • February 2016 (5)
  • March 2015 (1)
  • January 2015 (4)
  • December 2014 (3)
  • January 2014 (1)
  • December 2013 (3)
  • November 2013 (1)
  • July 2013 (1)
  • March 2013 (1)
  • February 2013 (1)
  • January 2013 (2)
  • November 2012 (1)
  • October 2012 (3)
  • August 2012 (1)
  • May 2012 (1)
  • February 2012 (3)
  • January 2012 (1)
  • November 2011 (2)
  • October 2011 (1)
  • September 2011 (2)
  • August 2011 (3)
  • July 2011 (1)
  • June 2011 (2)
  • May 2011 (2)
  • April 2011 (5)
  • March 2011 (3)
Post Categories
  • Programming
  • Software
  • Humor and Fun
  • The Stump
  • Day Job
  • Home Ownership
  • & Etc.
  • Personal
  • Hurricane
  • Forms Designer
Syndication
  • RSS
  • ATOM

© Steve Wilkes

Key West theme by Robb Allen.