Skip to content

Commit

Permalink
Update src/Kiota.Builder/CodeDOM/CodeClass.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Biret <[email protected]>
  • Loading branch information
andreaTP and baywet authored Apr 23, 2024
1 parent 4eb8ff7 commit 474f19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/CodeDOM/CodeClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public override IEnumerable<CodeProperty> AddProperty(params CodeProperty[] prop
if (properties.Length == 0)
throw new ArgumentOutOfRangeException(nameof(properties));

return properties.GroupBy(static x => x.Name).Select(static x => x.First()).Select(property =>
return properties.GroupBy(static x => x.Name, StringComparer.Ordinal).Select(static x => x.First()).Select(property =>
{
// Prevent duplicates
var otherProp = FindPropertyByNameInTypeHierarchy(property.Name);
Expand Down

0 comments on commit 474f19a

Please sign in to comment.