Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Osenkov <github@osenkov.com>2018-08-15 21:13:16 +0300
committerKirill Osenkov <github@osenkov.com>2018-08-15 21:13:16 +0300
commitb407d9744a34fd4647cf3e99068a28d728fd65a2 (patch)
treee6d6cef915f32dec4f2d16b1868045143deb589f /src/Text/Impl/TextModel/TextChange.cs
parentcf974b266fb428d846e2e16a25a4eeb8f635c26f (diff)
Updating to VS-Platform 15.8.519 (29d85337c7d2af248a692fd65ac37b444551e4cf).
Diffstat (limited to 'src/Text/Impl/TextModel/TextChange.cs')
-rw-r--r--src/Text/Impl/TextModel/TextChange.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Impl/TextModel/TextChange.cs b/src/Text/Impl/TextModel/TextChange.cs
index 972854e..b1f3383 100644
--- a/src/Text/Impl/TextModel/TextChange.cs
+++ b/src/Text/Impl/TextModel/TextChange.cs
@@ -53,7 +53,7 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (oldPosition < 0)
{
- throw new ArgumentOutOfRangeException("oldPosition");
+ throw new ArgumentOutOfRangeException(nameof(oldPosition));
}
_oldPosition = oldPosition;
@@ -106,7 +106,7 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (value < 0)
{
- throw new ArgumentOutOfRangeException("value");
+ throw new ArgumentOutOfRangeException(nameof(value));
}
_oldPosition = value;
}
@@ -119,7 +119,7 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (value < 0)
{
- throw new ArgumentOutOfRangeException("value");
+ throw new ArgumentOutOfRangeException(nameof(value));
}
_newPosition = value;
}
@@ -226,7 +226,7 @@ namespace Microsoft.VisualStudio.Text.Implementation
internal void RecordMasterChangeOffset(int masterChangeOffset)
{
if (masterChangeOffset < 0)
- throw new ArgumentOutOfRangeException("masterChangeOffset", "MasterChangeOffset should be non-negative.");
+ throw new ArgumentOutOfRangeException(nameof(masterChangeOffset), "MasterChangeOffset should be non-negative.");
if (_masterChangeOffset != -1)
throw new InvalidOperationException("MasterChangeOffset has already been set.");