コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: Atom.cs プロジェクト: bvangrinsven/db4o-net
		public Atom(Db4objects.Db4o.Tests.Common.Persistent.Atom child)
		{
			this.child = child;
		}
コード例 #3
0
 public Atom(Db4objects.Db4o.Tests.Common.Persistent.Atom child, string name) : this
     (child)
 {
     this.name = name;
 }
コード例 #4
0
 public Atom(Db4objects.Db4o.Tests.Common.Persistent.Atom child)
 {
     this.child = child;
 }