/// <summary> /// Equals Method /// </summary> /// <param name="fd"></param> /// <returns></returns> public bool Equals(BorderPartData bpd) { // If parameter is null return false: if ((object)bpd == null) { return(false); } // Return true if the fields match: return((this.colorId == bpd.colorId) && (this.style == bpd.style)); }
/// <summary> /// Equals Method /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(System.Object obj) { // If parameter is null return false. if (obj == null) { return(false); } // If parameter cannot be cast to FillDataList return false. BorderPartData bpd = obj as BorderPartData; if ((System.Object)bpd == null) { return(false); } // Return true if the fields match: return((this.colorId == bpd.colorId) && (this.style == bpd.style)); }