title: How do I remove the CS0649 compiler warning when I add a custom attribute?
body: <p><strong>Goal:</strong> To remove the compiler warning 'CS0649' (field is never assigned to) when I use my custom attribute.</p>
  
  <p>I have a custom attribute (code below is just examples):</p>
  
  <pre><code>[AttributeUsage(AttributeTargets.Field)]
  public class MyCustomAttribute : Attribute { }
  </code></pre>
  
  <p>I then use that attribute on a field:</p>
  
  <pre><code>[MyCustom]
  private readonly SomeType someType;
  </code></pre>
  
  <p>My application will auto fill <code>someType</code> with a value so we don't need to worry about initializing it.  </p>
  
  <p>I will still get a squiggly line in Visual Studio under <code>someType</code> and the warning message "Field "someType" is never assigned to, and will always have it's default value null."</p>
  
  <p>Is there an attribute or other means that I can add to <code>MyCustomAttribute</code> that will remove this compiler warning?</p>
  
  <p>NOTE: I do not want to have to modify the field or type the field is within further.  I simply want to add the attribute and the warning go away.</p>