aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/CloseEventArgs.cs
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 21:31:14 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 21:31:14 +0100
commita36658f6f0ed342d8b55dbf7c9ff95fe3abfa818 (patch)
treeb1484407efd83b243d0ea792b18c598e9ff53053 /SocketHttpListener/CloseEventArgs.cs
parent9fa60ec9340cbc8b4ed3e866fcf61852077902a1 (diff)
ReSharper Reformat: Properties to expression bodied form.
Diffstat (limited to 'SocketHttpListener/CloseEventArgs.cs')
-rw-r--r--SocketHttpListener/CloseEventArgs.cs26
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