摘要:
程序集 System.Core.dll中的System.Linq命名空间添加了许多扩展方法,看到public static TAccumulate Aggregate<TSource, TAccumulate>(this IEnumerable<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func)使用这个方法去除文件名中的非法字符,一行代码就可以搞定。用Reflector查看一下源码:public static TAccumulate Aggregat 阅读全文