Skip to content

Commit 0eeb663

Browse files
CodeWriter: Add missing nameofs to exception message
1 parent 70281f8 commit 0eeb663

File tree

1 file changed

+1
-1
lines changed
  • src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/CodeGeneration

1 file changed

+1
-1
lines changed

src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/CodeGeneration/CodeWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ public override int Read(char[] buffer, int index, int count)
405405

406406
if (buffer.Length - index < count)
407407
{
408-
throw new ArgumentException($"{count} is greater than the number of elements from {index} to the end of {buffer}.");
408+
throw new ArgumentException($"{nameof(count)} is greater than the number of elements from {nameof(index)} to the end of {nameof(buffer)}.");
409409
}
410410

411411
if (_page is null)

0 commit comments

Comments
 (0)