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

What is the scope of `file` declared with a using declaration (no braces)?

void Process() { using var file = new StreamWriter("out.txt"); file.WriteLine("hi"); // ... more code }