Skip to content

Commit e290340

Browse files
committed
Use nameof instead of hard coding the name of a parameter
1 parent 2d66c8e commit e290340

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/HttpMultipartParser/StreamingMultipartFormDataParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public StreamingMultipartFormDataParser(Stream stream, Encoding encoding, int bi
146146
/// </param>
147147
public StreamingMultipartFormDataParser(Stream stream, string boundary = null, Encoding encoding = null, int binaryBufferSize = DefaultBufferSize, string[] binaryMimeTypes = null)
148148
{
149-
if (stream == null || stream == Stream.Null) { throw new ArgumentNullException("stream"); }
149+
if (stream == null || stream == Stream.Null) { throw new ArgumentNullException(nameof(stream)); }
150150

151151
this.stream = stream;
152152
this.boundary = boundary;

0 commit comments

Comments
 (0)