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/TextDocumentFactoryService.cs')
-rw-r--r--src/Text/Impl/TextModel/TextDocumentFactoryService.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Text/Impl/TextModel/TextDocumentFactoryService.cs b/src/Text/Impl/TextModel/TextDocumentFactoryService.cs
index ff59ae3..67c75f9 100644
--- a/src/Text/Impl/TextModel/TextDocumentFactoryService.cs
+++ b/src/Text/Impl/TextModel/TextDocumentFactoryService.cs
@@ -48,17 +48,17 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (filePath == null)
{
- throw new ArgumentNullException("filePath");
+ throw new ArgumentNullException(nameof(filePath));
}
if (contentType == null)
{
- throw new ArgumentNullException("contentType");
+ throw new ArgumentNullException(nameof(contentType));
}
if (encoding == null)
{
- throw new ArgumentNullException("encoding");
+ throw new ArgumentNullException(nameof(encoding));
}
var fallbackDetector = new FallbackDetector(encoding.DecoderFallback);
@@ -191,12 +191,12 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (textBuffer == null)
{
- throw new ArgumentNullException("textBuffer");
+ throw new ArgumentNullException(nameof(textBuffer));
}
if (filePath == null)
{
- throw new ArgumentNullException("filePath");
+ throw new ArgumentNullException(nameof(filePath));
}
TextDocument textDocument = new TextDocument(textBuffer, filePath, DateTime.UtcNow, this, Encoding.UTF8);
@@ -209,7 +209,7 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
if (textBuffer == null)
{
- throw new ArgumentNullException("textBuffer");
+ throw new ArgumentNullException(nameof(textBuffer));
}
textDocument = null;