다음을 통해 공유


Reflection and Generic Types

Microsoft Silverlight will reach end of support after October 2021. Learn more.

From the point of view of reflection, the difference between a generic type and an ordinary type is that a generic type has a set of type parameters (if it is a generic type definition) or type arguments (if it is a constructed type). A generic method differs from an ordinary method in the same way.

The problem in reflection is to provide a way to examine this array of type parameters or type arguments. In the case of type parameters, reflection must also provide a way of examining the constraints. This section describes the methods of the Type and MethodInfo classes that provide the ability to examine generic types and methods.

In This Section

Reference