随笔分类 -  C#学习

摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization.Formatters.Binary; using Syst 阅读全文
posted @ 2022-08-23 19:03 冰糖小袁子 阅读(29) 评论(0) 推荐(0) 编辑
摘要:namespace ConsoleApplication1 { class Program { static void Main(string[] args) { double[] a = { 0, 1, 2, 3, 4 };//原数组,即需要插入数据的数组 foreach (var item in 阅读全文
posted @ 2020-12-14 11:04 冰糖小袁子 阅读(176) 评论(0) 推荐(0) 编辑
摘要:首先创建一个IniFiles类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using Syst 阅读全文
posted @ 2020-12-07 10:35 冰糖小袁子 阅读(582) 评论(0) 推荐(0) 编辑
摘要:拿到string类型的数据: using System; using System.Collections; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { Ar 阅读全文
posted @ 2020-12-04 08:46 冰糖小袁子 阅读(666) 评论(0) 推荐(0) 编辑
摘要:使用指定浏览器打开网址: System.Diagnostics.Process.Start("360chrome.exe", "http://converter.telerik.com/"); 使用默认浏览器打开网址: System.Diagnostics.Process.Start("http:/ 阅读全文
posted @ 2020-11-16 11:04 冰糖小袁子 阅读(559) 评论(0) 推荐(0) 编辑
摘要:首先添加引用 using System.Diagnostics;//stopwatch的引用 //声明变量 Stopwatch a=new Stopwatch();//PS:这里一定要new(实例化)一下,不然会抛出“未将对象引用对象的实例”的异常 Stopwatch a=null;和Stopwat 阅读全文
posted @ 2020-10-31 19:30 冰糖小袁子 阅读(592) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示