You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 theIDisposable
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
The text was updated successfully, but these errors were encountered: