"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 "Complete C# Quick Reference - C# 8".