Exemple #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));
        }
Exemple #2
0
 public static Key Of(byte[] bytes)
 {
     return(new Key(WrappedByteArray.Of(bytes)));
 }
Exemple #3
0
 private Key(WrappedByteArray data)
 {
     this.data = data;
 }
Exemple #4
0
 public static Value Of(Operator op, byte[] data)
 {
     return(new Value(op, WrappedByteArray.Of(data)));
 }
Exemple #5
0
 private Value(Operator op, WrappedByteArray data)
 {
     this.op   = op;
     this.data = data;
 }