We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 952f079 commit f7c3dd1Copy full SHA for f7c3dd1
samples/snippets/csharp/VS_Snippets_CLR_System/system.string.tochararray/cs/ToCharArray1.cs
@@ -5,12 +5,14 @@ public class Example
5
{
6
public static void Main()
7
8
- String s = "AaBbCcDd";
9
- var chars = s.ToCharArray();
+ string s = "AaBbCcDd";
+ char[] chars = s.ToCharArray();
10
Console.WriteLine("Original string: {0}", s);
11
Console.WriteLine("Character array:");
12
for (int ctr = 0; ctr < chars.Length; ctr++)
13
+ {
14
Console.WriteLine(" {0}: {1}", ctr, chars[ctr]);
15
+ }
16
}
17
18
0 commit comments