Quote:
|
quote:In case new objects of a generic type must be instantiated in a generic class, the where clause can be extended with the constructor constraint new(). This constructor constraint defines that a default constructor must be available with the generic type:
|
Code:
public class MyClass<T>
where T : IFoo, new()
{
//...
hi can some1 explain me what exactly does it say ..becoz im a bigginer in c#