Skip to content

Commit

Permalink
Update csharp/src/Ice/Properties.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Jose  <[email protected]>
  • Loading branch information
externl and pepone authored Oct 7, 2024
1 parent f2fea7b commit 03a99db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions csharp/src/Ice/Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,7 @@ internal static void validatePropertiesWithPrefix(string prefix, Properties prop
// Do not check for unknown properties if Ice prefix, ie Ice, Glacier2, etc
foreach (string name in PropertyNames.clPropNames)
{
string icePrefix = name + ".";
if (prefix.StartsWith(icePrefix, StringComparison.Ordinal))
if (prefix.StartsWith($"{name}.", StringComparison.Ordinal))
{
return;
}
Expand Down

0 comments on commit 03a99db

Please sign in to comment.