[Modify] Polish it

This commit is contained in:
sta 2015-12-08 16:52:47 +09:00
parent 93ab4dcae4
commit 53407f5732

View File

@ -40,7 +40,7 @@ namespace WebSocketSharp.Net
private string _domain; private string _domain;
private string _password; private string _password;
private string[] _roles; private string[] _roles;
private string _username; private string _userName;
#endregion #endregion
@ -50,7 +50,7 @@ namespace WebSocketSharp.Net
/// Initializes a new instance of the <see cref="NetworkCredential"/> class with /// Initializes a new instance of the <see cref="NetworkCredential"/> class with
/// the specified user name and password. /// the specified user name and password.
/// </summary> /// </summary>
/// <param name="username"> /// <param name="userName">
/// A <see cref="string"/> that represents the user name associated with the credentials. /// A <see cref="string"/> that represents the user name associated with the credentials.
/// </param> /// </param>
/// <param name="password"> /// <param name="password">
@ -58,13 +58,13 @@ namespace WebSocketSharp.Net
/// the credentials. /// the credentials.
/// </param> /// </param>
/// <exception cref="ArgumentNullException"> /// <exception cref="ArgumentNullException">
/// <paramref name="username"/> is <see langword="null"/>. /// <paramref name="userName"/> is <see langword="null"/>.
/// </exception> /// </exception>
/// <exception cref="ArgumentException"> /// <exception cref="ArgumentException">
/// <paramref name="username"/> is empty. /// <paramref name="userName"/> is empty.
/// </exception> /// </exception>
public NetworkCredential (string username, string password) public NetworkCredential (string userName, string password)
: this (username, password, null, null) : this (userName, password, null, null)
{ {
} }
@ -72,7 +72,7 @@ namespace WebSocketSharp.Net
/// Initializes a new instance of the <see cref="NetworkCredential"/> class with /// Initializes a new instance of the <see cref="NetworkCredential"/> class with
/// the specified user name, password, domain, and roles. /// the specified user name, password, domain, and roles.
/// </summary> /// </summary>
/// <param name="username"> /// <param name="userName">
/// A <see cref="string"/> that represents the user name associated with the credentials. /// A <see cref="string"/> that represents the user name associated with the credentials.
/// </param> /// </param>
/// <param name="password"> /// <param name="password">
@ -88,21 +88,21 @@ namespace WebSocketSharp.Net
/// the user associated with the credentials belongs if any. /// the user associated with the credentials belongs if any.
/// </param> /// </param>
/// <exception cref="ArgumentNullException"> /// <exception cref="ArgumentNullException">
/// <paramref name="username"/> is <see langword="null"/>. /// <paramref name="userName"/> is <see langword="null"/>.
/// </exception> /// </exception>
/// <exception cref="ArgumentException"> /// <exception cref="ArgumentException">
/// <paramref name="username"/> is empty. /// <paramref name="userName"/> is empty.
/// </exception> /// </exception>
public NetworkCredential ( public NetworkCredential (
string username, string password, string domain, params string[] roles) string userName, string password, string domain, params string[] roles)
{ {
if (username == null) if (userName == null)
throw new ArgumentNullException ("username"); throw new ArgumentNullException ("userName");
if (username.Length == 0) if (userName.Length == 0)
throw new ArgumentException ("An empty string.", "username"); throw new ArgumentException ("An empty string.", "userName");
_username = username; _userName = userName;
_password = password; _password = password;
_domain = domain; _domain = domain;
_roles = roles; _roles = roles;
@ -171,11 +171,11 @@ namespace WebSocketSharp.Net
/// </value> /// </value>
public string UserName { public string UserName {
get { get {
return _username; return _userName;
} }
internal set { internal set {
_username = value; _userName = value;
} }
} }