Clear() public method

Clears all existing headers from the instance.
public Clear ( ) : void
return void
示例#1
0
 public void Clear_WithPopulatedList_RemoveAllItems()
 {
     var headers = new HttpHeaders();
     headers["abc"] = "123";
     headers.Clear();
     Assert.AreEqual(0, headers.Count);
 }
示例#2
0
        public void Clear_WithPopulatedList_RemoveAllItems()
        {
            var headers = new HttpHeaders();

            headers["abc"] = "123";
            headers.Clear();
            Assert.AreEqual(0, headers.Count);
        }