5 public static class Magic
7 public interface IUpDown
9 int DestinationDimension { get; }
12 public static int Main ()
14 Magic<decimal>.Upsample (new Instance ());
19 public static class Magic<T>
21 public interface IAccessible { T this[int index] { get; set; } }
23 public interface IUpDown : Magic.IUpDown, IAccessible { }
25 public static void Upsample (IUpDown o)
27 var count = o.DestinationDimension;
31 class Instance : Magic<decimal>.IUpDown
33 #region IUpDown Members
35 public int DestinationDimension
45 #region IAccessible Members
47 public decimal this[int index]
51 throw new NotImplementedException ();
55 throw new NotImplementedException ();