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
Comment actions Permalink
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.
0

Please sign in to leave a comment.