Esempio n. 1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null || this.GetType() != obj.GetType())
            {
                return(false);
            }
            WrappedByteArray compare = (WrappedByteArray)obj;

            return(this.bytes.SequenceEqual(compare.bytes));
        }
Esempio n. 2
0
 public static Key Of(byte[] bytes)
 {
     return(new Key(WrappedByteArray.Of(bytes)));
 }
Esempio n. 3
0
 private Key(WrappedByteArray data)
 {
     this.data = data;
 }
Esempio n. 4
0
 public static Value Of(Operator op, byte[] data)
 {
     return(new Value(op, WrappedByteArray.Of(data)));
 }
Esempio n. 5
0
 private Value(Operator op, WrappedByteArray data)
 {
     this.op   = op;
     this.data = data;
 }