public static ListItem ExistingRecord(Type listItemType, ListData listData, int rowIndex) { var pkValue = listData.PkColumn == null ? null : listData.PkColumn.GetValue(rowIndex); var displayValue = listData.DisplayColumn == null ? null : listData.DisplayColumn.GetValue(rowIndex); var recordData = new ExistingRecordData(listData.ListItemIds[rowIndex], pkValue, listData.DisplayColumn != null, displayValue); return(ConstructListItem(listItemType, recordData)); }
protected bool Equals(ExistingRecordData other) { return(ListItemId.Equals(other.ListItemId) && Equals(_pkValue, other._pkValue) && Equals(_displayValue, other._displayValue)); }