Copies characters to a destination Char array.
using System;
using System.Text;
class Sample
{
public static void Main()
{
char[] dest = new char[6];
StringBuilder src = new StringBuilder("abcdefghijklmnopqrstuvwxyz!");
for(int i = 0; i < 9; i++){
dest[0] = i.ToString()[0];
src.CopyTo(i * 3, dest, 3, 3);
Console.WriteLine(dest);
}
}
}
Related examples in the same category