From 00f094e9211a182dc4f2a633e490a5f88bca9ec0 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Fri, 15 Nov 2019 05:15:32 +0100 Subject: [PATCH] Output: Static constructors cannot have an access modifier --- Il2CppInspector/Reflection/MethodBase.cs | 3 +++ 1 file changed, 3 insertions(+) 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 ",