title: C#: How to set default value for a property in a partial class?
body: <p>I'm very new to C# so please bear with me...</p>
  
  <p>I'm implementing a partial class, and would like to add two properties like so:</p>
  
  <pre><code>public partial class SomeModel
  {
      public bool IsSomething { get; set; }
      public List&lt;string&gt; SomeList { get; set; }
  
      ... Additional methods using the above data members ...
  }
  </code></pre>
  
  <p>I would like to initialize both data members: <code>IsSomething</code> to <code>True</code> and <code>SomeList</code> to <code>new List&lt;string&gt;()</code>. Normally I would do it in a constructor, however because it's a partial class I don't want to touch the constructor (should I?).</p>
  
  <p>What's the best way to achieve this?</p>
  
  <p>Thanks</p>
  
  <p>PS I'm working in ASP.NET MVC, adding functionality to a a certain model, hence the partial class. </p>