diff options
author | Kirill Osenkov <github@osenkov.com> | 2018-08-15 21:13:16 +0300 |
---|---|---|
committer | Kirill Osenkov <github@osenkov.com> | 2018-08-15 21:13:16 +0300 |
commit | b407d9744a34fd4647cf3e99068a28d728fd65a2 (patch) | |
tree | e6d6cef915f32dec4f2d16b1868045143deb589f /src/Text/Impl/TextModel/MappingSpan.cs | |
parent | cf974b266fb428d846e2e16a25a4eeb8f635c26f (diff) |
Updating to VS-Platform 15.8.519 (29d85337c7d2af248a692fd65ac37b444551e4cf).
Diffstat (limited to 'src/Text/Impl/TextModel/MappingSpan.cs')
-rw-r--r-- | src/Text/Impl/TextModel/MappingSpan.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Text/Impl/TextModel/MappingSpan.cs b/src/Text/Impl/TextModel/MappingSpan.cs index a42f0fe..741972c 100644 --- a/src/Text/Impl/TextModel/MappingSpan.cs +++ b/src/Text/Impl/TextModel/MappingSpan.cs @@ -9,6 +9,7 @@ namespace Microsoft.VisualStudio.Text.Implementation { using System; using System.Collections.Generic; + using System.Globalization; using Microsoft.VisualStudio.Text.Projection; using Microsoft.VisualStudio.Text.Utilities; @@ -22,15 +23,15 @@ namespace Microsoft.VisualStudio.Text.Implementation { if (anchorSpan.Snapshot == null) { - throw new ArgumentNullException("anchorSpan"); + throw new ArgumentNullException(nameof(anchorSpan)); } if (trackingMode < SpanTrackingMode.EdgeExclusive || trackingMode > SpanTrackingMode.EdgeNegative) { - throw new ArgumentOutOfRangeException("trackingMode"); + throw new ArgumentOutOfRangeException(nameof(trackingMode)); } if (bufferGraph == null) { - throw new ArgumentNullException("bufferGraph"); + throw new ArgumentNullException(nameof(bufferGraph)); } this.anchorSpan = anchorSpan; this.trackingMode = trackingMode; @@ -105,7 +106,7 @@ namespace Microsoft.VisualStudio.Text.Implementation public NormalizedSnapshotSpanCollection GetSpans(ITextSnapshot targetSnapshot) { if (targetSnapshot == null) - throw new ArgumentNullException("targetSnapshot"); + throw new ArgumentNullException(nameof(targetSnapshot)); NormalizedSnapshotSpanCollection results = GetSpans(targetSnapshot.TextBuffer); if ((results.Count > 0) && (results[0].Snapshot != targetSnapshot)) @@ -126,7 +127,7 @@ namespace Microsoft.VisualStudio.Text.Implementation { if (match == null) { - throw new ArgumentNullException("match"); + throw new ArgumentNullException(nameof(match)); } ITextBuffer anchorBuffer = this.AnchorBuffer; @@ -156,7 +157,7 @@ namespace Microsoft.VisualStudio.Text.Implementation public override string ToString() { - return String.Format("MappingSpan anchored at {0}", this.anchorSpan); + return String.Format(CultureInfo.CurrentCulture, "MappingSpan anchored at {0}", this.anchorSpan); } } -}
\ No newline at end of file +} |