上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 35 下一页
摘要: http://referencesource.microsoft.com/ 阅读全文
posted @ 2016-05-12 16:12 zslm___ 阅读(115) 评论(0) 推荐(0) 编辑
摘要: public class TemplateTransferConfig { public Type ClassType { get; set; } /// <summary> /// 如果ClassType不为空,则该字段代表字段名.如果为空,则为变量占位符 /// </summary> publi 阅读全文
posted @ 2016-05-12 15:36 zslm___ 阅读(812) 评论(0) 推荐(0) 编辑
摘要: 网上看到的,记录下来,供参考,备忘 Dictionary<string, int> list = new Dictionary<string, int>(); list.Add("d", 1); //3.0以上版本 foreach (var item in list) { Console.Write 阅读全文
posted @ 2016-05-12 14:38 zslm___ 阅读(537) 评论(0) 推荐(0) 编辑
摘要: //yield return 返回类型必须为 IEnumerable、IEnumerable<T>、IEnumerator 或 IEnumerator<T>。 static IEnumerator<int> yieldTest() //yield return 返回IEnumerator { yie 阅读全文
posted @ 2016-05-10 22:39 zslm___ 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 在相应的文件夹上右键 Tortiusegit->settings->gig 点击 第1个按钮 Edit local .git/config 在打开的文档里 url = http://xx.com/sss.git 里面修改如下 url=http://account:password@xx.com/ss 阅读全文
posted @ 2016-05-10 18:36 zslm___ 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 使用Ibatis总是说未能加载相应的sqlmap.xml,原来是 xml以内容方式,而不是嵌入式方式载入Dll中 阅读全文
posted @ 2016-05-10 17:47 zslm___ 阅读(301) 评论(0) 推荐(0) 编辑
摘要: var assemArr = AppDomain.CurrentDomain.GetAssemblies(); var assem = Assembly.GetExecutingAssembly() ; 阅读全文
posted @ 2016-05-09 15:27 zslm___ 阅读(1606) 评论(0) 推荐(0) 编辑
摘要: //数据处理接口 public interface IDal<T> where T : class { void Insert (T model); void Update(T model); void Delete(T model); T Select(Int32 id); } //MsSql接口 阅读全文
posted @ 2016-05-09 14:43 zslm___ 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 使用 Linq:var types = AppDomain.CurrentDomain.GetAssemblies().SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(ISecurity)))).To 阅读全文
posted @ 2016-05-09 11:06 zslm___ 阅读(702) 评论(0) 推荐(0) 编辑
摘要: public byte[] StreamToBytes(Stream stream) { byte[] bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.Length); stream.Seek(0, SeekOrigin.Be 阅读全文
posted @ 2016-05-09 10:55 zslm___ 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 35 下一页