public bool Equals(ByteVectorValue other)
        {
            if (value_Renamed.Length != other.value_Renamed.Length)
            {
                return false;
            }

            for (int i = 0; i < value_Renamed.Length; i++)
                if (value_Renamed[i] != other.value_Renamed[i])
                {
                    return false;
                }

            return true;
        }
Exemplo n.º 2
0
        public bool Equals(ByteVectorValue other)
        {
            if (value_Renamed.Length != other.value_Renamed.Length)
            {
                return(false);
            }

            for (int i = 0; i < value_Renamed.Length; i++)
            {
                if (value_Renamed[i] != other.value_Renamed[i])
                {
                    return(false);
                }
            }

            return(true);
        }
Exemplo n.º 3
0
 public void SetByteVector(int fieldIndex, byte[] bytes)
 {
     _values[fieldIndex] = new ByteVectorValue(bytes);
 }
Exemplo n.º 4
0
 public virtual void  SetByteVector(int fieldIndex, byte[] bytes)
 {
     values[fieldIndex] = new ByteVectorValue(bytes);
 }
 public void TestEquals()
 {
     var expected = new ByteVectorValue(new byte[] { 0xff });
     var actual = new ByteVectorValue(new byte[] { 0xff });
     Assert.AreEqual(expected, actual);
 }