[Modify] Add it
This commit is contained in:
parent
ecc78958c4
commit
70ff5dc041
@ -648,6 +648,22 @@ namespace WebSocketSharp.Net
|
|||||||
add (cookie);
|
add (cookie);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Removes all cookies from the collection.
|
||||||
|
/// </summary>
|
||||||
|
/// <exception cref="InvalidOperationException">
|
||||||
|
/// The collection is read-only.
|
||||||
|
/// </exception>
|
||||||
|
public void Clear ()
|
||||||
|
{
|
||||||
|
if (_readOnly) {
|
||||||
|
var msg = "The collection is read-only.";
|
||||||
|
throw new InvalidOperationException (msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
_list.Clear ();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Copies the elements of the collection to the specified array,
|
/// Copies the elements of the collection to the specified array,
|
||||||
/// starting at the specified index.
|
/// starting at the specified index.
|
||||||
|
Loading…
Reference in New Issue
Block a user