"RAII Using Statement"

void Test() {
	using var fileStream = File.OpenRead("somefile.txt");
	
	// ...
	
	// fileStream.Dispose() automatically invoked here at the end of this method
}


Code snippet taken from "Two Decades of C#: A Reference - C# 8".