C# convert string into an integer

Viewed 30

If i have a variable, say department, with the value of "10_10" am I able to parse this as an integer? I am new to C# and programming so I am not sure if this is possible. Can parseInt remove the underscore?

string department = "10_10"



if ( typeof department != 'number ){
     department = parseInt(department);
0 Answers
Related