property name and reflection question

  • Thread starter Thread starter M
  • Start date Start date
M

M

When I examine an object using getProperties() like so:

foreach (PropertyInfo proc in properties) {
fsObj.propertyName = proc.Name;
Console.Writeline(t + fsObj.propertyName);
}


I am returned the following:

MyCompany.MyClass.Subclass.PropertyName

The above result looks to be the fully qualified namespace name of the
object and property. What I really want is just the

SubClass.propertyName

How can I get this information?

Thank you!
 

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

Similar Threads


Back
Top