diff --git a/src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs b/src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs index e64c6efec9..6d76619e76 100644 --- a/src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs +++ b/src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs @@ -135,18 +135,6 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif } } - /// - /// Clones the current value, overwriting the value. - /// - /// The value to overwrite. - /// - public ExifValue WithValue(object value) - { - this.CheckValue(value); - - return new ExifValue(this.Tag, this.DataType, value, this.IsArray); - } - /// /// Compares two objects for equality. /// @@ -211,6 +199,18 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif object.Equals(this.Value, other.Value); } + /// + /// Clones the current value, overwriting the value. + /// + /// The value to overwrite. + /// + public ExifValue WithValue(object value) + { + this.CheckValue(value); + + return new ExifValue(this.Tag, this.DataType, value, this.IsArray); + } + /// public override int GetHashCode() { diff --git a/src/ImageSharp/Primitives/SignedRational.cs b/src/ImageSharp/Primitives/SignedRational.cs index 5cce98d033..bc0e41966e 100644 --- a/src/ImageSharp/Primitives/SignedRational.cs +++ b/src/ImageSharp/Primitives/SignedRational.cs @@ -129,7 +129,7 @@ namespace SixLabors.ImageSharp.Primitives /// public override bool Equals(object obj) { - return obj is SignedRational other && Equals(other); + return obj is SignedRational other && this.Equals(other); } ///