title: How to define a list in struct in asp c#?
body: <p>How can i define a List as field of struct?</p>
  
  <p>Something like this : </p>
  
  <pre><code>public struct MyStruct
  {
      public decimal SomeDecimalValue;
      public int SomeIntValue;
      public List&lt;string&gt; SomeStringList = new List&lt;string&gt; // &lt;&lt;I Mean this one?
  }
  </code></pre>
  
  <p>And then use that string Like this :</p>
  
  <pre><code>Private void UseMyStruct()
  {
       MyStruct S= new MyStruct();
       s.Add("first string");
       s.Add("second string");
  }
  </code></pre>
  
  <p>I've tried a few things but they all return errors and don't work.</p>