3 using System
.Reflection
;
7 public static int Main ()
9 var setter
= typeof (MyClass
).GetMember("set_Item")[0] as MethodInfo
;
10 var sp
= setter
.GetParameters ();
11 var first
= sp
[0].GetCustomAttributes ();
12 var value = sp
[2].GetCustomAttributes ();
14 if (first
.Count () != 0)
17 if (value.Count () != 1)
24 [AttributeUsage(AttributeTargets
.All
)]
25 public class MyAttribute2Attribute
: Attribute
31 public string this[int index1
, int index2
]