Suppose I have a custom control like:
MyControl : Control
if I have code like this:
List<Control> list = new ...
list.Add (myControl);
RolloutAnimation anim = list[0];
I know I can do it at compile time but I wanna do it at runtime and access MyControl specific functionality.
Why do you want to do it at runtime? If you have more types of Controls in your List, that have some specific functionality, but different types, perhaps they should implement a common interface: