Answer the question
In order to leave comments, you need to log in
How to see what C# syntactic sugar expands into?
Everywhere you can read that some using
using (FileStream fs = new FileStream(@"C:\tmp\text.txt", FileMode.Open))
{
}
FileStream fs = new FileStream(@"C:\tmp\text.txt", FileMode.Open);
try
{
}
finally
{
if (fs != null)
((IDisposable)fs).Dispose();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question