type conversion
-
how can i convert a system.string to system.type Type ct=null; ct=(Type)Convert.ChangeType("string",typeof(Type)); why the above lines shows error please help me chakkara
-
how can i convert a system.string to system.type Type ct=null; ct=(Type)Convert.ChangeType("string",typeof(Type)); why the above lines shows error please help me chakkara
If you want to know the type use GetType Regards Hansjörg
-
how can i convert a system.string to system.type Type ct=null; ct=(Type)Convert.ChangeType("string",typeof(Type)); why the above lines shows error please help me chakkara
-
how can i convert a system.string to system.type Type ct=null; ct=(Type)Convert.ChangeType("string",typeof(Type)); why the above lines shows error please help me chakkara
TypeDescriptor.GetConverter()
-
how can i convert a system.string to system.type Type ct=null; ct=(Type)Convert.ChangeType("string",typeof(Type)); why the above lines shows error please help me chakkara
I assume that you have a string representing a type (like "System.String") and you want the System.Type corresponding to System.String: Type ct = Type.GetType("System.String", true); // True throws an exception if the type is not found. -------- "I say no to drugs, but they don't listen." - Marilyn Manson