public unsafe void EnumCustomAttributes(int mdToken, int* result, int count) { Enum((int)MetadataTokenType.CustomAttribute, mdToken, result, count); } public int EnumCustomAttributesCount(int mdToken)
internal static CustomAttributeRecord[] GetCustomAttributeRecords(RuntimeModule module, int targetToken) { MetadataImport metadataImport = module.MetadataImport; MetadataEnumResult result; metadataImport.EnumCustomAttributes(targetToken, out result); CustomAttributeRecord[] customAttributeRecordArray = new CustomAttributeRecord[result.Length]; for (int index = 0; index < customAttributeRecordArray.Length; ++index) { metadataImport.GetCustomAttributeProps(result[index], out customAttributeRecordArray[index].tkCtor.Value, out customAttributeRecordArray[index].blob); } return(customAttributeRecordArray); }