2 using System
.Reflection
;
4 public class CtorInfoTest
6 public static void Main(string[] args
)
8 // uses static initialization
9 int[] iarray
= // int array, int constants
20 // mcs used to throw with 7 or more elements in the array initializer
21 ConstructorInfo
[] ciarray
= // ref array, null constants
32 string[] scarray
= // string array, string constants
43 string[] snarray
= // string array, null constants
54 decimal[] darray
= // decimal constants
66 IConvertible
[] lcarray
= // boxed integer constants
77 AttributeTargets
[] atarray
= // enum constants
79 AttributeTargets
.Assembly
,
80 AttributeTargets
.Module
,
81 AttributeTargets
.Class
,
82 AttributeTargets
.Struct
,
83 AttributeTargets
.Enum
,
84 AttributeTargets
.Constructor
,
85 AttributeTargets
.Method
,
86 AttributeTargets
.Property
,
87 AttributeTargets
.Field
,
88 AttributeTargets
.Event
,
89 AttributeTargets
.Interface
,
90 AttributeTargets
.Parameter
,
91 AttributeTargets
.Delegate
,
92 AttributeTargets
.ReturnValue
,
96 System
.Enum
[] eatarray
= // boxed enum constants
98 AttributeTargets
.Assembly
,
99 AttributeTargets
.Module
,
100 AttributeTargets
.Class
,
101 AttributeTargets
.Struct
,
102 AttributeTargets
.Enum
,
103 AttributeTargets
.Constructor
,
104 AttributeTargets
.Method
,
105 AttributeTargets
.Property
,
106 AttributeTargets
.Field
,
107 AttributeTargets
.Event
,
108 AttributeTargets
.Interface
,
109 AttributeTargets
.Parameter
,
110 AttributeTargets
.Delegate
,
111 AttributeTargets
.ReturnValue
,
112 AttributeTargets
.All
,