Skip to content

Commit

Permalink
Improved Resolve methods performance
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Apr 20, 2024
1 parent 2dc9781 commit 845ac6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Pure.DI.Core/Core/Code/ApiMembersBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public CompositionCode Build(CompositionCode composition)
}

buildTools.AddPureHeader(apiCode);
apiCode.AppendLine($"[{Names.MethodImplAttribute}(({Names.MethodImplOptions})0x100)]");
apiCode.AppendLine($"{hints.ResolveMethodModifiers} T {hints.ResolveMethodName}<T>()");
apiCode.AppendLine("{");
using (apiCode.Indent())
Expand All @@ -53,6 +54,7 @@ public CompositionCode Build(CompositionCode composition)
}

buildTools.AddPureHeader(apiCode);
apiCode.AppendLine($"[{Names.MethodImplAttribute}(({Names.MethodImplOptions})0x100)]");
apiCode.AppendLine($"{hints.ResolveByTagMethodModifiers} T {hints.ResolveByTagMethodName}<T>(object? tag)");
apiCode.AppendLine("{");
using (apiCode.Indent())
Expand Down

0 comments on commit 845ac6f

Please sign in to comment.