Unknown Recipes
Sign in
|
Join
Home
Contact
RSS
Atom
Search
Tags
Active Directory
ADO.NET
ASP.NET
General
Linq
MSBuild
SQL Server
WCF
WPF
Sponsors
advertise here
News
Navigation
Home
Blogs
Archives
March 2011 (1)
February 2011 (1)
October 2010 (1)
September 2010 (1)
July 2010 (1)
May 2010 (3)
March 2010 (1)
August 2009 (1)
July 2009 (2)
June 2009 (1)
May 2009 (1)
April 2009 (4)
March 2009 (1)
January 2009 (2)
August 2008 (1)
March 2008 (1)
February 2008 (1)
January 2008 (1)
December 2007 (1)
November 2007 (1)
October 2007 (6)
September 2007 (3)
Browse by Tags
All Tags
»
Linq
(
RSS
)
General
Getting the default value for a Type
by
marianor
Sometimes we need to get a default value for an specific type but we only know the type in runtime, then we can not use default(T). One way to do this is to use a simple extension method: public static object DefaultValue( this Type...
Filed under:
General
,
Linq
More Posts