Пример #1
0
		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;
		}
Пример #2
0
        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);
        }
Пример #3
0
        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;
        }