Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LISTING 2-65 The dispose pattern #7

Open
FlavioRodr opened this issue Sep 11, 2019 · 0 comments
Open

LISTING 2-65 The dispose pattern #7

FlavioRodr opened this issue Sep 11, 2019 · 0 comments

Comments

@FlavioRodr
Copy link

Is this example right? The documentation is slightly different:
https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose

One of the methods signature is different:
protected override void Dispose(bool disposing)
not
public virtual void Dispose(bool disposing)

and at the end of this method the disposed field is set to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant