Beispiel #1
0
        public Torso(Torso another)
        {
            Atom refAtom = null;

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

            atom = refAtom;
        }
Beispiel #2
0
 public int AddTorso(Torso item)
 {
     return torso.Add(item);
 }
Beispiel #3
0
        public override bool Equals(object o)
        {
            if (o == null || GetType() != o.GetType())
            {
                return false;
            }

            Torso other = new Torso((Torso)o);

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

            return true;
        }