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/BaseSnapshot.cs')
-rw-r--r--src/Text/Impl/TextModel/BaseSnapshot.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Text/Impl/TextModel/BaseSnapshot.cs b/src/Text/Impl/TextModel/BaseSnapshot.cs
index db723d3..b099424 100644
--- a/src/Text/Impl/TextModel/BaseSnapshot.cs
+++ b/src/Text/Impl/TextModel/BaseSnapshot.cs
@@ -9,6 +9,7 @@ namespace Microsoft.VisualStudio.Text.Implementation
{
using System;
using System.Collections.Generic;
+ using System.Globalization;
using System.IO;
using System.Text;
using Microsoft.VisualStudio.Utilities;
@@ -185,9 +186,11 @@ namespace Microsoft.VisualStudio.Text.Implementation
public override string ToString()
{
- return String.Format("version: {0} lines: {1} length: {2} \r\n content: {3}",
+ return string.Format(
+ CultureInfo.InvariantCulture,
+ "version: {0} lines: {1} length: {2} \r\n content: {3}",
Version.VersionNumber, LineCount, Length,
- Microsoft.VisualStudio.Text.Utilities.TextUtilities.Escape(this.GetText(0, Math.Min(40, this.Length))));
+ Utilities.TextUtilities.Escape(this.GetText(0, Math.Min(40, this.Length))));
}
#if _DEBUG