System.Reflection.PseudoCustomAttribute.PseudoCustomAttribute C# (CSharp) Method

PseudoCustomAttribute() static private method

static private PseudoCustomAttribute ( ) : System
return System
        static PseudoCustomAttribute()
        {
            Type[] pcas = new Type[]  
            {
                // See //depot/DevDiv/private/Main/ndp/clr/src/MD/Compiler/CustAttr.cpp
                typeof(FieldOffsetAttribute), // field
                typeof(SerializableAttribute), // class, struct, enum, delegate
                typeof(MarshalAsAttribute), // parameter, field, return-value
                typeof(ComImportAttribute), // class, interface 
                typeof(NonSerializedAttribute), // field, inherited
                typeof(InAttribute), // parameter
                typeof(OutAttribute), // parameter
                typeof(OptionalAttribute), // parameter
                typeof(DllImportAttribute), // method
                typeof(PreserveSigAttribute), // method
            };

            s_pcasCount = pcas.Length;
            s_pca = new Hashtable(s_pcasCount);
            for (int i = 0; i < s_pcasCount; i ++)
            {
                VerifyPseudoCustomAttribute(pcas[i]);
                s_pca[pcas[i]] = pcas[i];
            }
        }