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 },