How to get parent class type?

  • Thread starter Thread starter Robin.Liu
  • Start date Start date
R

Robin.Liu

Reflection can help us to obtain all run-time information
of an object, so I think there must be someway to get the
object's parent class type infomation. Could I do that?

Thanks,

Robin.Liu
 
Robin.Liu said:
Reflection can help us to obtain all run-time information
of an object, so I think there must be someway to get the
object's parent class type infomation. Could I do that?

obj.GetType().BaseType.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top