Generate Character Array


/ Published in: C#
Save to your folder(s)

Generates array of characters from 'a' to 'z'


Copy this code and paste it in your HTML
  1. // It does work even if the only overload of Enumerable.Range accepts int parameters
  2. char[] az = Enumerable.Range('a', 'z' - 'a' + 1).Select(i => (Char)i).ToArray();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.