Skip to content

Commit 5dfe7a1

Browse files
Update ExifTag.cs
1 parent 5f01d15 commit 5dfe7a1

File tree

1 file changed

+2
-2
lines changed
  • src/ImageSharp/Metadata/Profiles/Exif/Tags

1 file changed

+2
-2
lines changed

src/ImageSharp/Metadata/Profiles/Exif/Tags/ExifTag.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ public abstract partial class ExifTag : IEquatable<ExifTag>
2323
/// </summary>
2424
/// <param name="left">The first <see cref="ExifTag"/> to compare.</param>
2525
/// <param name="right"> The second <see cref="ExifTag"/> to compare.</param>
26-
public static bool operator ==(ExifTag left, ExifTag right) => left?.Equals(right) == true;
26+
public static bool operator ==(ExifTag? left, ExifTag? right) => left?.Equals(right) == true;
2727

2828
/// <summary>
2929
/// Determines whether the specified <see cref="ExifTag"/> instances are not considered equal.
3030
/// </summary>
3131
/// <param name="left">The first <see cref="ExifTag"/> to compare.</param>
3232
/// <param name="right"> The second <see cref="ExifTag"/> to compare.</param>
33-
public static bool operator !=(ExifTag left, ExifTag right) => !(left == right);
33+
public static bool operator !=(ExifTag? left, ExifTag? right) => !(left == right);
3434

3535
/// <inheritdoc/>
3636
public override bool Equals(object? obj)

0 commit comments

Comments
 (0)