In C#, what is the best way to access a property of the derived class when the generic list contains just the base class.
public class ClassA : BaseClass {
The whole premise doesn't make sense - what would PropertyB be for the a instance?
You can do this if you do manual runtime type checking (inst is Foo), and then cast to the type with the property you want.