From 93ab4dcae40fa695b6d091fc00c65dff74b31ba3 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 7 Dec 2015 15:20:12 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/NetworkCredential.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/Net/NetworkCredential.cs b/websocket-sharp/Net/NetworkCredential.cs index d2d392ce..397ac094 100644 --- a/websocket-sharp/Net/NetworkCredential.cs +++ b/websocket-sharp/Net/NetworkCredential.cs @@ -64,7 +64,7 @@ namespace WebSocketSharp.Net /// is empty. /// 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 /// /// /// An array of that contains the role names to which - /// the user associated with the credentials belongs. + /// the user associated with the credentials belongs if any. /// public string[] Roles { get { - return _roles; + return _roles ?? (_roles = new string[0]); } internal set {