16 lines
224 B
C#
16 lines
224 B
C#
|
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 ("...");
|
||
|
}
|
||
|
}
|
||
|
}
|