摘要: 适用场景:实现过滤,查询等功能。 说明:与SQL命令中的Where作用相似,都是起到范围限定也就是过滤作用的,而判断条件就是它后面所接的子句。Where操作包括3种形式,分别为简单形式、关系条件形式、First()形式。下面分别用实例举例下: 1.简单形式: 例如:使用where筛选在伦敦的客户 再 阅读全文
posted @ 2019-12-06 11:00 你只管努力 阅读(248) 评论(0) 推荐(0) 编辑
摘要: using System; namespace Game{ class Program { //用静态字段模拟全局变量 public static int[] Maps = new int[100]; //申明一个数组来存储玩家A和B public static int[] PlayerPos = 阅读全文
posted @ 2019-11-20 22:12 你只管努力 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 这个方法只是针对临时存放的数据,多次向XML里面添加数据只会保存最后一次添加的数据,不是全部保存。 XML展示 读取XML数据 删除方法 这种删除方法建议用在删除全部的数据上,MESSAGE就是XML的节点,删除这个节点下面全部的数据。 读取到指定的节点 阅读全文
posted @ 2017-12-01 16:29 你只管努力 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 直接打开指定的文件 System.Diagnostics.Process.Start(v_OpenFilePath); 直接打开目录 string v_OpenFolderPath = @"目录路径"; System.Diagnostics.Process.Start("explorer.exe", v_OpenFolderPath); 在WinForm/C#中打开一个文件,主要是... 阅读全文
posted @ 2017-11-03 13:58 你只管努力 阅读(5036) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebCo... 阅读全文
posted @ 2017-11-03 13:47 你只管努力 阅读(4378) 评论(0) 推荐(0) 编辑
摘要: FileInfo fi = new FileInfo(fullfile);//fullfile文件路径 ong Size = fi.Length;//查看已下载文件的大小 C# 获取文件名及扩展名 string aFirstName = aFile.Substring(aFile.LastIndexOf("\\") + 1, (aFile.LastIndexOf(".") - aFile.... 阅读全文
posted @ 2017-11-03 13:40 你只管努力 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: string remoteUri = System.IO.Path.GetDirectoryName(url); string fileName = System.IO.Path.GetFileName(url); string myStringWebResource = null; WebClient myWebClient = new WebClient(); myStringWebReso... 阅读全文
posted @ 2017-11-03 13:37 你只管努力 阅读(2452) 评论(0) 推荐(0) 编辑
摘要: if (this.Drawing_GridView.SelectedColumns.Count == 0)//判断是否选中某行 { } 阅读全文
posted @ 2017-09-29 11:18 你只管努力 阅读(1837) 评论(0) 推荐(0) 编辑
摘要: secure CRT 把记忆的东西放在这就行了,:) SecureCRT 5.2.2的注册码 Name: Apollo InteractiveCompany: Apollo InteractiveSerial Number: 03-50-023223License Key: ABMVSR NA46J 阅读全文
posted @ 2017-07-07 08:54 你只管努力 阅读(4222) 评论(0) 推荐(0) 编辑