Created
October 24, 2019 13:41
-
-
Save alistairjevans/06a5e08d7edbe2bec560b9c04bf3ac7c to your computer and use it in GitHub Desktop.
Derived classes
This file contains 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
class BaseClassThatMightHaveChildrenWithResources : IDisposable, IAsyncDisposable | |
{ | |
public virtual void Dispose() | |
{ | |
} | |
public virtual ValueTask DisposeAsync() | |
{ | |
Dispose(); | |
return default; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment