上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: ?代表可空类型修饰符 引用类型可以使用空引用表示一个不存在的值,而值类型通常不能表示为空。为了使值类型也可为空,就可以使用可空类型?:带便三元表达式 int a=b>c?b:c 如果b大于c,a就等于b,否则等于c??代表空合并运算符 用于定义可空类型和引用类型的默认值。如果此运算符的左操作数不为n 阅读全文
posted @ 2017-11-16 17:56 杜子烟 阅读(582) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; namespace ConsoleApp1 { class Program { /// ... 阅读全文
posted @ 2017-11-14 14:41 杜子烟 阅读(316) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; namespace ConsoleApp1 { class Program { /// ... 阅读全文
posted @ 2017-11-09 15:19 杜子烟 阅读(180) 评论(0) 推荐(0)
摘要: 获得管理员权限,首先,新建议文本文件,复制以下代码,保存为.reg格式,然后导入注册表。 Windows Registry Editor Version 5.00 ;取得文件修改权限 [HKEY_CLASSES_ROOT\*\shell\runas] @="管理员权限" "Icon"="C:\\Wi 阅读全文
posted @ 2017-11-09 09:37 杜子烟 阅读(1101) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/csharpx/archive/2010/05/27/1745122.html 阅读全文
posted @ 2017-10-26 15:17 杜子烟 阅读(133) 评论(0) 推荐(0)
摘要: 1 //分组 2 var ll= lst.GroupBy(x => new { x.Id, x.Name }).Select(x => new 3 { 4 Key = x.Key, 5 Id = x.First().Id, 6 Name = x.First().Na... 阅读全文
posted @ 2017-10-26 10:29 杜子烟 阅读(653) 评论(0) 推荐(0)
摘要: C:\Windows\System32>xsd.exe c:/Createst.xsd -c C:\Windows\System32>xsd.exe c:/Creauest.xsd /c /Language:C# /outputdir:d:\ 生成的cs带命名空间:C:\Windows\System 阅读全文
posted @ 2017-10-16 11:00 杜子烟 阅读(379) 评论(0) 推荐(0)
摘要: row_number()over(partition by Id,Code order by setTime desc) 阅读全文
posted @ 2017-08-21 14:46 杜子烟 阅读(92) 评论(0) 推荐(0)
摘要: 1.与Date.Parse()方法的区别:Date.Parse(object o)方法接受一个object类型的参数,当参数为空或转换失败时会抛出异常DateTime.TryParse方法不会抛出异常 2.用法介绍方法定义 : DateTime.TryParse(string strTime,out 阅读全文
posted @ 2017-08-15 14:09 杜子烟 阅读(1159) 评论(0) 推荐(0)
摘要: /// /// 从URL获取值(字符串) /// public static string GetValueFromUrl(string key) { string keyvalue = HttpContext.Current.Request.QueryString[key]; i... 阅读全文
posted @ 2017-06-09 22:36 杜子烟 阅读(553) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页