dotnet / dotnet/dotnet-api-docs

Dispose DataTable

Open
#9,440 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.