title: C# Settings Custom Type List add not working
body: <p>I created some custom settings types:</p>
  
  <pre><code>[SettingsSerializeAs(SettingsSerializeAs.Xml)]
  public class PathSetting
  {
      public PathSetting(string path = "", bool enabled = true)
      {
          Path = path;
          Enabled = enabled;
      }
  
      public string Path {get; set;}
      public bool Enabled { get; set; }
  }
  </code></pre>
  
  <p>And</p>
  
  <pre><code>[SettingsSerializeAs(SettingsSerializeAs.Xml)]
  public class PathUserSettings : ApplicationSettingsBase
  {
      private List&lt;PathSetting&gt; paths;
      public List&lt;PathSetting&gt; Paths
      {
          get { return paths; }
          set { paths = value; }
      }
  }
  </code></pre>
  
  <p>Then in my Settings.setting file I created an item called paths of type (Browse > myNamespace.PathUserSettings. I didn't set it to anything and then in my main for on form load I put this code:</p>
  
  <pre><code>if (Properties.Settings.Default.paths == null)
          {
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("prefs/*.pref"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("levels/*.mis"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("User Data/"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("core/prefs.cs"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("scripts/client/prefs.cs"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("scripts/server/prefs.cs"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("scripts/client/config.cs"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("xml/Swarms.xml"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("xml/OldSwarms.xml"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("art/props/*"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("art/swarm/*"));
              Properties.Settings.Default.paths.Paths.Add(new PathSetting("art/datablocks/convertedDatablocks.cs"));
              Properties.Settings.Default.Save();
          }
  </code></pre>
  
  <p>But for some reason it doesn't get past the first Add call. I cant even really step in. Can you not add to a list? I don't fully understand how the settings systems works and there doesn't seem to be that many examples like this.</p>
  
  <p>Any help is appreciated!</p>