m_listViewItems = new ObservableCollection<ListItem>( from i in m_listViewItems where !m_cancelationTokenSource.IsCancellationRequested orderby (primaryTypeIsKnown) ? Convert.ChangeType(i.SubItems[sortIndex], primaryItemType, CultureInfo.InvariantCulture) : i.SubItems[sortIndex].ToString() descending, (secondaryTypeIsKnown) ? Convert.ChangeType(i.SubItems[columnToCompareIndex], secondaryItemType, CultureInfo.InvariantCulture) : i.SubItems[columnToCompareIndex].ToString() descending select i);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)