Refactored HttpListenerPrefixCollection.cs

This commit is contained in:
sta 2014-10-22 11:38:31 +09:00
parent 29fa277cdc
commit 93993790f1

View File

@ -50,8 +50,7 @@ namespace WebSocketSharp.Net
/// The <see cref="HttpListener"/> responds to the request which has a requested URI that /// The <see cref="HttpListener"/> responds to the request which has a requested URI that
/// the prefixes most closely match. /// the prefixes most closely match.
/// </remarks> /// </remarks>
public class HttpListenerPrefixCollection public class HttpListenerPrefixCollection : ICollection<string>, IEnumerable<string>, IEnumerable
: ICollection<string>, IEnumerable<string>, IEnumerable
{ {
#region Private Fields #region Private Fields
@ -60,21 +59,12 @@ namespace WebSocketSharp.Net
#endregion #endregion
#region Private Constructors
private HttpListenerPrefixCollection ()
{
_prefixes = new List<string> ();
}
#endregion
#region Internal Constructors #region Internal Constructors
internal HttpListenerPrefixCollection (HttpListener listener) internal HttpListenerPrefixCollection (HttpListener listener)
: this ()
{ {
_listener = listener; _listener = listener;
_prefixes = new List<string> ();
} }
#endregion #endregion