joern
joern copied to clipboard
[c#] Using Statements
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/using example
var numbers = new List<int>();
using (StreamReader reader = File.OpenText("numbers.txt"))
{
string line;
while ((line = reader.ReadLine()) is not null)
{
if (int.TryParse(line, out int number))
{
numbers.Add(number);
}
}
}
@pandurangpatil which PR solves this issue?
Note this refers to a try-with-resources mechanism
Oh my mistake. I realized this is the statement not the package import