You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
API_SQLuedo/API_SQLuedo/TestAPI/Extensions/ParagraphDto.EqualityCompar...

16 lines
311 B

using Dto;
namespace TestAPI.Extensions;
class ParagraphIdEqualityComparer : EqualityComparer<ParagraphDto>
{
public override bool Equals(ParagraphDto x, ParagraphDto y)
{
return x.Id == y.Id;
}
public override int GetHashCode(ParagraphDto obj)
{
return obj.Id;
}
}