What fields does this method use to compare the objects? I need a simple method to determine if two different instances of EntityReference are referencing to the same entity. And I don't want to reinvent a bicycle if Equals() method fits my needs.
The MSDN says only that Equals returns:
true if the specified EntityReference is equal to the EntityReference object; otherwise, false.
Partial experiments showed that Equals method compares 'Id' and 'LogicalName' fields and ignores 'Name'. But we didn't test all possible cases (there are some more fields in EntityReference).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With