Hello everybody,
Overwriting Equals on persistable Objects should be standard. I just
had a thought to also use Equals if a User compares to instances with
==, which normally does something like ReferenceEquals(Object obj).
Has anybody ever tried that? Or is this a no go cause you overwrite
standard .NET behaviour? I'm just unsure if I should do that or not.
public static bool operator ==(A thisA, A otherA)
{
return thisA.Equals(otherA);
}
Thanks for your help =)
Greetings,
Reflection
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---