From 78ef7d64f782a592d9c27897fa0640aea67c5624 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 28 Sep 2015 15:27:29 +0900 Subject: [PATCH] [Modify] Replace it with readonly And add some xml doc comments to help to change the field value. --- websocket-sharp/PayloadData.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/PayloadData.cs b/websocket-sharp/PayloadData.cs index d6991364..b51ff196 100644 --- a/websocket-sharp/PayloadData.cs +++ b/websocket-sharp/PayloadData.cs @@ -46,7 +46,20 @@ namespace WebSocketSharp #region Public Fields - public const ulong MaxLength = Int64.MaxValue; + /// + /// Represents the allowable max length. + /// + /// + /// + /// A will occur if the payload data length is + /// greater than this. + /// + /// + /// If you would like to change this value, you must set this to a value greater than + /// WebSocket.FragmentLength, and equal to or less than Int64.MaxValue. + /// + /// + public static readonly ulong MaxLength = Int64.MaxValue; #endregion