title: Static class isn't initialized if list is defined with own type
body: <p>I have a static class with strings for example for path definitions but it is also used for static lists.
  Now I have the problem that when I start my launcher that my static class got not initialized when I write list (s) into my static class.</p>
  <p>Exmaple:</p>
  <pre><code>static class Data
  {
      public static string path_1 = &quot;B:\myFolder\test.txt&quot;;
  }
  </code></pre>
  <p>-- &gt; Class will be initialized when program starts (Data.path_1 = &quot;B:\myFolder\test.txt&quot;)</p>
  <pre><code> class MyObject
   {
        string name = null;
        object data = null;
   }
  
  static class Data
  {
      public static string path_1 = &quot;B:\myFolder\test.txt&quot;;
  
      public static list&lt;MyObject&gt; myList = new list&lt;MyObject&gt;();
  }
  </code></pre>
  <p>-- &gt; Class <strong>won't</strong> be initialized when program starts (Data.path_1 = null, Data.myList = null)</p>
  <p>When the program query the value, I get an expection:</p>
  <blockquote>
  <p><strong>TypeInitializationException: The type initializer for #Module# threw an exception</strong></p>
  <p><em><strong>inner exception</strong></em></p>
  <p><strong>FileNotFoundException: The file or assembly &quot;System.Runtime, Version = 4.2.2.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a&quot; or a dependency on it was not found. The system can not find the stated
  file.</strong></p>
  </blockquote>
  <p>A static class only with lists like from type &quot;string&quot; or &quot;ScrollViewer&quot; (WPF-Control) works.</p>
  <p>NOTE:
  My lists use own objects which are in my own library or in my program</p>