[Modify] Add the static constructor

This commit is contained in:
sta 2015-10-09 15:33:30 +09:00
parent e89b674bc8
commit 1ebb9194f2

View File

@ -47,7 +47,7 @@ namespace WebSocketSharp
/// <summary>
/// Represents the empty payload data.
/// </summary>
public static readonly PayloadData Empty = new PayloadData ();
public static readonly PayloadData Empty;
/// <summary>
/// Represents the allowable max length.
@ -62,7 +62,17 @@ namespace WebSocketSharp
/// <c>WebSocket.FragmentLength</c> and <c>Int64.MaxValue</c> inclusive.
/// </para>
/// </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