title: Notify Visual Studio of code called through reflection
body: <p><strong>Context:</strong></p>
  
  <p>The environment I work in has a lot of 'magic' methods and fields that are called or set through reflection from external code. Something may have an attribute that means it will be set to a non-default value, but Visual Studio still doesn't see that aspect and "helpfully" provides the warning.</p>
  
  <p>Since these are handled using attributes and specifically named methods, ideally I'd like to provide VS with additional information so that it knows that it's called or set, without me having to manually suppress each warning.</p>
  
  <p>I've looked into writing a Roslyn analyzer, but from what I can tell I can only add additional warnings, not modify existing warnings/reference count.</p>
  
  <p><strong>Examples:</strong></p>
  
  <p><code>[MyCmpGet] private Component comp</code></p>
  
  <p>"Field is never assigned to and will always have its default value null"</p>
  
  <p>However the field is assigned through reflection due to the annotation.</p>
  
  <pre><code>[HarmonyPatch]
  class Patch
  {
       static void Postfix() {}
  }
  </code></pre>
  
  <p>"Private member is unused"<br>
  "0 references"</p>
  
  <p>However the method is called through reflection, due to the annotation on the class, and the method having a specific name.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>What is the best way to let visual studio know that these fields are being set, and that these methods are being referenced?  Preferably without requiring me to take manual actions for each one, and without adding anything additional to the example code.</p>