Browse Source

add hashCode method

pull/1935/head
Ildar Khayrutdinov 4 years ago
parent
commit
d0dbb8e1fa
  1. 4
      src/ImageSharp/Metadata/Profiles/Exif/Values/EncodedString.cs

4
src/ImageSharp/Metadata/Profiles/Exif/Values/EncodedString.cs

@ -46,6 +46,10 @@ namespace SixLabors.ImageSharp.Metadata.Profiles.Exif
return this.Text == other.Text && this.Code == other.Code;
}
/// <inheritdoc/>
public override int GetHashCode() =>
HashCode.Combine(this.Text, this.Code);
/// <inheritdoc/>
public override string ToString() => this.Text;
}

Loading…
Cancel
Save