摘要:
使用Lambda表达式,实现代码如下:private static void SortByLambda() { List list = GetArticleList(); list.Sort((x, y) => { int value = x.SortIndex.CompareTo(y.SortIn... 阅读全文
摘要:
public static class WcfExtensions{ public static void Using(this T client, Action work) where T : ICommunicationObject { try { work(client); client.Cl... 阅读全文
摘要:
///全角空格为12288,半角空格为32 ///其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248 //半角转换为全角函数 function ToDBC(txtstring) { var tmp = ""; for (var i = 0; i 65248... 阅读全文