-
Notifications
You must be signed in to change notification settings - Fork 175
Various Set fixes and improvements #2296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
papafe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
LaPeste
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Tests/Realm.Tests/Database/RealmSetTests.cs I went a little faster then the rest, but overall the changes look more then reasonable to me. However, I have a few doubts about the weaving part, so it could be beneficial if at the next PR reviews (Friday) you could spend a few words on the subject.
- Simplify collection accessors/weaving by having not constructing the unmanaged collections - Fix adding to Dictionary<EmbeddedObject> when the value is null - Implement Object.GetHashCode - Implement custom IEqualityComparer for binary data to match the native behavior - Add tests for Set<Object> and Set<byte[]>
fee01f3 to
3de1a57
Compare
Description
ISet<T>support. Fixes Add ISet<T> support #2099.ISet<RealmObject>andISet<byte[]>. Fixes [Set] Add tests for Set<byte[]/RealmObject/EmbeddedObject> #2211.RealmObjectBase.GetHashCode. Fixes RealmObject should overload GetHashCode #1650.TODO