Original Post
I'm trying to get a list of all the member functions of my class, but nothing has worked as of yet. Here's my most recent attempt:
Type type = Type.GetType("BackgroundGenerator.Generator");
MemberInfo[] arMemberInfo = type.GetMembers(
//BindingFlags.LookupAll |
BindingFlags.DeclaredOnly
);
The GetType call seems to work, but arMemberInfo ends up with nothing in it. Notice also I've commented out LookupAll, as it doesn't seem to exist anymore (but lots of good examples use it). Has this been deprecated? I can get single methods like this: MethodBase method = type.GetMethod("Method1"); Generator is the class I'm interested in, and has plenty of member functions. I can post more code if that would be helpful. I'm new to C#, so any help would be great.