I have this code:
public class SelectionList<T> : ObservableCollection<SelectionItem<T>> where T : IComparable<T>
{
// Code
}
public class SelectionItem<T> : INotifyPropertyChanged
{
// Code
}
I need to create a property which is of the type SelectionList
as follows:
public SelectionList<string> Sports { get; set; }
But when I replace string with DataRowView, as
public SelectionList<DataRowView> Sports { get; set; }`
I am getting an error. Why doesn't this work?