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