摘要: 1 Parse 将字符串型强制转换成值类型,字符串部分必须是数字的有效表示形式,比如: 1 double dData = double.Parse("30.01"); 2 float fData = float.Parse("30.02"); 3 int iData = int.Parse("30" 阅读全文
posted @ 2021-06-02 15:20 G_Mac 阅读(159) 评论(0) 推荐(0)
摘要: 1 public static void DelectDir(string srcPath) 2 { 3 try 4 { 5 DirectoryInfo dir = new DirectoryInfo(srcPath); 6 FileSystemInfo[] fileinfo = dir.GetFi 阅读全文
posted @ 2021-06-02 10:50 G_Mac 阅读(618) 评论(0) 推荐(0)
摘要: 做一个简单的测试界面,如下图: 代码: 1 private void button1_Click(object sender, EventArgs e) 2 { 3 string strRecordFilePath = "c:"; 4 string str = strRecordFilePath.S 阅读全文
posted @ 2021-06-02 09:44 G_Mac 阅读(271) 评论(0) 推荐(0)