Let’s say I have an array of objects with different specific generic types like int, string, datetime and etc
How can I after finding out which type is the object (with typeOf) can use the functions on that object ?
For example
I got Object [] a
and after checking it out I found that a[0] is a DateTime and i want to use it ToShortDateString property
how do I do that?
You can do that with a cast.