5 [My(typeof(System.Enum))]
8 object[] a = Attribute.GetCustomAttributes (typeof (T), false);
11 foreach (object o in a) {
13 if (attr.obj.GetType () == typeof (long)) {
14 long val = (long) attr.obj;
17 } else if (attr.obj.GetType () == typeof (TypeCode)) {
18 TypeCode val = (TypeCode) attr.obj;
19 if (val != TypeCode.Empty)
21 } else if (attr.obj.GetType ().IsSubclassOf (typeof (Type))) {
22 Type val = (Type) attr.obj;
23 if (val != typeof (System.Enum))
30 object[] ats = typeof(ConverterService).GetMethod("Login").GetCustomAttributes (typeof(MyAttribute), true);
31 MyAttribute at = (MyAttribute) ats[0];
38 [MyAttribute(Val=AnEnum.a)]
39 public void Login(string a) {}
42 [AttributeUsage(AttributeTargets.All,AllowMultiple=true)]
43 class My : Attribute {
45 public My (object o) {