public static System.Guid ToGuid(ShortUid uid)
        {
            long  val  = uid.Value;
            int   low  = (int)(val & uint.MaxValue);
            short mid  = (short)((val >> 32) & ushort.MaxValue);
            short high = (short)(val >> 48);

            return(new System.Guid(low, mid, high, 0, 0, 0, 0, 0, 0, 0, 0));
        }
Example #2
0
 public bool Equals(ShortUid uid)
 {
     return(this._high == uid._high && this._low == uid._low);
 }
Example #3
0
 public bool Equals(ShortUid uid)
 {
     return(this.IsLong && this.LongValue == uid.Value);
 }