csharp Convert ASCII to Char

public static void Strings()
{
	List<string> stringList = new List<string>();

	//see: http://www.asciitable.com/
	//65 to 96 = UPPERCASE letters
	//97 to 122 = lowercase letters
	for (int i = 65; i < 122; i++)
	{
		stringList.Add(Convert.ToChar(i).ToString());
	}

	foreach (var item in stringList)
	{
		Console.WriteLine(item);
	}

	Console.Read();
}
Adds all UPPERCASE or lowercase letters to a List and then displays them, using the ASCII equivalent.

Updated: Tuesday 5th October 2010, 22:33am

There are 0 comments

Leave a comment of your own

Comments are currently closed.