diff --git a/websocket-sharp/Net/NetworkCredential.cs b/websocket-sharp/Net/NetworkCredential.cs index b90bcad2..397ac094 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; } }