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:
Diffstat (limited to 'src/Text/Impl/TextModel/TrivialNormalizedTextChangeCollection.cs')
-rw-r--r--src/Text/Impl/TextModel/TrivialNormalizedTextChangeCollection.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Impl/TextModel/TrivialNormalizedTextChangeCollection.cs b/src/Text/Impl/TextModel/TrivialNormalizedTextChangeCollection.cs
index bb70ebd..e92dbf9 100644
--- a/src/Text/Impl/TextModel/TrivialNormalizedTextChangeCollection.cs
+++ b/src/Text/Impl/TextModel/TrivialNormalizedTextChangeCollection.cs
@@ -39,7 +39,7 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (index != 0)
{
- throw new ArgumentOutOfRangeException("index");
+ throw new ArgumentOutOfRangeException(nameof(index));
}
return this;
}
@@ -95,11 +95,11 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (array == null)
{
- throw new ArgumentNullException("array");
+ throw new ArgumentNullException(nameof(array));
}
if (arrayIndex < 0)
{
- throw new ArgumentOutOfRangeException("arrayIndex");
+ throw new ArgumentOutOfRangeException(nameof(arrayIndex));
}
if (array.Rank > 1 || arrayIndex >= array.Length)
{