[Modify] Polish it
This commit is contained in:
parent
97ab72660f
commit
93ab4dcae4
@ -64,7 +64,7 @@ namespace WebSocketSharp.Net
|
|||||||
/// <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, new string[0])
|
: this (username, password, null, null)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,11 +151,11 @@ namespace WebSocketSharp.Net
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// An array of <see cref="string"/> that contains the role names to which
|
/// An array of <see cref="string"/> that contains the role names to which
|
||||||
/// the user associated with the credentials belongs.
|
/// the user associated with the credentials belongs if any.
|
||||||
/// </value>
|
/// </value>
|
||||||
public string[] Roles {
|
public string[] Roles {
|
||||||
get {
|
get {
|
||||||
return _roles;
|
return _roles ?? (_roles = new string[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal set {
|
internal set {
|
||||||
|
Loading…
Reference in New Issue
Block a user