title: An object reference is required for non-static field, method, or property in my controller
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3775721/an-object-reference-is-required-for-the-non-static-field-method-or-property">An object reference is required for the non-static field, method, or property</a>  </p>
  </blockquote>
  
  
  
  <p>I have a non-static field:</p>
  
  <pre><code>private IDictionary&lt;string, string&gt; _mappings = 
      new Dictionary&lt;string, string&gt;(StringComparer.InvariantCultureIgnoreCase)
  </code></pre>
  
  <p>that I wnat to use inside of a action like this:</p>
  
  <pre><code>public static string GetMimeType(string extension)
  {
      //...
      return _mappings.TryGetValue(extension, out mime) ? 
          mime : "application/octet-stream";
  }
  </code></pre>
  
  <p>The compiler is complaining:</p>
  
  <blockquote>
    <p>An object reference is required for non-static field, method, or
    property in the return statement.</p>
  </blockquote>
  
  <p>How can I reference this field?</p>