title: C# Inconsistent Accessibility winform singleton error
body: <p>I have this code, it's meant to be a singleton form that pops up and stays up and then is appended to (basically I have muti-threads that can give queries to the user, and I don't want a stack of them I want one to pop up then "keep filling") I am just setting up a basic test case class to check the logic but I got this error I don't understand</p>
  
  <p>error:</p>
  
  <pre><code> Error  2   Inconsistent accessibility: field type 'System.Collections.Generic.List&lt;ActionType&gt;' is less accessible than field 'frmVerdict.thingsToDo'
  </code></pre>
  
  <p>code:</p>
  
  <pre><code>public partial class frmVerdict : Form
  {
      public List&lt;ActionType&gt; thingsToDo = new List&lt;ActionType&gt;();
      private int elementCounter = 0;
      private static frmVerdict _instance;
  
      public frmVerdict()
      {
          InitializeComponent();
      }
      public static frmVerdict GetInstance()
      {
          if (_instance == null) _instance = new frmVerdict();
          return _instance;
      }
      public void addAction(ActionType action)
      {
          elementCounter++;
          TextBox txtbx = new TextBox(); //TextBox txtbx = (TextBox)Controls["txtbx0001"];
          txtbx.Text = action.name;
          txtbx.Name = "txtbx" + elementCounter.ToString().PadLeft(4, '0');
          txtbx.Location = new Point(10, 30 * elementCounter);
          txtbx.Height = 20;
          txtbx.Width = 50;
          pnlVerdict.Controls.Add(txtbx); //these textboxes will be replaced by buttons
          thingsToDo.Add(action);            
      }
  }
  </code></pre>
  
  <p>here is how I call it (this isn't the problem but I want people to know why I am doing the singleton)</p>
  
  <pre><code>frmVerdict form = frmVerdict.GetInstance();
  if (!form.Visible)
  {
      form.Show();
  }
  else
  {
      form.BringToFront();
  }
  form.addAction(action);
  </code></pre>