G
Guest
We are using a tool to managed our help documentation for a .NET library we
support, and we have a policy not to document private or internal methods or
explicitly implemented interface methods. For .NET 1.1, it was easy for our
tool to filter out explicitly implemented interface methods because they were
private, and also because the MethodInfo.Name property for the method always
has a period "." in the name (ie. "ICollection.Count"). Now, with the 2.0
framework, explicit interface implementation methods are public, and the
MethodInfo.Name now only returns the method name itself, and not the
interface. We still want to filter out these explicitly implemented
interface methods but can't figure out a way to do so. There doesn't appear
to be any property or method on the MethodInfo class that can tell us this
information. It's easy to tell in ILDASM because the method has an .override
keyword; is there a programmatic way to get this same information via
reflection?
support, and we have a policy not to document private or internal methods or
explicitly implemented interface methods. For .NET 1.1, it was easy for our
tool to filter out explicitly implemented interface methods because they were
private, and also because the MethodInfo.Name property for the method always
has a period "." in the name (ie. "ICollection.Count"). Now, with the 2.0
framework, explicit interface implementation methods are public, and the
MethodInfo.Name now only returns the method name itself, and not the
interface. We still want to filter out these explicitly implemented
interface methods but can't figure out a way to do so. There doesn't appear
to be any property or method on the MethodInfo class that can tell us this
information. It's easy to tell in ILDASM because the method has an .override
keyword; is there a programmatic way to get this same information via
reflection?