From 302d687a9547e02265bb5e20126496d48bc91000 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 26 Apr 2019 17:01:49 +0900 Subject: [PATCH] [Modify] Inherit the ICollection interface --- websocket-sharp/Net/CookieCollection.cs | 26 ++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/websocket-sharp/Net/CookieCollection.cs b/websocket-sharp/Net/CookieCollection.cs index 5c7a42fa..ede7cfd6 100644 --- a/websocket-sharp/Net/CookieCollection.cs +++ b/websocket-sharp/Net/CookieCollection.cs @@ -51,7 +51,7 @@ namespace WebSocketSharp.Net /// Provides a collection of instances of the class. /// [Serializable] - public class CookieCollection : ICollection, IEnumerable + public class CookieCollection : ICollection { #region Private Fields @@ -782,13 +782,13 @@ namespace WebSocketSharp.Net } /// - /// Gets the enumerator used to iterate through the collection. + /// Gets the enumerator that iterates through the collection. /// /// - /// An instance used to iterate through - /// the collection. + /// An + /// instance that can be used to iterate through the collection. /// - public IEnumerator GetEnumerator () + public IEnumerator GetEnumerator () { return _list.GetEnumerator (); } @@ -833,5 +833,21 @@ namespace WebSocketSharp.Net } #endregion + + #region Explicit Interface Implementations + + /// + /// Gets the enumerator that iterates through the collection. + /// + /// + /// An instance that can be used to iterate + /// through the collection. + /// + IEnumerator IEnumerable.GetEnumerator () + { + return _list.GetEnumerator (); + } + + #endregion } }