From 53407f5732ac7ee274c3254ce4f2f58ad61c71e0 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 8 Dec 2015 16:52:47 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/NetworkCredential.cs | 34 ++++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/websocket-sharp/Net/NetworkCredential.cs b/websocket-sharp/Net/NetworkCredential.cs index 397ac094..b90bcad2 100644 --- a/websocket-sharp/Net/NetworkCredential.cs +++ b/websocket-sharp/Net/NetworkCredential.cs @@ -40,7 +40,7 @@ namespace WebSocketSharp.Net private string _domain; private string _password; private string[] _roles; - private string _username; + private string _userName; #endregion @@ -50,7 +50,7 @@ namespace WebSocketSharp.Net /// Initializes a new instance of the class with /// the specified user name and password. /// - /// + /// /// A that represents the user name associated with the credentials. /// /// @@ -58,13 +58,13 @@ namespace WebSocketSharp.Net /// the credentials. /// /// - /// is . + /// is . /// /// - /// is empty. + /// is empty. /// - public NetworkCredential (string username, string password) - : this (username, password, null, null) + public NetworkCredential (string userName, string password) + : this (userName, password, null, null) { } @@ -72,7 +72,7 @@ namespace WebSocketSharp.Net /// Initializes a new instance of the class with /// the specified user name, password, domain, and roles. /// - /// + /// /// A that represents the user name associated with the credentials. /// /// @@ -88,21 +88,21 @@ namespace WebSocketSharp.Net /// the user associated with the credentials belongs if any. /// /// - /// is . + /// is . /// /// - /// is empty. + /// is empty. /// public NetworkCredential ( - string username, string password, string domain, params string[] roles) + string userName, string password, string domain, params string[] roles) { - if (username == null) - throw new ArgumentNullException ("username"); + if (userName == null) + throw new ArgumentNullException ("userName"); - if (username.Length == 0) - throw new ArgumentException ("An empty string.", "username"); + if (userName.Length == 0) + throw new ArgumentException ("An empty string.", "userName"); - _username = username; + _userName = userName; _password = password; _domain = domain; _roles = roles; @@ -171,11 +171,11 @@ namespace WebSocketSharp.Net /// public string UserName { get { - return _username; + return _userName; } internal set { - _username = value; + _userName = value; } }