3
Reply

Split arrays and assign them to Variables

Raul Juarez

Raul Juarez

Dec 11 2009 12:56 AM
4.1k

Hello guys I need  your help in split and asign values to two variables, from the following collection:
string[] selectedItems= new string[2] {"26-1", "30-2"};
RESULT: This values will be passed to an method which need A and B as parameters. Please any help will be appreciate it.
First set                second set
int A= 26               int A = 30
int B = 2                int B = 2

 

 
 
 

Answers (3)