diff --git a/Il2CppInspector/Reflection/MemberInfo.cs b/Il2CppInspector/Reflection/MemberInfo.cs index f22d838..e550efe 100644 --- a/Il2CppInspector/Reflection/MemberInfo.cs +++ b/Il2CppInspector/Reflection/MemberInfo.cs @@ -17,7 +17,7 @@ namespace Il2CppInspector.Reflection { // Custom attributes for this member public abstract IEnumerable CustomAttributes { get; } - public TypeInfo[] GetCustomAttributes(string fullTypeName) => CustomAttributes.Where(a => a.AttributeType.FullName == fullTypeName).Select(x => x.AttributeType).ToArray(); + public CustomAttributeData[] GetCustomAttributes(string fullTypeName) => CustomAttributes.Where(a => a.AttributeType.FullName == fullTypeName).ToArray(); // Type that this type is declared in for nested types protected int declaringTypeDefinitionIndex { private get; set; } = -1;