title: Can I return the contents of an enum as a list using an extension method?
body: <p>I have the following Enum:</p>
  
  <pre><code>public enum QuestionType {
      Check = 1,
      CheckAndCode = 2,
      na = 99
  };
  
  public static class QuestionTypeExtension
  {
      public static string D2(this QuestionType key)
      {
          return ((int) key).ToString("D2");
      }
  }
  </code></pre>
  
  <p>I already created an extension method that formats the output but now I have another requirement. What I need to do is to create an extension method that will return the contents of the enum into a list of the following class:</p>
  
  <pre><code>public class Reference {
     public string PartitionKey { get; set; } // set to "00"
     public int RowKey { get; set; } // set to the integer value
     public string Value { get; set; } // set to the text of the Enum
  }
  </code></pre>
  
  <p>Is it possible to do this in an extension method?</p>