Raul Juarez

Raul Juarez

  • NA
  • 43
  • 0

Split arrays and assign them to Variables

Dec 11 2009 12:56 AM

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)