Skip to content

Commit

Permalink
Update Inspection.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravell authored Nov 20, 2023
1 parent 813c04f commit ec7cf8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dapper.AOT.Analyzers/Internal/Inspection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ private static bool TryGetAttributeValue<T>(AttributeData? attrib, string name,
int index = 0;
foreach (var p in ctor.Parameters)
{
if (p.Name.Equals(name, StringComparison.InvariantCultureIgnoreCase))
if (StringComparer.InvariantCultureIgnoreCase.Equals(p.Name, name))
{
value = Parse(attrib.ConstructorArguments[index], out isNull);
return true;
Expand Down

0 comments on commit ec7cf8f

Please sign in to comment.