Exemple #1
0
        public Warden(Warden another)
        {
            Integrity refIntegrity = null;

            try
            {
                if (another.Integrity != null)
                {
                    refIntegrity = (Integrity)another.Integrity.Clone();
                }
            }
            catch (Exception e)
            {
                e.ToString();
            }

            integrity = refIntegrity;
        }
Exemple #2
0
 public int AddWarden(Warden item)
 {
     return warden.Add(item);
 }
Exemple #3
0
        public override bool Equals(object o)
        {
            if (o == null || GetType() != o.GetType())
            {
                return false;
            }

            Warden other = new Warden((Warden)o);

            if (this.Integrity != null)
            {
                if (!this.Integrity.Equals(other.Integrity))
                {
                    return false;
                }
            }

            return true;
        }