CSharp Interview Questions

Is multiple generic type parameters is valid and supported in .NET ?

Is multiple generic type parameters is valid and supported in .NET ?

Yes, one can have multiple generic type parameters in .NET. All generic type parameters should be within angle brackets and seperated with comma.

Example below :

public Class Coordinate<X,Y,Z>
{
}

Leave a Reply