how can I get the type name (in string) of instance boxed in object. I can't use is or as operators. For example:
object a= student1; //student1 is instance of Student class
Next I will get it object in another library, where no Student class inside and no reference. And I need something like this:
string typeName=GetTypeNameInsideObject(obj1)
Thanks
This should do the trick:
a.GetType().Name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With