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
It is currently possible to change the key equality behaviour when passing in a lookup Dictionary<string, T> by specifying a specific StringComparer in the dictionary constructor. This is passed into the dictionary constructor as an IEqualityComparer<string>, allowing the user to set this before calling .FormatWith.
However, when using the object based lookup (eg with an anonymous type), the key lookup behaviour is specified internally and there is no way for the user to specify the StringComparer or StringComparison kind.
Tasks
Add extra arguments to the object based FormatWith() overloads to allow this string comparison to be changed.
The text was updated successfully, but these errors were encountered:
Preface
It is currently possible to change the key equality behaviour when passing in a lookup
Dictionary<string, T>
by specifying a specificStringComparer
in the dictionary constructor. This is passed into the dictionary constructor as anIEqualityComparer<string>
, allowing the user to set this before calling.FormatWith
.For example:
However, when using the object based lookup (eg with an anonymous type), the key lookup behaviour is specified internally and there is no way for the user to specify the
StringComparer
orStringComparison
kind.Tasks
FormatWith()
overloads to allow this string comparison to be changed.The text was updated successfully, but these errors were encountered: