【C#】常用语法

1.字符串转化为浮点型

string str = "XXXXXX";
float Num = float.Parse(str);

2.判断文本框是否为空

/*true false*/
String.IsNullOrEmpty(textbox1.Text);

猜你喜欢

转载自blog.csdn.net/u010398722/article/details/78535080