/// <summary> /// Override the equality operator /// </summary> public bool Equals(TreatmentType other) { if (other == null) { return(false); } return(this.TRET_ID_PK.Equals(other.TRET_ID_PK)); }
/// <summary> /// This function clones the TreatmentType /// </summary> /// <returns>a new TreatmentType</returns> public object Clone() { TreatmentType res = new TreatmentType(); res.TRET_ID_PK = this.TRET_ID_PK; res.TRET_DESCRIPTION = this.TRET_DESCRIPTION; res.CurrentState = this.CurrentState; return(res); }
/// <summary> /// Override the equality operator /// </summary> public override bool Equals(object other) { if (other == null) { return(false); } TreatmentType objAsUser = other as TreatmentType; if (objAsUser == null) { return(false); } else { return(Equals(objAsUser)); } }