Skip to content

Commit

Permalink
Fix variable _disposed is unused warning by implementing its Dispose …
Browse files Browse the repository at this point in the history
…pattern
  • Loading branch information
conniey committed Jun 29, 2017
1 parent faa58fe commit 3a1eea0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,12 @@ public void Dispose()
/// <param name="disposing">true when Dispose() was called manually.</param>
protected virtual void Dispose(bool disposing)
{
if (_disposed)
{
return;
}

_disposed = true;
}

#endregion
Expand Down

0 comments on commit 3a1eea0

Please sign in to comment.