diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-13 21:31:14 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-13 21:31:14 +0100 |
| commit | a36658f6f0ed342d8b55dbf7c9ff95fe3abfa818 (patch) | |
| tree | b1484407efd83b243d0ea792b18c598e9ff53053 /SocketHttpListener/PayloadData.cs | |
| parent | 9fa60ec9340cbc8b4ed3e866fcf61852077902a1 (diff) | |
ReSharper Reformat: Properties to expression bodied form.
Diffstat (limited to 'SocketHttpListener/PayloadData.cs')
| -rw-r--r-- | SocketHttpListener/PayloadData.cs | 43 |
1 files changed, 7 insertions, 36 deletions
diff --git a/SocketHttpListener/PayloadData.cs b/SocketHttpListener/PayloadData.cs index 829db6304..6d15a6bcb 100644 --- a/SocketHttpListener/PayloadData.cs +++ b/SocketHttpListener/PayloadData.cs @@ -54,50 +54,21 @@ namespace SocketHttpListener #region Internal Properties - internal bool ContainsReservedCloseStatusCode - { - get - { - return _applicationData.Length > 1 && - _applicationData.SubArray(0, 2).ToUInt16(ByteOrder.Big).IsReserved(); - } - } + internal bool ContainsReservedCloseStatusCode => + _applicationData.Length > 1 && + _applicationData.SubArray(0, 2).ToUInt16(ByteOrder.Big).IsReserved(); #endregion #region Public Properties - public byte[] ApplicationData - { - get - { - return _applicationData; - } - } + public byte[] ApplicationData => _applicationData; - public byte[] ExtensionData - { - get - { - return _extensionData; - } - } + public byte[] ExtensionData => _extensionData; - public bool IsMasked - { - get - { - return _masked; - } - } + public bool IsMasked => _masked; - public ulong Length - { - get - { - return (ulong)(_extensionData.Length + _applicationData.Length); - } - } + public ulong Length => (ulong)(_extensionData.Length + _applicationData.Length); #endregion |
