public override bool Equals(object obj) { if (obj is Db4objects.Db4o.Tests.Common.Persistent.Atom) { Db4objects.Db4o.Tests.Common.Persistent.Atom other = (Db4objects.Db4o.Tests.Common.Persistent.Atom )obj; if (name == null) { if (other.name != null) { return(false); } } else { if (!name.Equals(other.name)) { return(false); } } if (child != null) { return(child.Equals(other.child)); } return(other.child == null); } return(false); }
public Atom(Db4objects.Db4o.Tests.Common.Persistent.Atom child) { this.child = child; }
public Atom(Db4objects.Db4o.Tests.Common.Persistent.Atom child, string name) : this (child) { this.name = name; }