In C # I have how to implement a generic class where 1 of the attributes received is a List object
In C # I have how to implement a generic class where 1 of the attributes received is a List object
You have, just use type parameter constraint
.
I put object
in the generic type of list, change to your need.
Example:
public class Negocio<TEnt, TDto, TDao, TList>() where TList : IList<object>
{
}