65.9K
CodeProject is changing. Read more.
Home

Unknown size Numeric Arrays from Strings - dontumindit

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Feb 14, 2011

CPOL
viewsIcon

9051

You can use Linq to do the same thing double[] mydouble = str.Split('#').Select(x => double.Parse(x)).ToArray();

You can use Linq to do the same thing
 double[]  mydouble = str.Split('#').Select(x => double.Parse(x)).ToArray();