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/CloseEventArgs.cs | |
| parent | 9fa60ec9340cbc8b4ed3e866fcf61852077902a1 (diff) | |
ReSharper Reformat: Properties to expression bodied form.
Diffstat (limited to 'SocketHttpListener/CloseEventArgs.cs')
| -rw-r--r-- | SocketHttpListener/CloseEventArgs.cs | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/SocketHttpListener/CloseEventArgs.cs b/SocketHttpListener/CloseEventArgs.cs index 12a24bb4a..c6460fd23 100644 --- a/SocketHttpListener/CloseEventArgs.cs +++ b/SocketHttpListener/CloseEventArgs.cs @@ -51,13 +51,7 @@ namespace SocketHttpListener /// <value> /// A <see cref="ushort"/> that represents the status code for the close if any. /// </value> - public ushort Code - { - get - { - return _code; - } - } + public ushort Code => _code; /// <summary> /// Gets the reason for the close. @@ -65,13 +59,7 @@ namespace SocketHttpListener /// <value> /// A <see cref="string"/> that represents the reason for the close if any. /// </value> - public string Reason - { - get - { - return _reason; - } - } + public string Reason => _reason; /// <summary> /// Gets a value indicating whether the WebSocket connection has been closed cleanly. @@ -81,15 +69,9 @@ namespace SocketHttpListener /// </value> public bool WasClean { - get - { - return _clean; - } + get => _clean; - internal set - { - _clean = value; - } + internal set => _clean = value; } #endregion |
