Type type = obj.GetType(); while (type != null) { Console.WriteLine(type.Name); type = type.BaseType; }