@ -174,16 +174,10 @@ namespace SixLabors.ImageSharp
public TPixel this[int x, int y]
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
return this.PixelBuffer[x, y];
}
get => this.PixelBuffer[x, y];
set
this.PixelBuffer[x, y] = value;
set => this.PixelBuffer[x, y] = value;
/// <summary>
@ -147,12 +147,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif
/// </returns>
public static bool operator ==(ExifValue left, ExifValue right)
if (ReferenceEquals(left, right))
return true;
return left.Equals(right);
return ReferenceEquals(left, right) || left.Equals(right);
@ -35,10 +35,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
/// Gets the length in bytes of the raw data
/// </summary>
public int DataLength
get { return this.data.Length; }
public int DataLength => this.data.Length;
/// Sets the reading position to the given value