Output: Static constructors cannot have an access modifier

This commit is contained in:
Katy Coe
2019-11-15 05:15:32 +01:00
parent 92b964cd9c
commit 00f094e921

View File

@@ -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 ",