title: How to disable/suppress Resharper code analysis (Roslyn) for specific lines?
body: <p>Reshaper does not recognize my type alias "DataType":</p>
  
  <pre><code>Type 'DataType' is not defined.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/xbphG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xbphG.png" alt="enter image description here"></a></p>
  
  <p>However, "DataType" <strong>is defined</strong> in my project settings and the program works correctly:</p>
  
  <p><a href="https://i.stack.imgur.com/g3A6G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g3A6G.png" alt="enter image description here"></a></p>
  
  <p>=> How can I suppress that specific warning (without disabling other, possibly justified data type warnings)?</p>
  
  <p>I tried to</p>
  
  <p>A. Wrap the corresponding lines with</p>
  
  <pre><code>#Disable Warning BC30002
  ...
  #Enable Warning BC30002
  </code></pre>
  
  <p>B. Put</p>
  
  <pre><code>'ReSharper disable All
  </code></pre>
  
  <p>at top of the file.</p>
  
  <p>C. 
      #Region "No Resharper"
      ...<br>
      #End Region</p>
  
  <p>D. <code>&lt;SuppressMessage("ReSharper", "All")&gt;</code></p>
  
  <p>None of them worked so far. I would expect a suppression option in the quick fix suggestions. But there is none.  </p>
  
  <p>I use VisualStudio 15.7.3 and Resharper 2018.1.2</p>
  
  <p>Related questions:</p>
  
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/38748741/is-there-a-way-to-disable-resharper-code-analysis-for-a-single-file-using-a-comm">Is there a way to disable resharper code analysis for a single file using a comment?</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/8854701/disable-all-resharper-warnings-with-a-comment">Disable all Resharper warnings with a comment</a></p></li>
  </ul>