Example #1
0
        /// <summary>
        /// Implementation if IComparable
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public Int32 CompareTo(ITinkarId other)
        {
            Int32 cmpVal = this.MostSignificantBits.CompareTo(other.MostSignificantBits);

            if (cmpVal != 0)
            {
                return(cmpVal);
            }
            return(this.LeastSignificantBits.CompareTo(other.LeastSignificantBits));
        }
Example #2
0
 public Int32 CompareTo(ITinkarId other) => throw new NotImplementedException();
Example #3
0
 public static ByteString ToByteString(this ITinkarId id)
 {
     //# Tested
     return(ByteString.CopyFrom(id.Uuid.ToByteArray()));
 }