G
Guest
Hi
I am trying to create an instance of a nullable type using System.Activator
for example
t is passed in from the caller and is the Type info for a nullable type or
can be a standard type i.e string, int etc.
object value = Activator.CreateInstance(t);
value always returns null
I am trying to create an instance of a nullable type using System.Activator
for example
t is passed in from the caller and is the Type info for a nullable type or
can be a standard type i.e string, int etc.
object value = Activator.CreateInstance(t);
value always returns null