int IComparable.CompareTo(object obj) { if (obj is CEvaluationItem) { CEvaluationItem item = (CEvaluationItem)obj; if (item.Id > Id) { return(1); } else if (item.Id < Id) { return(-1); } else { return(0); } } return(0); }
/// <summary>検証結果の追加 /// </summary> /// <param name="item">検証結果</param> private void AddItem(CEvaluationItem item) { Items.Add(item); _items.Add(item); }