Regards, Sheo Narayan http://www.dotnetfunda.com
class BaseClass {} class DerivedClass: BaseClass {} class Example { static void RevealType (BaseClass baseClass) { Console.WriteLine (typeof(BaseClass)); Console.WriteLine (baseClass.GetType()); } static void Main() { RevealType (new DerivedClass()); } }
Thanks&Regards LakshmiNarayana Nalluri.
Regards, Susan
Login to post response