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 11:57:43 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Visual Studio 2005
Comments are closed.
About
© Copyright 2009
Paul van Brenk
Sign In
newtelligence dasBlog 2.3.8275.16006
All Content © 2009, Paul van Brenk
DasBlog theme 'Business' created by Christoph De Baene (delarou)