Skip to content

Instantly share code, notes, and snippets.

@luisdeol
Created August 18, 2019 16:48
Show Gist options
  • Save luisdeol/363818dd62f10bfe44332e19e402dab0 to your computer and use it in GitHub Desktop.
Save luisdeol/363818dd62f10bfe44332e19e402dab0 to your computer and use it in GitHub Desktop.
2.6 - Using statement
using System;
namespace _26_ManageObjLifecycle
{
class Program
{
static void Main(string[] args)
{
using (var baseClass = new BaseClass())
{
Console.WriteLine("Doing stuff.");
}
Console.ReadKey();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment