title: Using a static class as an input parameter on another class
body: <p>I have no idea if this is possible but it feels like it should be from using C# up to this point.</p>
  
  <p>I want to have a bunch of static classes that contain 'set values' for users of the library to send into another class as parameter.</p>
  
  <p>So this is where I was headed but I can't figure it out.  This below is just an example of what I was thinking so don't try and work out 'why' :-)</p>
  
  <p><strong>First - The Class that will be called</strong></p>
  
  <pre><code>public class myClass
      {
          public bool isError { private set; get; }
  
          public DataTable output { private set; get; }
  
          public String filename { set; private get; }
  
          public settingModule settings { set; private get; }
  
          public static void execute()
          {
  
  
              //Call Private 'getTheData'
              //set isError accordingly
              //Load output
  
  
          }
  
          private static DataTable getTheData()
          {
              //Open and read file for 'fileName'
  
              //Use settings.startingRow
              //Use settings.fileType
              //User settings.skipEmpty
  
              //Do some stuff
  
              return Datatable from workings
  
          }
  
  
  
      }
  </code></pre>
  
  <p><strong>Second - The Class I want to user to pass</strong></p>
  
  <pre><code>public static class settingMobule
      {
          public static class fileTypeA
          {
              public static int startingRow = 1;
              public static String fileType = "txt";
              public static bool skipEmpty = true;
          }
  
          public static class fileTypeB
          {
              public static int startingRow = 10;
              public static String fileType = "csv";
              public static bool skipEmpty = false;
          }
  
          public static class fileTypeC
          {
              public static int startingRow = 3;
              public static String fileType = "hex";
              public static bool skipEmpty = true;
          }
  
      }
  </code></pre>
  
  <p><strong>Lastly the way I want to be able to call it</strong></p>
  
  <pre><code>myClass test = new myClass();
  
  test.filename = "c:\\temp\\test.txt;
  
  test.settings = settingModule.fileTypeA;
  
  test.execute();
  
  if(test.isError == false
  
  {
  DataTable myTable = test.output;
  test.dispose()
  }
  </code></pre>
  
  <p>Thanks in advance... and yes, "your nuts there is a much better way" is a perfectly valid answer :-)</p>
  
  <p>I would also LOVE to know how to add a .dispose() to my code, it's not something i have got to yet but while I am here... :-D</p>