我有一本字典:
private Dictionary<long, TimeStampedFetchedPlans> remainingPlansById = null;
在哪里
public class TimeStampedFetchedPlans
{
public DateTime TimeStamp { get; set; }
public List<TFetchedPlanReturn> RemainingPlans { get; set; }
public TimeStampedFetchedPlans(DateTime timeStamp, List<TFetchedPlanReturn> remainingPlans)
{
TimeStamp = timeStamp;
RemainingPlans = remainingPlans;
}
}
现在我想使用 LINQ 删除 Dictionary 中最旧的一半值。这可以做到吗?