1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
public struct V { public int this [int i] { set { } } public int x; } class Test { V m_value; public V v { get { return m_value; } } public Test () { m_value = new V (); m_value [0] = 1; } public static void Main () { } }