Browse Source

Use nameof

af/merge-core
Jason Nelson 8 years ago
parent
commit
95af0eedd0
  1. 4
      src/ImageSharp/Formats/Bmp/BmpDecoder.cs

4
src/ImageSharp/Formats/Bmp/BmpDecoder.cs

@ -28,7 +28,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp
where TPixel : struct, IPixel<TPixel> where TPixel : struct, IPixel<TPixel>
{ {
Guard.NotNull(stream, "stream"); Guard.NotNull(stream, nameof(stream));
return new BmpDecoderCore(configuration, this).Decode<TPixel>(stream); return new BmpDecoderCore(configuration, this).Decode<TPixel>(stream);
} }
@ -36,7 +36,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp
/// <inheritdoc/> /// <inheritdoc/>
public IImageInfo Identify(Configuration configuration, Stream stream) public IImageInfo Identify(Configuration configuration, Stream stream)
{ {
Guard.NotNull(stream, "stream"); Guard.NotNull(stream, nameof(stream));
return new BmpDecoderCore(configuration, this).Identify(stream); return new BmpDecoderCore(configuration, this).Identify(stream);
} }

Loading…
Cancel
Save