[Modify] Inherit the ICollection<Cookie> interface
This commit is contained in:
parent
7a5b81d389
commit
302d687a95
@ -51,7 +51,7 @@ namespace WebSocketSharp.Net
|
|||||||
/// Provides a collection of instances of the <see cref="Cookie"/> class.
|
/// Provides a collection of instances of the <see cref="Cookie"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class CookieCollection : ICollection, IEnumerable
|
public class CookieCollection : ICollection<Cookie>
|
||||||
{
|
{
|
||||||
#region Private Fields
|
#region Private Fields
|
||||||
|
|
||||||
@ -782,13 +782,13 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the enumerator used to iterate through the collection.
|
/// Gets the enumerator that iterates through the collection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// An <see cref="IEnumerator"/> instance used to iterate through
|
/// An <see cref="T:System.Collections.Generic.IEnumerator{Cookie}"/>
|
||||||
/// the collection.
|
/// instance that can be used to iterate through the collection.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public IEnumerator GetEnumerator ()
|
public IEnumerator<Cookie> GetEnumerator ()
|
||||||
{
|
{
|
||||||
return _list.GetEnumerator ();
|
return _list.GetEnumerator ();
|
||||||
}
|
}
|
||||||
@ -833,5 +833,21 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Explicit Interface Implementations
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the enumerator that iterates through the collection.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>
|
||||||
|
/// An <see cref="IEnumerator"/> instance that can be used to iterate
|
||||||
|
/// through the collection.
|
||||||
|
/// </returns>
|
||||||
|
IEnumerator IEnumerable.GetEnumerator ()
|
||||||
|
{
|
||||||
|
return _list.GetEnumerator ();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user