3 // Regression test for bug #59235
5 public static class Program {
6 delegate void MyDel (int i, int j);
8 public static void Main (string[] args) {
9 var o = new MyTarget ();
10 Console.WriteLine ("Hashcode1: " + o.GetHashCode ());
13 Console.WriteLine ("Hashcode2: " + d.GetHashCode ());
14 Console.WriteLine ("Hashcode3: " + o.GetHashCode ());
17 Console.WriteLine ("Hashcode4: " + d.GetHashCode ());
20 class MyTarget : IDisposable {
21 public int counter = 0;
24 public void DoStuff (int i, int j) {
28 public void Dispose () {
32 public override int GetHashCode () {
34 throw new ObjectDisposedException ("MyTarget is dead");
35 return counter.GetHashCode ();