[Modify] Add it

This commit is contained in:
sta 2019-04-23 13:36:51 +09:00
parent ecc78958c4
commit 70ff5dc041

View File

@ -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.