System.Net.WebHeaderCollection.WebHeaderCollection.SetInternal C# (CSharp) Method

SetInternal() private method

private SetInternal ( string name, string value ) : void
name string
value string
return void
		internal void SetInternal (string name, string value)
		{
			if (value == null)
				value = String.Empty;
			else
				value = value.Trim ();
			if (!IsHeaderValue (value))
				throw new ArgumentException ("invalid header value");

			if (IsMultiValue (name)) {
				base.Add (name, value);
			} else {
				base.Remove (name);
				base.Set (name, value);	
			}
		}

Same methods

WebHeaderCollection.WebHeaderCollection::SetInternal ( string header ) : void