title: Is there a "get:" attribute target?
body: <p>In Microsoft's docs I noticed <a href="https://docs.microsoft.com/en-us/dotnet/api/system.windows.media.imaging.bitmapdecoder.thumbnail?view=netframework-4.7.2#System_Windows_Media_Imaging_BitmapDecoder_Thumbnail" rel="nofollow noreferrer">the following example</a>:</p>
  
  <pre><code>[get: System.Security.SecurityCritical]
  public virtual System.Windows.Media.Imaging.BitmapSource Thumbnail { get; }
  </code></pre>
  
  <p>Notice that the target "<code>get:</code>" is applied to the attribute.</p>
  
  <p>However in their <a href="https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/#attribute-targets" rel="nofollow noreferrer">C# documentation</a> <em>there is no such target</em>. They list only:</p>
  
  <p><code>assembly, module, field, event, method, param, property, return, type</code></p>
  
  <p>I don't see anything version-specific on either of these pages.</p>
  
  <hr>
  
  <p>Furthermore, the <a href="https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-334.pdf" rel="nofollow noreferrer">C# language specification</a> doesn't include <code>get:</code> either (page 395).</p>
  
  <hr>
  
  <p>I tried using it anyway in a sample in VS 2015, and the IDE reported the error: </p>
  
  <blockquote>
    <p>'get' is not a recognized attribute location. Valid attribute
    locations for this declaration are 'property'. All attributes in this
    block will be ignored.</p>
  </blockquote>
  
  <p><strong>Is <code>get:</code> valid in some circumstances? Is it a mistake in their documentation?</strong></p>
  
  <hr>
  
  <p>FYI it is very hard <a href="https://meta.stackexchange.com/a/267938/297415">if not impossible</a> to search for the string "get:" on SO. I expected to find an answer to this already but that made it pretty hard to do so.</p>