From 4b39467cea365a324e096b26b46dbb0a0d05582e Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 20 May 2019 20:39:56 +0900 Subject: [PATCH] [Modify] To internal --- websocket-sharp/Net/Cookie.cs | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index dda5adeb..bdd4f871 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -589,7 +589,7 @@ namespace WebSocketSharp.Net } /// - /// Gets or sets the value of the Port attribute of the cookie. + /// Gets the value of the Port attribute of the cookie. /// /// /// @@ -597,30 +597,18 @@ namespace WebSocketSharp.Net /// that the cookie applies to. /// /// - /// An empty string if this attribute is not needed. + /// An empty string if not present. /// /// /// The default value is an empty string. /// /// - /// - /// - /// The value specified for a set operation is not enclosed in - /// double quotes. - /// - /// - /// -or- - /// - /// - /// The value specified for a set operation could not be parsed. - /// - /// public string Port { get { return _port ?? String.Empty; } - set { + internal set { if (value.IsNullOrEmpty ()) { _port = value; _ports = null;