dotnet / dotnet/dotnet-api-docs
Dispose DataTable
Open
area-System.Data
doc-enhancement
Pri3
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
Does `DataTable` need to be disposed?
The assumption is that disposing is required as `DataTable` implements `IDisposable` and there is no explicit statement to the contrary in the documentation.
On the other hand in the examples at [https://learn.microsoft.com/en-us/dotnet/api/system.data.datatable](https://learn.microsoft.com/en-us/dotnet/api/system.data.datatable) there are no calls to `Dispose()` or any using statements.
Contributor guide
Assessment
This issue has not been assessed yet.