Skip to content

Commit 2decbcb

Browse files
Changed String to string. IDE0049
1 parent 259fed3 commit 2decbcb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

snippets/csharp/System/String/Replace/replace1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public class Example
55
public static void Main()
66
{
77
// <Snippet1>
8-
String s = "aaa";
8+
string s = "aaa";
99
Console.WriteLine("The initial string: '{0}'", s);
1010
s = s.Replace("a", "b").Replace("b", "c").Replace("c", "d");
1111
Console.WriteLine("The final string: '{0}'", s);

snippets/csharp/System/String/Replace/replace2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public class Example
55
public static void Main()
66
{
77
// <Snippet2>
8-
String s = new String('a', 3);
8+
string s = new String('a', 3);
99
Console.WriteLine("The initial string: '{0}'", s);
1010
s = s.Replace('a', 'b').Replace('b', 'c').Replace('c', 'd');
1111
Console.WriteLine("The final string: '{0}'", s);

snippets/csharp/System/String/Replace/string.replace1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class stringReplace1 {
44
public static void Main() {
55
//<snippet1>
6-
String str = "1 2 3 4 5 6 7 8 9";
6+
string str = "1 2 3 4 5 6 7 8 9";
77
Console.WriteLine("Original string: \"{0}\"", str);
88
Console.WriteLine("CSV string: \"{0}\"", str.Replace(' ', ','));
99

0 commit comments

Comments
 (0)