Skip to content

Commit d0dbb8e

Browse files
add hashCode method
1 parent 83547db commit d0dbb8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ public bool Equals(EncodedString other)
4646
return this.Text == other.Text && this.Code == other.Code;
4747
}
4848

49+
/// <inheritdoc/>
50+
public override int GetHashCode() =>
51+
HashCode.Combine(this.Text, this.Code);
52+
4953
/// <inheritdoc/>
5054
public override string ToString() => this.Text;
5155
}

0 commit comments

Comments
 (0)