Array ConvertAll with Lambda


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

Lambda expression to convert an array.


Copy this code and paste it in your HTML
  1. return Array.ConvertAll(intList.Split(','), new Converter<string, int>((target) => Convert.ToInt32(target)));

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.