Cascading IEquatable(Of T)

Posted by Shimmy on Stack Overflow See other posts from Stack Overflow or by Shimmy
Published on 2010-03-14T05:56:38Z Indexed on 2010/03/14 6:05 UTC
Read the original article Hit count: 343

Filed under:
|
|

Hello!

I have several entities I need to make IEquatable(Of TEntity) respectively.

I want them first to check equality between EntityId, then if both are zero, should check regarding to other properties, for example same contact names, same phone number etc.

How is this done?

© Stack Overflow or respective owner

Related posts about iequatable

Related posts about generic