From 88acab01451b078e279e7356504c0d1f0a0e6206 Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Tue, 27 Mar 2018 13:15:51 -0700 Subject: [PATCH] Address STYLECOP violations, round 2. --- .../MetaData/Profiles/Exif/ExifValue.cs | 24 +++++++++---------- src/ImageSharp/Primitives/SignedRational.cs | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) 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); } ///