Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Add overload for Set<T>() with custom IEqualityComparer #113

Merged

Conversation

SSchulze1989
Copy link
Contributor

@SSchulze1989 SSchulze1989 commented Jun 11, 2022

Enable custom equality testing when setting a property value by directly passing an IEqualityComparer<T> to the ViewModelBase.Set<T>() function.

Resolves #112

@klemmchr
Copy link
Owner

Looks good to me, could you include a unit test for the new Set<T> method as well?

@SSchulze1989
Copy link
Contributor Author

Sure, I have updated the PR

@klemmchr klemmchr merged commit 7115907 into klemmchr:master Jun 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow custom EqualityComparer on ViewModelBase.Set<T>() function
2 participants