What is meant by Constraint in Generics

 Posted by deccansoft on 9/27/2010 | Category: C# Interview questions | Views: 1979

Constraints allow additional contextual information to be added to the type
parameters of generic types. The constraints limit the range of types
that are allowed to be used as type arguments, but at the same time,
they add information about those type parameters.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response