You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Schema class, there are three methods used to retrieve individual fields:
publicclassSchema{// ...public Field GetFieldByName(stringname)=> FieldsLookup[name].FirstOrDefault();publicintGetFieldIndex(stringname,StringComparercomparer){IEqualityComparer<string>equalityComparer=(IEqualityComparer<string>)comparer;return GetFieldIndex(name, equalityComparer);}publicintGetFieldIndex(stringname,IEqualityComparer<string>comparer=default){// Implementation using the specified comparer}}
The first method (GetFieldByName) use the default string comparer, while the latter two (GetFieldIndex overloads) are using a culture aware comparator by default (StringComparer.CurrentCulture). This inconsistency can be confusing, as it is unclear when custom comparers are utilized.
Component(s)
C#
The text was updated successfully, but these errors were encountered:
In the Schema class, there are three methods used to retrieve individual fields:
The first method (GetFieldByName) use the default string comparer, while the latter two (GetFieldIndex overloads) are using a culture aware comparator by default (
StringComparer.CurrentCulture
). This inconsistency can be confusing, as it is unclear when custom comparers are utilized.Component(s)
C#
The text was updated successfully, but these errors were encountered: