0

How to Convert string value

plz

1st Apr 2018, 8:48 PM
sachin
2 Answers
+ 3
You can use Parse methods or methods in the Convert class. Ex: string s = "23"; int i = int.Parse(s); int j = Convert.ToInt32(s); The only difference is that the Convert class methods can handle null values.
2nd Apr 2018, 8:25 AM
Rusty.Metal