title: Creating a set of static constant variables in c#
body: <p>I am trying to make a set of variables that I can pass as method variable something like this</p>
  
  <pre><code>static class ListViewStates
  {
      public const int ACCOUNTVIEW = 1;
      public const int LARGEIMAGEVIEW = 2;
      public const int INFOVIEW = 3;
  }
  
  class ListViewHandler
  {
      public void SetListViewState(ListViewStates state)
      {
          switch(state)
          {
              case 1:
                  break;
              case 2:
                  break;
              case 3:
                  break;
          }
      }
  }
  class main
  {
      ListViewHandler listhndlr = new ListViewHandler();
      listhndlr.SetListViewState(ListViewStates.ACCOUNTVIEW);
  }
  </code></pre>
  
  <p>What do I have to do with ListViewStates to make this work ?</p>
  
  <p>I have looked around google but I can't seem to find the right search phrase to find an answer.</p>