System.Reflection.CustomAttributeData.GetCustomAttributes C# (CSharp) Method

GetCustomAttributes() private static method

private static GetCustomAttributes ( Module module, int tkTarget ) : IList
module Module
tkTarget int
return IList
        private static IList<CustomAttributeData> GetCustomAttributes(Module module, int tkTarget)
        {
            CustomAttributeRecord[] records = GetCustomAttributeRecords(module, tkTarget);

            CustomAttributeData[] customAttributes = new CustomAttributeData[records.Length];
            for (int i = 0; i < records.Length; i++)
                customAttributes[i] = new CustomAttributeData(module, records[i]);

            return Array.AsReadOnly(customAttributes);
        } 
        #endregion 

Same methods

CustomAttributeData::GetCustomAttributes ( Assembly target ) : IList
CustomAttributeData::GetCustomAttributes ( MemberInfo target ) : IList
CustomAttributeData::GetCustomAttributes ( Module target ) : IList
CustomAttributeData::GetCustomAttributes ( ParameterInfo target ) : IList

Usage Example

Esempio n. 1
0
 public override IList <CustomAttributeData> GetCustomAttributesData()
 {
     return(CustomAttributeData.GetCustomAttributes(this));
 }
All Usage Examples Of System.Reflection.CustomAttributeData::GetCustomAttributes