2014年5月21日
摘要: Microsoft Open Technologies has recently released a Portable Class Libraryfor SQLite. Thanks to it, we can use SQLite in the same way in all the suppo... 阅读全文
posted @ 2014-05-21 23:06 武胜-阿伟 阅读(516) 评论(0) 推荐(0) 编辑
摘要: Cancellation tokenParallel optionsCancellationTokenSource cancellationTokenSource = new CancellationTokenSource();Task.Factory.StartNew(() =>{ Thre... 阅读全文
posted @ 2014-05-21 22:56 武胜-阿伟 阅读(234) 评论(0) 推荐(0) 编辑
摘要: The start index: this is inclusive, i.e. this will be the first index value in the loopThe end index: this is exclusive, so it won’t be processed in t... 阅读全文
posted @ 2014-05-21 22:52 武胜-阿伟 阅读(232) 评论(0) 推荐(0) 编辑
摘要: An IEnumerable objectAn Action of T which is used to process each item in the listList dataList = new List { "this", "is", "random", "sentence... 阅读全文
posted @ 2014-05-21 22:51 武胜-阿伟 阅读(227) 评论(0) 推荐(0) 编辑
摘要: for (int i = 0; i SteppedIntegerList(int startIndex, int endEndex, int stepSize){ for (int i = startIndex; i { Console.WriteLine... 阅读全文
posted @ 2014-05-21 22:49 武胜-阿伟 阅读(168) 评论(0) 推荐(0) 编辑
摘要: List integers = new List() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };Parallel.ForEach(integers, (int item, ParallelLoopState state) =>{ if (item > 5) { ... 阅读全文
posted @ 2014-05-21 22:46 武胜-阿伟 阅读(174) 评论(0) 推荐(0) 编辑