-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
2.0 breaking change in AttributesTable ctor #10
Comments
It kind-of is, but do you actually have a custom implementation of
I don't see anything wrong with that. I've added a section to the NTS wiki page for 1.x-to-2.0 upgrades that deals with the breaking changes in this package. |
I missed this while debugging, it's actually a Thank you for your input and for expanding the documentation. |
Hmm, I should have considered that kind of case before making my reply. Sorry about that. One thing that we could do is allow callers to inject the |
No problem at all 😄 I'm dealing with conversions of types (related to NetTopologySuite/NetTopologySuite.IO.SqlServerBytes#10) and the source data is a We convert from the in-house |
In 1.x
AttributesTable
had aIDictionary<string, object>
/HashTable
constructor. In 2.x it was replaced by aDictionary<string, object>
constructor.This change causes
IDictionary<string, object>
to use theIEnumerable<KeyValuePair<string, object>>
constructor instead, so theComparer
of theIDictionary
instance is lost. In my case, this is a comparer that ignores casing.I've tried changing the constructor to accept an
IDictionary
again, but this breaks theDictionary<string, object>.Enumerator GetEnumerator()
method. That enumerator has aCurrent
property, so changing it would also be a breaking change.It's probably too late at this point to try and fix this, so perhaps the best thing to do here is document this change, what do you think?
The text was updated successfully, but these errors were encountered: