title: How to solve the Error: Inconsistent accessibility: parameter type for generic c# interface?
body: <p>On writting this code into my project i am getting the error that   </p>
  
  <blockquote>
    <p>Error  1   Inconsistent accessibility: field type <code>'System.Collections.Generic.List&lt;Jain_milan.Childrendata&gt;'</code> is less accessible than field <code>'Jain_milan.addchild.m_children'</code><br>
       Error  2   Inconsistent accessibility: parameter type <code>'System.Collections.Generic.List&lt;Jain_milan.Childrendata&gt;'</code> is less accessible than method <code>'Jain_milan.addchild.addchild(System.Collections.Generic.List&lt;Jain_milan.Childrendata&gt;)'</code>   </p>
  </blockquote>
  
  <pre><code>namespace Jain_milan
  {
          public partial class addchild : Form
          {
              List&lt;Label&gt; label = new List&lt;Label&gt;();
              List&lt;TextBox&gt; textbox = new List&lt;TextBox&gt;();
              List&lt;ComboBox&gt; combobox = new List&lt;ComboBox&gt;();
              List&lt;DateTimePicker&gt; datetimepicker = new List&lt;DateTimePicker&gt;();
              public List&lt;Childrendata&gt; m_children = new List&lt;Childrendata&gt;();
              public addchild(List&lt;Childrendata&gt; children)
              {
                  InitializeComponent();
                  this.m_children = children; //Initialize the same List as sent by Mainform
              }
  </code></pre>