diff --git a/Il2CppInspector/Reflection/MethodBase.cs b/Il2CppInspector/Reflection/MethodBase.cs index 316e7c6..21e7a3a 100644 --- a/Il2CppInspector/Reflection/MethodBase.cs +++ b/Il2CppInspector/Reflection/MethodBase.cs @@ -116,6 +116,9 @@ namespace Il2CppInspector.Reflection } public string GetAccessModifierString() => this switch { + // Static constructors can not have an access level modifier + { IsConstructor: true, IsStatic: true } => "", + { IsPrivate: true } => "private ", { IsPublic: true } => "public ", { IsFamily: true } => "protected ",