how to create property of type generic class?
- by Anish
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 error. Please help