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; }
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); }
public void SetByteVector(int fieldIndex, byte[] bytes) { _values[fieldIndex] = new ByteVectorValue(bytes); }
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); }