04 2020 档案
摘要:C#代码如下 public static IEnumerable<TSource> DistinctBy<TSource, TKey> (this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) { HashSet<TKey
阅读全文
摘要:微软内置了缓存对象HttpRuntime.Cache,使用起来非常的方便,使用如下: HttpRuntime.Cache.Insert("myname", "战三", null, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.From
阅读全文