Thursday, December 6, 2007

Display object info .Net

1 comment:

Nikolay Nikolov said...

Yup, reflection is one of the most powerfull sides of .NET.

One thing, I found in the example code - it is listing only public fields and properties.

If you want to list the methods as well, you can try using:

MethodInfo[] mi = type.GetMethods();

or, you could use

MemberInfo[] mmi = type.GetMembers();

which will return any public methods, fields or properties, including any public constructors.

I'll make a post soon, about System.Reflection and how to use it to create a plugin-extendable application.

Ya-Taaa!