很好的实现大文件上传的实例,效果很不错 Ajax based Forum applicatio Ajax based Forum application This example shows you how to use Ajax Uploader create a forum application. It shows how to allow users upload attachments to their posts and manage person
.net压缩库 SharpZipLib,支持net1.1、net2.0、netCF2.0框架,下面是用法示例: using System; using System.Text; using System.IO; using ICSharpCode.SharpZipLib; namespace SerializableJob.Compression { public enum CompressionType { GZip, BZip2, Zip } public class Compressio
之前一直认为因为List内部实现是数组,ToArray的实现只是将数组返回出去而已。
今天测了一下发现并不是那样
var a = new List();
for (int i = 0; i < 10000; i++)
{
a.Add(i);
}
DebugHelper.StartWatch();
foreach (var i in Enumerable.Range(0, 10000))
{
a.ToArray();
}
DebugHelper.StopWatch();
1万数量大小的Li