From 0ef00bf0a7d526fa705e938f1114d115691a377a Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 11 Jun 2016 15:45:14 +0900 Subject: [PATCH] [Modify] Add some xml doc comments --- websocket-sharp/Net/HttpListenerPrefix.cs | 34 +++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/HttpListenerPrefix.cs b/websocket-sharp/Net/HttpListenerPrefix.cs index e470f082..cbbfbf02 100644 --- a/websocket-sharp/Net/HttpListenerPrefix.cs +++ b/websocket-sharp/Net/HttpListenerPrefix.cs @@ -59,7 +59,16 @@ namespace WebSocketSharp.Net #region Internal Constructors - // Must be called after calling the CheckPrefix method. + /// + /// Initializes a new instance of the class with + /// the specified . + /// + /// + /// This constructor must be called after calling the CheckPrefix method. + /// + /// + /// A that represents the URI prefix. + /// internal HttpListenerPrefix (string uriPrefix) { _original = uriPrefix; @@ -176,13 +185,34 @@ namespace WebSocketSharp.Net throw new ArgumentException ("No path is specified.", "uriPrefix"); } - // The Equals and GetHashCode methods are required to detect duplicates in any collection. + /// + /// Determines whether this instance and the specified have the same value. + /// + /// + /// This method will be required to detect duplicates in any collection. + /// + /// + /// An to compare to this instance. + /// + /// + /// true if is a and + /// its value is the same as this instance; otherwise, false. + /// public override bool Equals (Object obj) { var pref = obj as HttpListenerPrefix; return pref != null && pref._prefix == _prefix; } + /// + /// Gets the hash code for this instance. + /// + /// + /// This method will be required to detect duplicates in any collection. + /// + /// + /// An that represents the hash code. + /// public override int GetHashCode () { return _prefix.GetHashCode ();