Exemplo n.º 1
0
 /// <summary>
 /// Override the equality operator
 /// </summary>
 public bool Equals(AnimalType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(this.ANMT_ID_PK.Equals(other.ANMT_ID_PK));
 }
Exemplo n.º 2
0
        /// <summary>
        /// This function clones the AnimalType
        /// </summary>
        /// <returns>A new AnimalType</returns>
        public object Clone()
        {
            AnimalType res = new AnimalType();

            res.ANMT_ID_PK       = this.ANMT_ID_PK;
            res.ANMT_DESCRIPTION = this.ANMT_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);
            }
            AnimalType objAsUser = other as AnimalType;

            if (objAsUser == null)
            {
                return(false);
            }
            else
            {
                return(Equals(objAsUser));
            }
        }