title: Create a generic List from C# dll in python script
body: <pre><code>var settings = new SettingsClass();
  settings.SpecificValue = new List&lt;SpecificValueClass&gt;();
  </code></pre>
  
  <p>This is the code example in my C# project.</p>
  
  <p>I have a python script which imports the .dll with this code example and I want to create this settings.SpecificValue variable within the python script.</p>
  
  <p>Is it somehow possible without making a function in C# which I can call within python code.</p>
  
  <pre><code>public class SettingsClass
  {
      public bool Timesync { get; set; }
      public string SystemName { get; set; }
      public string Timezone { get; set; }
      public List&lt;SpecificValueClass&gt; SpecificValue{ get; set; }
  }
  
  public class SpecificValueClass
  {
      public string ID { get; set; }
      public int value { get; set; }
  }
  </code></pre>
  
  <p>In python I want to call it like this:</p>
  
  <pre><code>settings = SettingsClass() &lt;-- this call is no problem and I can do it with a dotNet library in python
  settings.SystemName = systemname
  settings.Timesync = timesync
  settings.Timezone = "%s//%s" % (timezone1,timezone2)
  settings.SpecificValue = ... &lt;-- not sure how to make this to create a empty List / empty whatever so I can add 2 objects of the type SpecificValueClass 
  </code></pre>
  
  <p>(creating the 2 objects ob SpecificValueClass is also possible) 
  So the only part that I can not get to work is the initialization of the settings.SpecificValue as it is a generic List ...</p>
  
  <p>Any help would be appreciated</p>