Browse Source

Address STYLECOP violations, round 2.

af/merge-core
Jason Nelson 8 years ago
parent
commit
88acab0145
  1. 24
      src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs
  2. 2
      src/ImageSharp/Primitives/SignedRational.cs

24
src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs

@ -135,18 +135,6 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif
}
}
/// <summary>
/// Clones the current value, overwriting the value.
/// </summary>
/// <param name="value">The value to overwrite.</param>
/// <returns><see cref="ExifValue"/></returns>
public ExifValue WithValue(object value)
{
this.CheckValue(value);
return new ExifValue(this.Tag, this.DataType, value, this.IsArray);
}
/// <summary>
/// Compares two <see cref="ExifValue"/> objects for equality.
/// </summary>
@ -211,6 +199,18 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif
object.Equals(this.Value, other.Value);
}
/// <summary>
/// Clones the current value, overwriting the value.
/// </summary>
/// <param name="value">The value to overwrite.</param>
/// <returns><see cref="ExifValue"/></returns>
public ExifValue WithValue(object value)
{
this.CheckValue(value);
return new ExifValue(this.Tag, this.DataType, value, this.IsArray);
}
/// <inheritdoc/>
public override int GetHashCode()
{

2
src/ImageSharp/Primitives/SignedRational.cs

@ -129,7 +129,7 @@ namespace SixLabors.ImageSharp.Primitives
/// <inheritdoc/>
public override bool Equals(object obj)
{
return obj is SignedRational other && Equals(other);
return obj is SignedRational other && this.Equals(other);
}
/// <inheritdoc/>

Loading…
Cancel
Save