Ejemplo n.º 1
0
        public static ITuple ToTupleOrDefault(this Slice slice)
        {
            //note: this method is here to allow a fluent API with method chaining, like "something.ToFoundationDbKey().ToTuple().With((int x, int y) => .....)"

            if (slice.IsNullOrEmpty)
            {
                return(slice.HasValue ? STuple.Empty : null);
            }

            return(STuple.Unpack(slice));
        }
Ejemplo n.º 2
0
 public static ITuple ToTuple(this Slice slice)
 {
     //note: this method is here to allow a fluent API with method chaining, like "something.ToFoundationDbKey().ToTuple().With((int x, int y) => .....)"
     return(STuple.Unpack(slice));
 }
 public ITuple UnpackKey(Slice packed)
 {
     return(STuple.Unpack(packed));
 }