Beispiel #1
0
 public override int Compare(UidVal <long> a, UidVal <long> b)
 {
     if (a.val < b.val)
     {
         return(-1);
     }
     else if (a.val > b.val)
     {
         return(+1);
     }
     else if (a.uid < b.uid)
     {
         return(-1);
     }
     else if (a.uid > b.uid)
     {
         return(+1);
     }
     else
     {
         return(0);
     }
 }
Beispiel #2
0
 internal static void Write(BinaryWriter wr, UidVal <long> uv)
 {
     wr.Write(uv.uid);
     wr.Write(uv.val);
 }