how to access derived class members from base class in c# code example
Example: how to get derived class from base class C#
class Base {
[...]
}
class Derived : Base {
[...]
}
/* if an instance of the base class is derived you will be able to
cast that instance to it's derrived class, as such: */
Base baseInstance = new Derived();
Derived derivedFromInstance = (Derived)baseInstance;