Click here to Skip to main content
15,881,600 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

Unknown size Numeric Arrays from Strings - dontumindit

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
13 Feb 2011CPOL 8.2K   1   3
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();

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
Wales Wales
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generalyeah Pin
dontumindit17-Feb-11 0:54
dontumindit17-Feb-11 0:54 
Generalnot really - a whole lot less work if you think about it Pin
jim lahey14-Feb-11 23:12
jim lahey14-Feb-11 23:12 
Generalfor a bit advance users Pin
dontumindit14-Feb-11 18:35
dontumindit14-Feb-11 18:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.