Possible Duplicate:
A to Z list of char from Enumerable.Range
Is there an easy way to get a char[]
of all alpha characters?
I know I could do something like this:
char[] alphas = new char[]{'a', 'b', 'c', 'd', ..............};
For all upper and lower case chars, but I am wondering if there is an easier (and cleaner looking) way to do this.
Maybe something like this:
string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char [] alphas = (alphabet + alphabet.ToLower()).ToCharArray();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With