From 190e42276dfb4adfaa3ec3aa84a43be4975d28ed Mon Sep 17 00:00:00 2001 From: thegu5 <58223632+thegu5@users.noreply.github.com> Date: Sat, 29 Jun 2024 22:44:41 -0400 Subject: [PATCH] Fix attribute constructor method naming --- Cpp2IL.Core/Model/MultiAssemblyInjectedType.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cpp2IL.Core/Model/MultiAssemblyInjectedType.cs b/Cpp2IL.Core/Model/MultiAssemblyInjectedType.cs index c32840ca..0e1ef92a 100644 --- a/Cpp2IL.Core/Model/MultiAssemblyInjectedType.cs +++ b/Cpp2IL.Core/Model/MultiAssemblyInjectedType.cs @@ -18,8 +18,8 @@ public Dictionary Inject => InjectedTypes.ToDictionary(t => t.DeclaringAssembly, t => t.InjectMethodContext(name, isStatic, returnType, attributes, args)); public Dictionary InjectConstructor(bool isStatic, params TypeAnalysisContext[] args) - => InjectMethodToAllAssemblies(isStatic ? ".ctor" : ".cctor", isStatic, InjectedTypes.First().AppContext.SystemTypes.SystemVoidType, MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.RTSpecialName, args); + => InjectMethodToAllAssemblies(isStatic ? ".cctor" : ".ctor", isStatic, InjectedTypes.First().AppContext.SystemTypes.SystemVoidType, MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.RTSpecialName, args); public Dictionary InjectFieldToAllAssemblies(string name, TypeAnalysisContext fieldType, FieldAttributes attributes) => InjectedTypes.ToDictionary(t => t.DeclaringAssembly, t => t.InjectFieldContext(name, fieldType, attributes)); -} \ No newline at end of file +}