Interface map enhancement to ReflectionSearch

Tom Glastonbury's Avatar

Tom Glastonbury

15 Aug, 2016 04:10 PM

It's quite laborious to answer the following questions, it would be great if ReflectionSearch could be enhanced to help out:

1. Which interface methods (if any) does a given method implement?

I suggest:
MethodInfo[] ReflectionSearch.GetInterfaceMethodsImplementedBy( MethodInfo method )

(2) & (3) could be derived from the answer to (1), but it may be more optimal to provide specific implementation:

2. Does a given method implement any methods of a specified interface?

I suggest:
bool ReflectionSearch.IsImplementationOfMethodOf( MethodInfo method, Type interfaceType )

3. Does a given method implement a specific interface method?

I suggest:
bool ReflectionSearch.IsImplementationOf( MethodInfo method, MethodInfo interfaceMethod )

  1. Support Staff 1 Posted by PostSharp Techn... on 18 Aug, 2016 01:53 PM

    PostSharp Technologies's Avatar


    this would be a good API to have. Could you please create a feature request on our UserVoice page?



  2. Support Staff 2 Posted by PostSharp Techn... on 23 Sep, 2016 03:41 PM

    PostSharp Technologies's Avatar


    We're closing this request because we believe the question has been answered and you have not replied for a few days. Feel free to reopen the discussion if you need more help.

    PostSharp Team

  3. PostSharp Technologies closed this discussion on 23 Sep, 2016 03:41 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac