Skip to content

Restore backward compatibility for Is.EqualTo<T>(T? expected) - #5013

Merged
OsirisTerje merged 2 commits into
mainfrom
Issue/5011/BackwardCompatible
Jul 26, 2025
Merged

Restore backward compatibility for Is.EqualTo<T>(T? expected)#5013
OsirisTerje merged 2 commits into
mainfrom
Issue/5011/BackwardCompatible

Conversation

@manfred-brands

Copy link
Copy Markdown
Member

Fixes #5011

Unfortunately this make UsingPropertiesComparer less elegant for the advanced case.
This either requires changing EqualTo into EqualToGeneric
Or passing the type to UsingPropertiesComparer<Person>

I'm open to different naming suggestions to EqualToGeneric.
Alternatively have IsGeneric.EqualTo where we put all new generic versions.

Unfortunately this make UsingPropertiesComparer less elegant for the advanced case.
This either requires changing `EqualTo` into  `EqualToGeneric`
Or passing the type to `UsingPropertiesComparer<Person>`
@OsirisTerje
OsirisTerje merged commit 3fde711 into main Jul 26, 2025
5 checks passed
@OsirisTerje
OsirisTerje deleted the Issue/5011/BackwardCompatible branch July 26, 2025 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Breaking change in version 4.4.0-beta.1

2 participants