コード例 #1
0
 public override bool Equals(object obj)
 {
     if (obj == null || !(obj is NeoDatis.Odb.Core.Layers.Layer2.Meta.AtomicNativeObjectInfo
                          ))
     {
         return(false);
     }
     NeoDatis.Odb.Core.Layers.Layer2.Meta.AtomicNativeObjectInfo noi = (NeoDatis.Odb.Core.Layers.Layer2.Meta.AtomicNativeObjectInfo
                                                                        )obj;
     if (theObject == noi.GetObject())
     {
         return(true);
     }
     return(theObject.Equals(noi.GetObject()));
 }
コード例 #2
0
 public static string AtomicNativeObjectToString(NeoDatis.Odb.Core.Layers.Layer2.Meta.AtomicNativeObjectInfo
                                                 anoi, int caller)
 {
     if (anoi == null || anoi.IsNull())
     {
         return("null");
     }
     if (anoi.GetObject() is System.DateTime)
     {
         if (NeoDatis.Odb.Impl.Tool.ObjectTool.CallerIsOdbExplorer(caller))
         {
             return(format.Format((System.DateTime)anoi.GetObject()));
         }
         return(((System.DateTime)anoi.GetObject()).Millisecond.ToString());
     }
     return(anoi.GetObject().ToString());
 }
コード例 #3
0
 public virtual int CompareTo(object o)
 {
     NeoDatis.Odb.Core.Layers.Layer2.Meta.AtomicNativeObjectInfo anoi = (NeoDatis.Odb.Core.Layers.Layer2.Meta.AtomicNativeObjectInfo
                                                                         )o;
     System.IComparable c2 = (System.IComparable)anoi.GetObject();
     System.IComparable c1 = (System.IComparable)theObject;
     return(c1.CompareTo(c2));
 }