public bool Equals(Person other) { if (Object.ReferenceEquals(other, null)) { return(false); } if (Object.ReferenceEquals(this, other)) { return(true); } return(Name.Equals(other.Name) && BaseCode.Equals(other.BaseCode)); }