cs-script icon indicating copy to clipboard operation
cs-script copied to clipboard

using statement vs using declaration

Open johngardner58work opened this issue 4 months ago • 1 comments

Regarding the following `if (...) { // does NOT work in CS-Script but works in C# 8.0 and up. Note I was using .NET interactive using FileStream f = new FileStream(@"C:\users\jaredpar\using.md"); // statements }

// Is equivalent. This works in CS-Script if (...) { using (FileStream f = new FileStream(@"C:\users\jaredpar\using.md")) { // statements } }`

johngardner58work avatar Oct 02 '24 20:10 johngardner58work