Listing all properties in a class with a

Hakan used Ask the Experts™

I'm using COM-interface of third part tool in my application. I'm listing some property informations with like;

IBody is class and .mass, .length, .name is it's some of properties of IBody class but there are still other properties that i didn't list.

Now i wonder is there a way to list all properties which are belongs to that class in with their type(string, double, etc.)

I'll be glad if anyone has experience with that.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior .Net Consultant
Top Expert 2016
you will have to use Reflection. Get an example from


Thank you Mr. Moreau it took a time to adopt

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial