33 Answers · If you are sure that your string is an integer, like "50". int num = TextBoxD1.Text.ParseToInt32(); · If you are not sure and want to ... ... <看更多>
C# allows implicit conversions of integers to strings when used in an expression. For example, this is completely valid: int myInt = 10; string ... ... <看更多>