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
ReflectionEx orders fields using current culture (it simply uses OrderBy(s=>s.Name)). It is possible (as I've encountered) that two different locales would result in different fields orders.
In my case lt-LT orders y before o, so fields ToDate and Type are ordered ["Type", "ToDate"]. In en-US, o comes before y, so the fields are ordered as ["ToDate", "Type"].
Not sure how to fix that in non-breaking manner. Locally, I just added StringComparer.Ordinal.
Alternatively it could use manifest (if fields are listed) to generate correct reader.
The text was updated successfully, but these errors were encountered:
ReflectionEx orders fields using current culture (it simply uses
OrderBy(s=>s.Name)
). It is possible (as I've encountered) that two different locales would result in different fields orders.In my case
lt-LT
ordersy
beforeo
, so fieldsToDate
andType
are ordered["Type", "ToDate"]
. In en-US,o
comes beforey
, so the fields are ordered as["ToDate", "Type"]
.Not sure how to fix that in non-breaking manner. Locally, I just added
StringComparer.Ordinal
.Alternatively it could use manifest (if fields are listed) to generate correct reader.
The text was updated successfully, but these errors were encountered: