title: Finding a method's declaring type
body: <p>Given a MethodDeclarationSyntax object how can I find out the method's declaring type?</p>
  
  <p>My actual problem is that I need to figure it out whether the referenced method is implementing an interface method or not.</p>
  
  <p>For instance, given the code bellow, if I have a MethodDeclarationSyntax for the <em>Dispose()</em> method, how can conclude it is the implementation of the IDisposable.Dispose()?</p>
  
  <pre><code>using System;
  abstract class InterfaceImplementation : IDisposable
  {
      public abstract void Dispose();
  }
  </code></pre>
  
  <p>I've tried to get the method's declaring type (and check the type) with no success (Parent property gives me back InterfaceImplementation class).</p>
  
  <p>I also have tried to grab the semantic symbol for the method:</p>
  
  <pre><code>var methodSymbol = (MethodSymbol) semanticModel.GetDeclaredSymbol(methodDeclaration);
  </code></pre>
  
  <p>but could not spot anything that could help me.</p>
  
  <p>Ideas?</p>