Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#using statement and disposalSingle-choice MCQ

In which order do these run when the using block exits normally?

class Res : IDisposable { public void Dispose() => Console.Write("D"); } using (var r = new Res()) { Console.Write("B"); } Console.Write("A");