title: Can I split my C# class across multiple files?
body: <p>I have a class that looks like this:</p>
  
  <pre><code>public static class ReferenceData
  {
  
      public static IEnumerable&lt;SelectListItem&gt; GetAnswerType()
      {
          return new[]
              {
                  new SelectListItem { Value = "1", Text = "1 answer"  },
                  new SelectListItem { Value = "2", Text = "2 answers" },
                  new SelectListItem { Value = "3", Text = "3 answers" }
              };
      }
  
      public static IEnumerable&lt;SelectListItem&gt; GetDatastore()
      {
          return new[]
              {
                  new SelectListItem { Value = "DEV", Text = "Development"  },
                  new SelectListItem { Value = "DC1", Text = "Production" }
              };
      }
      public static string GetDatastoreText(string datastoreValue)
      {
          return GetDatastore().Single(s =&gt; s.Value == datastoreValue).Text;
      }
      public static string GetDatastoreValue(string datastoreText)
      {
          return GetDatastore().Single(s =&gt; s.Text == datastoreText).Value;
      }
  
      // Lots more here
      // Lots more here
  
  }
  </code></pre>
  
  <p>There's a lot more that I didn't show above. </p>
  
  <p>Currently all of the class information is in one file. However I would like to split this into multiple files. Is there some way that I can spread the contents of the ReferenceData class across more than one file?</p>