U
Urs
Hi all,
I'm rather new to C# so please forgive my ignorance.
I'd like to list the public, non-inherited methods of a class. I thought
MethodInfo[] mi = typeof(string).GetMethods(
BindingFlags.Public | BindingFlags.DeclaredOnly);
would do just that, but no methods at all are returned.
Going on, I tried typeof(string).GetMethods(BindingFlags.Public),
which I believe is equivalent to typeof(string).GetMethods(),
but again, nothing is returned.
What am I doing wrong here ?
Thanks a lot for any help
I'm rather new to C# so please forgive my ignorance.
I'd like to list the public, non-inherited methods of a class. I thought
MethodInfo[] mi = typeof(string).GetMethods(
BindingFlags.Public | BindingFlags.DeclaredOnly);
would do just that, but no methods at all are returned.
Going on, I tried typeof(string).GetMethods(BindingFlags.Public),
which I believe is equivalent to typeof(string).GetMethods(),
but again, nothing is returned.
What am I doing wrong here ?
Thanks a lot for any help