title: Using nested classes for constants?
body: <p>What's wrong with using nested classes to group constants?</p>
  
  <p>Like so:</p>
  
  <pre><code>public static class Constants
  {
      public static class CategoryA
      {
          public const string ValueX = "CatA_X";
          public const string ValueY = "CatA_Y";
      }
      public static class CategoryB
      {
          public const string ValueX = "CatB_X";
          public const string ValueY = "CatB_Y";
      }
  }
  </code></pre>
  
  <p>Used like so:</p>
  
  <pre><code>Console.WriteLine(Constants.CategoryA.ValueY);
  Console.WriteLine(Constants.CategoryB.ValueX);
  </code></pre>
  
  <p>You could also make the "Constants"-class partial...</p>