[Modify] Add the static constructor
This commit is contained in:
parent
e89b674bc8
commit
1ebb9194f2
@ -47,7 +47,7 @@ namespace WebSocketSharp
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents the empty payload data.
|
/// Represents the empty payload data.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly PayloadData Empty = new PayloadData ();
|
public static readonly PayloadData Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents the allowable max length.
|
/// Represents the allowable max length.
|
||||||
@ -62,7 +62,17 @@ namespace WebSocketSharp
|
|||||||
/// <c>WebSocket.FragmentLength</c> and <c>Int64.MaxValue</c> inclusive.
|
/// <c>WebSocket.FragmentLength</c> and <c>Int64.MaxValue</c> inclusive.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public static readonly ulong MaxLength = Int64.MaxValue;
|
public static readonly ulong MaxLength;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Static Constructor
|
||||||
|
|
||||||
|
static PayloadData ()
|
||||||
|
{
|
||||||
|
Empty = new PayloadData ();
|
||||||
|
MaxLength = Int64.MaxValue;
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user