c# - Creating string array from a textbox full of randomly distributed different numbers -


in visual c#project converting textbox string , splitting string string array. array can hold integer values, when comes decimal stops , never goes on other numbers in textbox. how can deal that. code this;

string phrase = textbox8.tostring();              string[] words = new string[100];              words = phrase.split((string[])null, stringsplitoptions.removeemptyentries); 

thanks,

probably variable phrase should be:

string phrase = textbox8.text.tostring(); 

Comments