Skip to content

Commit 029424d

Browse files
committed
Using String consistently
1 parent e13c5b1 commit 029424d

8 files changed

+15
-15
lines changed

Constants.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ public static class Constants {
99
public const String STRING_ESCAPE_CLASSIF_NAME = "String Escape Sequence";
1010
public const String LINE_HIGHLIGHT = "Current Line";
1111

12-
public const string CT_XML = "XML";
13-
public const string CT_XAML = "XAML";
14-
public const string CT_HTML = "HTML";
15-
public const string XML_CLOSING = "XMLCloseTag";
16-
public const string XML_PREFIX = "XMLPrefix";
12+
public const String CT_XML = "XML";
13+
public const String CT_XAML = "XAML";
14+
public const String CT_HTML = "HTML";
15+
public const String XML_CLOSING = "XMLCloseTag";
16+
public const String XML_PREFIX = "XMLPrefix";
1717
// I'd prefer "XML Delimiter" here, but no way to
1818
// use it effectively.
19-
public const string DELIMITER = PredefinedClassificationTypeNames.Operator;
19+
public const String DELIMITER = PredefinedClassificationTypeNames.Operator;
2020
}
2121
}

Text/CSharp.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected override String[] LinqDefaults {
2727
protected override String[] VisibilityDefaults {
2828
get { return CS_VIS_KEYWORDS; }
2929
}
30-
protected override string KeyName {
30+
protected override String KeyName {
3131
get { return "CSharp"; }
3232
}
3333
}

Text/ConfigHelp.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Winterdom.Viasfora.Text {
88
static class ConfigHelp {
9-
private static string REG_KEY =
9+
private static String REG_KEY =
1010
"Software\\Winterdom\\Viasfora";
1111
public static String GetValue(String name, String defValue) {
1212
using ( RegistryKey key = Registry.CurrentUser.CreateSubKey(REG_KEY) ) {

Text/Cpp.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected override String[] LinqDefaults {
2222
protected override String[] VisibilityDefaults {
2323
get { return CPP_VIS_KEYWORDS; }
2424
}
25-
protected override string KeyName {
25+
protected override String KeyName {
2626
get { return "Cpp"; }
2727
}
2828
}

Text/CurrentLineAdornment.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace Winterdom.Viasfora.Text {
1616
public class CurrentLineAdornment {
17-
public const string CUR_LINE_TAG = "currentLine";
17+
public const String CUR_LINE_TAG = "currentLine";
1818
private IAdornmentLayer layer;
1919
private IWpfTextView view;
2020
private IClassificationFormatMap formatMap;

Text/JScript.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected override String[] LinqDefaults {
2424
protected override String[] VisibilityDefaults {
2525
get { return new String[0]; }
2626
}
27-
protected override string KeyName {
27+
protected override String KeyName {
2828
get { return "JScript"; }
2929
}
3030
}

Text/LanguageKeywords.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
namespace Winterdom.Viasfora.Text {
77
abstract class LanguageKeywords {
8-
private Dictionary<string, string[]> keywords =
9-
new Dictionary<string, string[]>();
8+
private Dictionary<String, String[]> keywords =
9+
new Dictionary<String, String[]>();
1010

1111
public String[] ControlFlow {
1212
get { return Get("ControlFlow", ControlFlowDefaults); }

Xml/XmlQuickInfoSource.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public void AugmentQuickInfoSession(
4040
TextExtent extent = FindExtentAtPoint(subjectTriggerPoint);
4141

4242
if ( CheckForPrefixTag(tagAggregator, extent.Span) ) {
43-
string text = extent.Span.GetText();
44-
string url = FindNSUri(extent.Span, GetDocText(extent.Span));
43+
String text = extent.Span.GetText();
44+
String url = FindNSUri(extent.Span, GetDocText(extent.Span));
4545
applicableToSpan = currentSnapshot.CreateTrackingSpan(
4646
extent.Span, SpanTrackingMode.EdgeInclusive
4747
);

0 commit comments

Comments
 (0)