using (BinaryReader reader = new BinaryReader(File.Open("example.bin", FileMode.Open))) { // Read binary data } // Automatically calls the Dispose method to release resourcesIn this example, we create an instance of BinaryReader to read binary data from a file. The using statement ensures that the Dispose method is called when the execution leaves the block. This frees up resources before it goes out of scope. The System.IO namespace is included in the .NET Framework, which is part of the package library provided by Microsoft.