title: Using Static Variables in Razor
body: <p>Why is it not possible to use a static Variable from a static class inside a view?</p>
  
  <p>For example, lets say you have a Settings Class:</p>
  
  <pre><code>public static class GlobalVariables
  {
      public static string SystemColor
      {
          get { return Properties.Settings.Default.SystemColor; }
      }
  }
  </code></pre>
  
  <p>Why wouldn't you be able to call it in a view?</p>
  
  <p>like so</p>
  
  <pre><code>@using AppName.Models
  &lt;html&gt;
  &lt;div &gt;&lt;h1 style="color:@GlobalVariables.SystemColor"&gt;System Color&lt;/h1&gt;&lt;/div&gt;
  &lt;/html&gt;
  </code></pre>