From 5c59ca79aca4a3f220006e66844f1d2d03056cac Mon Sep 17 00:00:00 2001 From: Dmitrii Korolev Date: Sun, 22 Oct 2023 02:41:52 +0200 Subject: [PATCH] explain special case --- src/Dapper.AOT.Analyzers/Internal/Inspection.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Dapper.AOT.Analyzers/Internal/Inspection.cs b/src/Dapper.AOT.Analyzers/Internal/Inspection.cs index 26247e6e..8f3d0851 100644 --- a/src/Dapper.AOT.Analyzers/Internal/Inspection.cs +++ b/src/Dapper.AOT.Analyzers/Internal/Inspection.cs @@ -995,6 +995,7 @@ public static bool TryGetConstantValueWithSyntax(IOperation val, out T? value if (val is IInvocationOperation invocation) { + // `string.Format()` special case if (invocation.TargetMethod is { Name: "Format", ContainingType: { SpecialType: SpecialType.System_String },