Hi
How do I dynamically create a type of System.Int32 with the value 123?? I've tried the following:
Dim keyci As ConstructorInfo = Type.GetType("S ystem.Int32").G etConstructor(N ew Type() {Type.GetType(" System.Int32")} )
Dim key As Object = keyci.Invoke(Ne w Object() {"123"})
however it doesn't seem to work....
TIA
Søren
How do I dynamically create a type of System.Int32 with the value 123?? I've tried the following:
Dim keyci As ConstructorInfo = Type.GetType("S ystem.Int32").G etConstructor(N ew Type() {Type.GetType(" System.Int32")} )
Dim key As Object = keyci.Invoke(Ne w Object() {"123"})
however it doesn't seem to work....
TIA
Søren
Comment