Standing on the shoulders of giants. RSS 2.0
# Monday, May 31, 2004

Not sure if this is new for VS 2005, but I don't remeber seeing it earlier:

object Convert.ChangeType( object o, Type t )

Very usefull in the following scenario:

public T ConvertFromString(string s){
     return (T)Convert.ChangeType(s, typeof(T));
}

 

Monday, May 31, 2004 2:57:43 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] - Trackback
Visual Studio 2005
Comments are closed.
Ads
About
© Copyright 2012
Paul van Brenk
Sign In
newtelligence dasBlog 2.3.2011.0
All Content © 2012, Paul van Brenk
DasBlog theme 'Business' created by Christoph De Baene (delarou)