예제 #1
0
 public override bool Equals(object obj)
 {
     if (obj is Db4objects.Db4o.Tests.Common.Assorted.Atom)
     {
         Db4objects.Db4o.Tests.Common.Assorted.Atom other = (Db4objects.Db4o.Tests.Common.Assorted.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);
 }
예제 #2
0
 public Atom(Db4objects.Db4o.Tests.Common.Assorted.Atom child, string name) : this
     (child)
 {
     this.name = name;
 }
예제 #3
0
 public Atom(Db4objects.Db4o.Tests.Common.Assorted.Atom child)
 {
     this.child = child;
 }