blob: 1caf43e5187d227b3dcb7dd94212bff0364b54c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using System;
struct Blah : System.IDisposable {
public void Dispose () {
Console.WriteLine ("foo");
}
}
class B {
public static void Main () {
using (Blah b = new Blah ()) {
Console.WriteLine ("...");
}
}
}
|