I'm trying to create a class with multiple generic types fields, something like this:
class Objeto<T> where T, U, W : class, new()
{
   private T field1;
   private U field2;
   private List<W> listField;
}
But I don't know how do it.
I'm trying to create a class with multiple generic types fields, something like this:
class Objeto<T> where T, U, W : class, new()
{
   private T field1;
   private U field2;
   private List<W> listField;
}
But I don't know how do it.
 
    
    class Objeto<T, U, W> 
    where T: class, new() 
    where U : class, new()
    where W : class, new()
{
    private T field1;
    private U field2;
    private List<W> listField;
}
