?
=?iso-8859-1?Q?S=F8ren_M._Olesen?=
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("System.Int32").GetConstructor(New Type() {Type.GetType("System.Int32")})
Dim key As Object = keyci.Invoke(New 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("System.Int32").GetConstructor(New Type() {Type.GetType("System.Int32")})
Dim key As Object = keyci.Invoke(New Object() {"123"})
however it doesn't seem to work....
TIA
Søren