diff options
Diffstat (limited to 'src/Text/Impl/TextModel/TrackingPoint.cs')
-rw-r--r-- | src/Text/Impl/TextModel/TrackingPoint.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Text/Impl/TextModel/TrackingPoint.cs b/src/Text/Impl/TextModel/TrackingPoint.cs index 02750f3..3549d03 100644 --- a/src/Text/Impl/TextModel/TrackingPoint.cs +++ b/src/Text/Impl/TextModel/TrackingPoint.cs @@ -21,15 +21,15 @@ namespace Microsoft.VisualStudio.Text.Implementation { if (version == null) { - throw new ArgumentNullException("version"); + throw new ArgumentNullException(nameof(version)); } if (position < 0 | position > version.Length) { - throw new ArgumentOutOfRangeException("position"); + throw new ArgumentOutOfRangeException(nameof(position)); } if (trackingMode < PointTrackingMode.Positive || trackingMode > PointTrackingMode.Negative) { - throw new ArgumentOutOfRangeException("trackingMode"); + throw new ArgumentOutOfRangeException(nameof(trackingMode)); } this.trackingMode = trackingMode; @@ -50,7 +50,7 @@ namespace Microsoft.VisualStudio.Text.Implementation { if (version == null) { - throw new ArgumentNullException("version"); + throw new ArgumentNullException(nameof(version)); } if (version.TextBuffer != this.TextBuffer) { @@ -63,7 +63,7 @@ namespace Microsoft.VisualStudio.Text.Implementation { if (snapshot == null) { - throw new ArgumentNullException("snapshot"); + throw new ArgumentNullException(nameof(snapshot)); } if (snapshot.TextBuffer != this.TextBuffer) { |