How do I convert a 2d string array to 2d decimal array in c# ?
I have tried using 'Array.ConvertAll' but this is throwing an error..
decimal[,]myReadData=new decimal[6,5];
string[,]myData=new string[6,5];
myReadData = Array.ConvertAll<string, decimal>(myData, Convert.ToDecimal);
Does 'Array.ConvertAll' only work with 1d arrays ?
Thanks in advance
Array Conversion
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Gowtham RajamanickamRank #57 · 29K pointsPosted Apr 4, 2015, 9:25 PM EDT
Don Kapevic19 pointsPosted Apr 5, 2015, 5:28 AM EDT
Don Kapevic19 pointsPosted Apr 5, 2015, 5:28 AM EDT