How do I get the IMethodDeclaration?
I currently have access to the IClassDeclaration representing the class, and the IMethod representing the method. I need to access either the IMethodDeclaration (or the IClassBody, from which I can access all the IMethodDeclarations). How can I achieve this?
1 comment
Sort by
Date
Votes
You can get method declarations from an IClassDeclaration using the MethodDeclarations or MethodDeclarationsEnumerable properties. Or you can use IMethod.GetDeclarations() to navigate from the IMethod.
Please sign in to leave a comment.