title: Error cannot declare instance members in a static class
body: <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Collections.Specialized;
  using System.Configuration;
  </code></pre>
  
  <p>I am receiving this error</p>
  
  <pre><code>cannot declare instance members in a static class
  </code></pre>
  
  <p>when writing a Static class.
  Any idea how to solve it keeping the class static if possible? Thanks</p>
  
  <pre><code>namespace XXX.Helpers
  {
      public static class Utility
      {
          public static string GetConfiguration(string section, string key)
          {
              NameValueCollection mySection = (NameValueCollection)ConfigurationManager.GetSection(section);
  
              return mySection[key];
          }
      }
  }
  </code></pre>