Skip to content

Resource Management in C#

Every page here directly controls deterministic cleanup of disposable resources.

FeatureIntroduced InWhy it belongs hereGuide
using statementsC# 1.0The original scope-based disposal feature.Guide
Using declarationsC# 8.0Scope-based disposal without an extra block.Guide
await usingC# 8.0Asynchronous disposal for async resources.Guide