DRAG DROP
You have the following class:
You need to implement IEquatable. The Equals method must return true if both ID and Name are set to the identical values. Otherwise, the method must return false. Equals must not throw an exception.
What should you do? (Develop the solution by selecting and ordering the required code snippets. You may not need all of the code snippets.)
Select and Place:
should be: 5, 7, 8, 4
Last block should be: if(!this.Name.Equals(Other.Name)) return false;
This is because we have to compare the values not the types
this.Name.Equals can throw nurr reference exception when this.Name is null
at the end should be return true