摘要: 原文链接http://www.cnblogs.com/A_ming/archive/2013/05/24/3097062.html public static class LinqEx { public static IEnumerable DistinctBy(this IEn... 阅读全文
posted @ 2015-12-22 14:30 zslm___ 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 测试了100次,.net 4.0,每次循环赋值 100*10000次直接访问5ms纯反射平均时间 260msEmit注入IL代码 60ms泛型委托 40ms表达式树 65ms泛型委托最快,相应于直接访问的8倍委托之所以快,我觉得跟 委托相当于函数指针有关(可能委托与指针的转换就是消耗本身吧),C函数... 阅读全文
posted @ 2015-12-22 14:14 zslm___ 阅读(198) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Reflection.Emit;namespace SaftS... 阅读全文
posted @ 2015-12-22 11:09 zslm___ 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 1.第一个模板 判断字段是否为空 类IsNullableType.cmtstatic public partial class CommonType { public static bool IsNullableType(Type theType) { ... 阅读全文
posted @ 2015-12-17 18:38 zslm___ 阅读(871) 评论(0) 推荐(0) 编辑
摘要: enum Days { Nothing=0, Mon=1, Stu=2 }static void Main(string[] args) { foreach (int item in Enum.Get... 阅读全文
posted @ 2015-12-02 10:11 zslm___ 阅读(575) 评论(0) 推荐(0) 编辑
摘要: [转]http://www.cnblogs.com/myhappylife/p/5006774.html1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用... 阅读全文
posted @ 2015-11-30 17:11 zslm___ 阅读(302) 评论(0) 推荐(0) 编辑
摘要: {{item.title}} 元 {{item.price*item.quantity}}元 Remove 阅读全文
posted @ 2015-11-30 15:11 zslm___ 阅读(135) 评论(0) 推荐(0) 编辑
摘要: @model MVCEasyUI.Models.Sale.PageResult @{ ViewBag.Title = "AddSaleOrder";} @Model.ResultName 添加一... 阅读全文
posted @ 2015-11-27 16:16 zslm___ 阅读(248) 评论(0) 推荐(1) 编辑
摘要: function addTab(title, url) { if ($('#tableContainer').tabs('exists', title)) { $('#tableContainer').tabs('select', title); }... 阅读全文
posted @ 2015-11-27 16:14 zslm___ 阅读(1264) 评论(0) 推荐(0) 编辑
摘要: 在添加完之后,可以使用 $.parser.parse();这个方法进行处理:(1) 对整个页面重新渲染: $.parser.parse(); (2) 渲染某个特定的objectvar targetObj = $("").appendTo("#id");$.parser.parse(targetO... 阅读全文
posted @ 2015-11-27 16:03 zslm___ 阅读(173) 评论(0) 推荐(0) 编辑