And to mention anothe thing: Reflection is slow.
If you have no idea what type it is, your code might need a little rework to have at least a basic knowledge.
Don't push through Object but an own baseclass that offers the very basic it must offer (or an abstract base class that works as an interface by defining all functionality that the extended types must have)
If you have no idea what type it is, your code might need a little rework to have at least a basic knowledge.
Don't push through Object but an own baseclass that offers the very basic it must offer (or an abstract base class that works as an interface by defining all functionality that the extended types must have)