diff --git a/Il2CppDumper/Il2CppCSharpDumper.cs b/Il2CppDumper/Il2CppCSharpDumper.cs index 019d6e8..682915e 100644 --- a/Il2CppDumper/Il2CppCSharpDumper.cs +++ b/Il2CppDumper/Il2CppCSharpDumper.cs @@ -73,7 +73,9 @@ namespace Il2CppInspector writer.Write(prefix + "[Serializable]\n"); // Custom attributes - writer.Write(type.CustomAttributes.ToString(prefix)); + // TODO: DefaultMemberAttribute should be output if it is present and the type does not have an indexer, otherwise suppressed + // See https://docs.microsoft.com/en-us/dotnet/api/system.reflection.defaultmemberattribute?view=netframework-4.8 + writer.Write(type.CustomAttributes.Where(a => a.AttributeType.Name != "DefaultMemberAttribute").ToString(prefix)); writer.Write(prefix); if (type.IsPublic || type.IsNestedPublic)