title: How can I access to method parameter's own type data in specific class using Roslyn API(C# Code Analysis)
body: <p>I'm developing my own custom rules using <strong>Roslyn API(C# Code Analysis)</strong>.</p>
  
  <p>I want to get method parameter's own type class inheritance information in specific namespace's name.</p>
  
  <p>First, I initialized <code>RegisterSyntaxNodeAction</code> to <code>SyntaxKind.CompilationUnit</code> in <code>DiagnosticAnalyzer class's Initialize method</code>.</p>
  
  <p>Second, I accessed specific namespace's name(<code>ex:BIZprj</code>).</p>
  
  <p>Third, I got the parameter's type instance(<code>ex:parameterType</code>)</p>
  
  <p>Until here, I tried to serveral times to get parameter type instance's inheritance name. <strong>How can I resolve this?</strong></p>
  
  <p><strong>my code example</strong></p>
  
  <pre><code>public class SampleAnalyzer : DiagnosticAnalyzer
  {
  
  //...
  public override void Initialize(AnalysisContext context)
  {
              context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.CompilationUnit);
  }
  
  private void AnalyzeNode(SyntaxNodeAnalysisContext context)
  {
              var rootNode = (CompilationUnitSyntax)context.Node;
              ... go to MethodNode
      var methodParameters = methodNode.ParameterList.Parameters;
      foreach(var param in methodParameters)
      {
          var parameterType = param.Type;
          // **Here is what I want to get parameter type's inheritance class name.!!**
      }
    }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ev66K.png" rel="nofollow noreferrer">enter image description here</a></p>