2 using System
.Collections
.Generic
;
6 [My(typeof(System
.Enum
))]
7 [My(new Type
[] { typeof(IEnumerable<string>), typeof(IList<string>) }
)]
10 object[] a
= Attribute
.GetCustomAttributes (typeof (T
), false);
13 foreach (object o
in a
) {
15 if (attr
.obj
.GetType () == typeof(long)) {
16 long val
= (long)attr
.obj
;
19 } else if (attr
.obj
.GetType () == typeof(TypeCode
)) {
20 int val
= (int)attr
.obj
;
21 if (val
!= (int)TypeCode
.Empty
)
23 } else if (attr
.obj
.GetType () == typeof(Type
[])) {
24 Type
[] arr
= (Type
[])attr
.obj
;
26 if (arr
[0] != typeof (IEnumerable
<string>))
28 if (arr
[1] != typeof (IList
<string>))
31 Type t
= attr
.obj
as Type
;
34 if (t
!= typeof (System
.Enum
))
43 [AttributeUsage(AttributeTargets
.All
,AllowMultiple
=true)]
44 class My
: Attribute
{
46 public My (object o
) {