Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Published on
publicclassEmployee : IEquatable<Employee>{publicbool Equals(Employee other) {returnthis.Id.Equals(other.Id); }}Entities are the same if they have the same identitypublicclassPostalAddress : IEquatable<PostalAddress>{publicbool Equals(PostalAddress other) {returnthis.Number.Equals(other.Number) && this.Street.Equals(other.Street) && this.PostCode.Equals(other.PostCode) && this.Country.Equals(other.Country); }}Value Types are the same if they have the same value
Login to see the comments