Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#IDisposable and finalizersSingle-choice MCQ

What is the behavior of `using` over a value-type enumerator/disposable, compared to a reference type?

struct Resource : IDisposable { public void Dispose() { /* ... */ } } using (var r = new Resource()) { // ... }