public void StoreConfiguration () { AssertStorage (); DefaultNode dn = new DefaultNode (contents, target); if (storage.ContainsKey (section)) storage [section] = dn; else storage.Add (section, dn); section = null; contents = null; storage = null; }
public string FindDefault(string sectionName, FeatureTarget target) { AssertStorage(); if (storage.ContainsKey(sectionName)) { DefaultNode dn = storage [sectionName]; if (target == FeatureTarget.Any || dn.Target == FeatureTarget.Any || dn.Target == target) { return(dn.Contents); } } return(null); }
public void StoreConfiguration() { AssertStorage(); DefaultNode dn = new DefaultNode(contents, target); if (storage.ContainsKey(section)) { storage [section] = dn; } else { storage.Add(section, dn); } section = null; contents = null; storage = null; }