GenericParameterVariance

Overview

IGenericParameterType and IGenericParameterTypeDefinition use this enum to define the generic variance mode.

Location

Value Description
In Contra variance; can only be used in input parameters. When specified on an interface or delegate type parameter, the generic type can be a subclass of the type parameter used originally.
None No generic variance
Out Co variance; can only be used in method results. When specified on an interface or delegate type, the type passed here can be an ancestor class of the type parameter actually used.