Posted By

amadray on 04/10/11


Tagged

generation


Versions (?)

Generate Character Array


 / Published in: C#
 

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

  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  

You need to login to post a comment.