Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
        /// <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));
            }
        }