diff options
Diffstat (limited to 'src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs')
-rw-r--r-- | src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs b/src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs index 47df212..20e92c3 100644 --- a/src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs +++ b/src/Text/Impl/DifferenceAlgorithm/SnapshotLineList.cs @@ -27,7 +27,7 @@ namespace Microsoft.VisualStudio.Text.Differencing.Implementation public SnapshotLineList(SnapshotSpan snapshotSpan, Func<ITextSnapshotLine, string> getLineTextCallback, StringDifferenceOptions options) { if (getLineTextCallback == null) - throw new ArgumentNullException("getLineTextCallback"); + throw new ArgumentNullException(nameof(getLineTextCallback)); if ((options.DifferenceType & StringDifferenceTypes.Line) == 0) throw new InvalidOperationException("This collection can only be used for line differencing"); @@ -96,7 +96,7 @@ namespace Microsoft.VisualStudio.Text.Differencing.Implementation SnapshotSpan GetSpanOfIndex(int index) { if (index < 0 || index >= _lineSpan.Length) - throw new ArgumentOutOfRangeException("index"); + throw new ArgumentOutOfRangeException(nameof(index)); ITextSnapshotLine line = _snapshotSpan.Snapshot.GetLineFromLineNumber(_lineSpan.Start + index); SnapshotSpan? lineSpan = line.ExtentIncludingLineBreak.Intersection(_snapshotSpan); |