checkValue() private static method

private static checkValue ( string value ) : string
value string
return string
Ejemplo n.º 1
0
 internal void InternalSet(string name, string value, bool response)
 {
     value = WebHeaderCollection.checkValue(value);
     if (!WebHeaderCollection.IsMultiValue(name, response))
     {
         base.Set(name, value);
     }
     else
     {
         base.Add(name, value);
     }
 }
Ejemplo n.º 2
0
 private void doWithoutCheckingName(Action <string, string> action, string name, string value)
 {
     this.checkRestricted(name);
     action(name, WebHeaderCollection.checkValue(value));
 }
Ejemplo n.º 3
0
 private void addWithoutCheckingNameAndRestricted(string name, string value)
 {
     base.Add(name, WebHeaderCollection.checkValue(value));
 }