public static T GetLastOf <T>(this CacheCollection value) { if (value == null) { return(default(T)); } return(value.OfType <T>().LastOrDefault()); }
public static List <T> GetAllOf <T>(this CacheCollection value) { if (value == null) { return(null); } return(value.OfType <T>().ToList()); }