ValeraT1982 / ObjectsComparer

C# Framework provides mechanism to compare complex objects, allows to override comparison rules for specific properties and types.
MIT License
352 stars 86 forks source link

Add Dupe value Comparer #21

Closed vbjay closed 3 years ago

vbjay commented 3 years ago

Add a comparer that allows you to specify members to compare and find duplicate values.

Example:

class SomeData
{
    string FirstName{get;set;}
    string NickName{get;set;}
    string LastName{get;set;}
}
SomeData d = new SomeData(){
    FirstName ="Jim",
    NickName ="The JimSter",
    LastName ="Jim"
}

This comparer would say you have duplicates between FirstName and LastName if those members were included in the items.

ValeraT1982 commented 3 years ago

@vbjay, can you please tell more about your usecase?