There are several ways to cast, For e.g. Copy Code. string s = "123"; int byCasting = (int)s; int byParsing = int.Parse(s); int result; int.
確定! 回上一頁