D
dmcdougald
I have scenario where I need to create an object of an unknown type.
Reference types work fine. I call Type.GetConstructors(), let the
user pick a ConstructorInfo and then call ConstructorInfo.Invoke().
However, for the value types I have tested (like Int32)
GetConstructors doesn't return anything.
Any help is appreciated.
Reference types work fine. I call Type.GetConstructors(), let the
user pick a ConstructorInfo and then call ConstructorInfo.Invoke().
However, for the value types I have tested (like Int32)
GetConstructors doesn't return anything.
Any help is appreciated.