protected override bool OnDeserializeUnrecognizedAttribute (string name, string value)
		{
			if (parameters == null)
				parameters = new ConfigNameValueCollection ();
			parameters [name] = value;
			parameters.ResetModified ();
			return true;
		}
Exemple #2
0
 protected override bool OnDeserializeUnrecognizedAttribute(string name, string value)
 {
     if (parameters == null)
     {
         parameters = new ConfigNameValueCollection();
     }
     parameters [name] = value;
     parameters.ResetModified();
     return(true);
 }
		protected internal override void Reset (ConfigurationElement parentElement)
		{
			base.Reset (parentElement);

			ProviderSettings sec = parentElement as ProviderSettings;
			if (sec != null && sec.parameters != null)
				parameters = new ConfigNameValueCollection (sec.parameters);
			else
				parameters = null;
		}
Exemple #4
0
        protected internal override void Reset(ConfigurationElement parentElement)
        {
            base.Reset(parentElement);

            ProviderSettings sec = parentElement as ProviderSettings;

            if (sec != null && sec.parameters != null)
            {
                parameters = new ConfigNameValueCollection(sec.parameters);
            }
            else
            {
                parameters = null;
            }
        }
Exemple #5
0
        internal static ConfigNameValueCollection GetNameValueCollection(NameValueCollection prev,
                                                                         XmlNode region,
                                                                         string nameAtt,
                                                                         string valueAtt)
        {
            ConfigNameValueCollection coll =
                new ConfigNameValueCollection(CaseInsensitiveHashCodeProvider.Default,
                                              CaseInsensitiveComparer.Default);

            if (prev != null)
            {
                coll.Add(prev);
            }

            CollectionWrapper result = new CollectionWrapper(coll);

            result = GoGetThem(result, region, nameAtt, valueAtt);
            if (result == null)
            {
                return(null);
            }

            return(result.UnWrap() as ConfigNameValueCollection);
        }
Exemple #6
0
 public ConfigNameValueCollection(ConfigNameValueCollection col)
     : base(col.Count, col)
 {
 }
		public ConfigNameValueCollection (ConfigNameValueCollection col)
		: base (col.Count, col)
		{
		}
		internal static ConfigNameValueCollection GetNameValueCollection (NameValueCollection prev,
									    XmlNode region,
									    string nameAtt,
									    string valueAtt)
		{
			ConfigNameValueCollection coll =
					new ConfigNameValueCollection (CaseInsensitiveHashCodeProvider.Default,
								 CaseInsensitiveComparer.Default);

			if (prev != null)
				coll.Add (prev);

			CollectionWrapper result = new CollectionWrapper (coll);
			result = GoGetThem (result, region, nameAtt, valueAtt);
			if (result == null)
				return null;

			return result.UnWrap () as ConfigNameValueCollection;
		}