Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alistairjevans/06a5e08d7edbe2bec560b9c04bf3ac7c to your computer and use it in GitHub Desktop.
Save alistairjevans/06a5e08d7edbe2bec560b9c04bf3ac7c to your computer and use it in GitHub Desktop.
Derived classes
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