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

This document should include some notes about the applicability in more recent .NET versions #40802

Open
stefanbomanelekta opened this issue May 8, 2024 · 0 comments
Labels
dotnet-csharp/svc fundamentals/subsvc Pri1 High priority, do before Pri2 and Pri3 ⌚ Not Triaged Not triaged

Comments

@stefanbomanelekta
Copy link

stefanbomanelekta commented May 8, 2024

Type of issue

Outdated article

Description

Hi!

The information regarding finalizers seem outdated. It should be clearly documented that the preferred pattern is always using IDisposable and if there are any system classes in the .NET (core or framework) library those types should be explicitly mentioned. For instance, FileStream is used as an example but it has been revised to correctly use the IDisposable pattern.

Best Regards,
Stefan

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/finalizers

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/programming-guide/classes-and-structs/finalizers.md

Document Version Independent Id

d3da7981-542d-e906-5988-b80e403fa651

Article author

@BillWagner

Metadata

  • ID: a96eaef8-dcc9-4659-3f4e-be5a1c4c6b50
  • Service: dotnet-csharp
  • Sub-service: fundamentals
@issues-automation issues-automation bot added dotnet-csharp/svc fundamentals/subsvc Pri1 High priority, do before Pri2 and Pri3 labels May 8, 2024
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-csharp/svc fundamentals/subsvc Pri1 High priority, do before Pri2 and Pri3 ⌚ Not Triaged Not triaged
Projects
None yet
Development

No branches or pull requests

2 participants