public bool Equals(DateOption other) { if (other == null) { return(false); } return(this.Date.Equals(other.Date)); }
/* * public override int GetHashCode() * { * throw new NotImplementedException(); * } */ public override bool Equals(object obj) { if (obj == null) { return(false); } DateOption objAsDateOption = obj as DateOption; if (objAsDateOption == null) { return(false); } else { return(Equals(objAsDateOption)); } }