Browse Source

Format with expressions

af/merge-core
Jason Nelson 8 years ago
parent
commit
05ee8b6e94
  1. 10
      src/ImageSharp/ImageFrame{TPixel}.cs
  2. 7
      src/ImageSharp/MetaData/Profiles/Exif/ExifValue.cs
  3. 5
      src/ImageSharp/MetaData/Profiles/ICC/DataReader/IccDataReader.cs

10
src/ImageSharp/ImageFrame{TPixel}.cs

@ -174,16 +174,10 @@ namespace SixLabors.ImageSharp
public TPixel this[int x, int y] public TPixel this[int x, int y]
{ {
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
get get => this.PixelBuffer[x, y];
{
return this.PixelBuffer[x, y];
}
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
set set => this.PixelBuffer[x, y] = value;
{
this.PixelBuffer[x, y] = value;
}
} }
/// <summary> /// <summary>

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

@ -147,12 +147,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif
/// </returns> /// </returns>
public static bool operator ==(ExifValue left, ExifValue right) public static bool operator ==(ExifValue left, ExifValue right)
{ {
if (ReferenceEquals(left, right)) return ReferenceEquals(left, right) || left.Equals(right);
{
return true;
}
return left.Equals(right);
} }
/// <summary> /// <summary>

5
src/ImageSharp/MetaData/Profiles/ICC/DataReader/IccDataReader.cs

@ -35,10 +35,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
/// <summary> /// <summary>
/// Gets the length in bytes of the raw data /// Gets the length in bytes of the raw data
/// </summary> /// </summary>
public int DataLength public int DataLength => this.data.Length;
{
get { return this.data.Length; }
}
/// <summary> /// <summary>
/// Sets the reading position to the given value /// Sets the reading position to the given value

Loading…
Cancel
Save