From 95bfb940484e8c636cd8c16dee7be57926b4a8f8 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 15 May 2019 19:43:24 +0900 Subject: [PATCH] [Modify] To internal --- websocket-sharp/Net/Cookie.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index 3d42627a..ca8fb00a 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -715,7 +715,7 @@ namespace WebSocketSharp.Net } /// - /// Gets or sets the value of the Version attribute of the cookie. + /// Gets the value of the Version attribute of the cookie. /// /// /// @@ -723,21 +723,18 @@ namespace WebSocketSharp.Net /// management that the cookie conforms to. /// /// - /// 0 or 1. + /// 0 or 1. 0 if the cookie has no Version attribute. /// /// /// The default value is 0. /// /// - /// - /// The value specified for a set operation is not allowed. - /// public int Version { get { return _version; } - set { + internal set { if (value < 0 || value > 1) { var msg = "It is not allowed."; throw new ArgumentOutOfRangeException ("value", msg);