摘要:
public class AsyncTask { public void TestMethod() { List<string> Listone = new List<string> { "url2","url","urle"}; //var results = from url in Listone.AsParallel() // select new WebClient().DownloadData(url); //results.ForAll(r... 阅读全文
摘要:
字段去除空格代码 [AttributeUsage(AttributeTargets.Property,Inherited=false,AllowMultiple=false)] public class TrimAttribute:Attribute { private readonly Type type; public TrimAttribute(Type type) { this.type = type; } public Type Type { get { return this.type; } } }... 阅读全文