public bool Equals(EncodedFramingRecord other) { if (other == null) { return(false); } if (other == this) { return(true); } byte[] otherBytes = other._encodedBytes; if (_encodedBytes.Length != otherBytes.Length) { return(false); } for (int i = 0; i < _encodedBytes.Length; i++) { if (_encodedBytes[i] != otherBytes[i]) { return(false); } } return(true); }
public bool Equals(EncodedFramingRecord other) { if (other == null) { return false; } if (other != this) { byte[] encodedBytes = other.encodedBytes; if (this.encodedBytes.Length != encodedBytes.Length) { return false; } for (int i = 0; i < this.encodedBytes.Length; i++) { if (this.encodedBytes[i] != encodedBytes[i]) { return false; } } } return true; }
public bool Equals(EncodedFramingRecord other) { if (other == null) return false; if (other == this) return true; byte[] otherBytes = other._encodedBytes; if (_encodedBytes.Length != otherBytes.Length) return false; for (int i = 0; i < _encodedBytes.Length; i++) { if (_encodedBytes[i] != otherBytes[i]) return false; } return true; }