You must have declaration on the class to know what type T is in the list. To do this you have to use following code in your program to fix this problem.
Code:
public abstract class AbstractClassEg<T>
{
public int Ids { get; set; }
public int Names { get; set; }
public abstract List<T> Itemss { get; set; }
}
public class Containers : AbstractClass<Widgets>
{
public List<Widgetss> Items s{ get; set; }
}
You can also specify type of T using following code:
Code:
public class AbstractClassEg<T> wheres T : IWidgetss
Bookmarks