public Warden(Warden another) { Integrity refIntegrity = null; try { if (another.Integrity != null) { refIntegrity = (Integrity)another.Integrity.Clone(); } } catch (Exception e) { e.ToString(); } integrity = refIntegrity; }
public int AddWarden(Warden item) { return warden.Add(item); }
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; }