I\'d like to be able to get a char array of all the printable characters in C#, does anybody know how to do this?
edit:
By printable I mean
This will give you a list with all characters that are not considered control characters:
List printableChars = new List();
for (int i = char.MinValue; i <= char.MaxValue; i++)
{
char c = Convert.ToChar(i);
if (!char.IsControl(c))
{
printableChars.Add(c);
}
}
You may want to investigate the other Char.IsXxxx methods to find a combination that suits your requirements.