/// <summary> /// Determines whether the specified image compare is equal to the current <see cref="ImageProfile"/>. /// </summary> /// <param name="other">The image profile to compare this <see cref="ImageProfile"/> with.</param> /// <returns>True when the specified image compare is equal to the current <see cref="ImageProfile"/>.</returns> public bool Equals(IImageProfile other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } if (Name != other.Name) { return(false); } UpdateData(); var data = other.ToByteArray(); if (data.Length == 0) { return(_data is null || _data.Length == 0); } if (_data.Length != data.Length) { return(false); } for (int i = 0; i < _data.Length; i++) { if (_data[i] != data[i]) { return(false); } } return(true); }
public bool Equals(IImageProfile other) => false;