示例#1
0
 public Uuid(Guid guid)
 {
     AsByte     = new UuidBytes();
     AsShort    = new UuidShort();
     AsInteger  = new UuidInteger();
     AsCardinal = new UuidCardinal();
     AsLong     = new UuidLong();
     AsGuid     = guid;
 }
示例#2
0
        public Uuid(string g)
        {
            var guid = new Guid(g);

            AsByte     = new UuidBytes();
            AsShort    = new UuidShort();
            AsInteger  = new UuidInteger();
            AsCardinal = new UuidCardinal();
            AsLong     = new UuidLong();
            AsGuid     = guid;
        }