What are Nested Types in Generics

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

A type that is nested in a generic type can depend on the type parameters
of the enclosing generic type. The common language runtime considers
nested types to be generic, even if they do not have generic type
parameters of their own. When you create an instance of a nested type,
you must specify type arguments for all enclosing generic types.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response