Random programming things I'd want to remember

Tuesday, October 10, 2017

C# quickly convert array of incoming data


Thanks to a user from codeabbey.com, here is a nifty trick to convert a bunch of data "on the fly".
int[] a = Array.ConvertAll<string, int>(Console.ReadLine().Split(' '), int.Parse);