how to create property of type generic class?

Posted by Anish on Stack Overflow See other posts from Stack Overflow or by Anish
Published on 2010-05-27T04:33:23Z Indexed on 2010/05/27 4:41 UTC
Read the original article Hit count: 174

Filed under:
|
|
|
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

© Stack Overflow or respective owner

Related posts about c#

Related posts about class