Quantcast
Channel: What does "T : new()" mean with generics? - Stack Overflow
Viewing all articles
Browse latest Browse all 5

What does "T : new()" mean with generics?

0
0

i want to understand that code. I think T must be IContinentFactory's implemented class but i don't understand to end of the new() keyword.

class AnimalWorld<T> : IAnimalWorld where T : IContinentFactory, new()
{
.....
}

Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images