2014年5月19日
摘要: public static class Extensions{public static async Task ForEachAsync(this IEnumerable collection, Func> body, IObserver observer = null){foreach (var ... 阅读全文
posted @ 2014-05-19 18:15 武胜-阿伟 阅读(416) 评论(0) 推荐(0)
摘要: MSS(Array[],N)//Where N is the number of elements in array{sum=0; //current summax-sum=0;//Maximum Sumseq-start=0;//start of the subsequenceseq-end=0;... 阅读全文
posted @ 2014-05-19 18:05 武胜-阿伟 阅读(170) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Reflection;using System.Runtime.InteropServices;namespace... 阅读全文
posted @ 2014-05-19 18:01 武胜-阿伟 阅读(292) 评论(0) 推荐(0)
摘要: http://www.codeproject.com/Articles/746191/SQLite-Helper-CsharpThis small class (SQLiteHelper.cs) is built on top of System.Data.SQLite.DLL. A referen... 阅读全文
posted @ 2014-05-19 17:48 武胜-阿伟 阅读(1090) 评论(0) 推荐(0)
摘要: public static string getTimeAgo(string strDate) { string strTime = string.Empty; if (clsCommon.IsDate(strDate)) { T... 阅读全文
posted @ 2014-05-19 17:36 武胜-阿伟 阅读(279) 评论(0) 推荐(0)