Last active
February 14, 2017 13:34
-
-
Save superzadeh/cc3f420067ba5fbbadd9aeebb9d5a1a7 to your computer and use it in GitHub Desktop.
Resharper templates #tags: template, resharper, c#, snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Arrange | |
// Act | |
// Assert |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region IDisposable | |
bool _disposed; | |
public void Dispose() | |
{ | |
Dispose(true); | |
GC.SuppressFinalize(this); | |
} | |
~$ClassName$() | |
{ | |
Dispose(false); | |
} | |
protected virtual void Dispose(bool disposing) | |
{ | |
if (_disposed) | |
{ | |
return; | |
} | |
if (disposing) | |
{ | |
} | |
_disposed = true; | |
} | |
#endregion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove things you do not need, most likely the finalizer and the call to GC.SuppressFinalize.