mirror of
https://github.com/github/codeql.git
synced 2026-07-13 15:28:16 +02:00
20 lines
362 B
C#
20 lines
362 B
C#
class MissedUsingOpportunity
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
StreamReader reader = null;
|
|
try
|
|
{
|
|
reader = File.OpenText("input.txt");
|
|
// ...
|
|
}
|
|
finally
|
|
{
|
|
if (reader != null)
|
|
{
|
|
((IDisposable)reader).Dispose();
|
|
}
|
|
}
|
|
}
|
|
}
|