title: C# Static vs enum for readonly variables
body: <p>Say for instance you have the following class:</p>
  
  <pre><code>    public static class TimeType
  {
      public static String DAY = "Day";
      public static String WEEK = "week";
      public static String MONTH = "month";
      public static String YEAR = "year";
  }
  </code></pre>
  
  <p>Now when programming you would be able to access or these variables. </p>
  
  <p>My question is would it be better to have them as an <code>Enum</code>?</p>
  
  <p>The way i want to use these variables is as such:</p>
  
  <pre><code>    private DateTimeIntervalType GetIntervalType()
      {
  
          switch (TimeType)
          {
              case "week":
                  return DateTimeIntervalType.Weeks;
              case "month":
                  return DateTimeIntervalType.Months;
              case "year":
                  return DateTimeIntervalType.Years;
              default:
                  return DateTimeIntervalType.Days;
          }
      }
  </code></pre>