2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-202.cs
blob50a509aaf6836860e005fccde62e5a8fb6abe67a
1 public class Generic<T>
3 private T[,] container = new T[1,1];
5 public T this [int row, int col]
7 get {
8 return container[row, col];
10 set {
11 container[row, col] = value;
16 public struct Fault
18 public static void Main ()
20 Generic<Fault> gen = new Generic<Fault> ();
21 gen[0, 0] = new Fault ();
22 System.Console.WriteLine (gen[0, 0].ToString ());
25 public override string ToString ()
27 return "Hi!";