W winthux Feb 17, 2004 #1 How can I convert string i.e. to integer or to unsigned integer, or to other types?
J Jon Skeet [C# MVP] Feb 17, 2004 #2 winthux said: How can I convert string i.e. to integer or to unsigned integer, or to other types? Click to expand... Look at the Convert class, and also things like Int32.Parse, UInt32.Parse etc.
winthux said: How can I convert string i.e. to integer or to unsigned integer, or to other types? Click to expand... Look at the Convert class, and also things like Int32.Parse, UInt32.Parse etc.
D Dmitriy Lapshin [C# / .NET MVP] Feb 17, 2004 #3 Yes, it's actually a piece of cake: int a = int.Parse("-5"); int b = Convert.ToInt32("7");