我遍历类型为“prvEmployeeIncident”的对象的列表。我如何找到一个对象,我正在迭代通过
对象具有以下属性:
public DateTime DateOfIncident { get; set; }
public bool IsCountedAsAPoint;
public decimal OriginalPointValue;
public bool IsFirstInCollection { get; set; }
public bool IsLastInCollection { get; set; }
public int PositionInCollection { get; set; }
public int DaysUntilNextPoint { get; set; }
public DateTime DateDroppedBySystem { get; set; }
public bool IsGoodBehaviorObject { get; set; }
我的列表由DateOfIncident属性排序。我想找到下一个对象up列表IsCounted == true并将其更改为IsCounted = false。
一个问题:
1)如何在列表中找到该对象?
可能是下一个匹配的项目。 – Romoku 2013-05-02 17:16:00