B
Brett Romero
Is there a way to get a generic type and use it to cast an "object"?
For example:
SomeClass<T>{}
Used as:
SomeClass<MyClass> sc = new SomeClass<MyClass>();
I'd like to get MyClass as a type out of sc and do this:
(sc.GenericType)SomeObject;
or what ever that syntax will look like. Any suggestions?
Thanks,
Brett
For example:
SomeClass<T>{}
Used as:
SomeClass<MyClass> sc = new SomeClass<MyClass>();
I'd like to get MyClass as a type out of sc and do this:
(sc.GenericType)SomeObject;
or what ever that syntax will look like. Any suggestions?
Thanks,
Brett