In This Article

VarianceAnnotation Enum

Specifies the variance annotation for a type parameter.

public enum VarianceAnnotation

Fields

Name Description
Contravariant

The matching type can be less derived than what is defined (marked in C# via in and VB via In).

Covariant

The matching type can be more derived than what is defined (marked in C# via out and VB via Out).

Invariant

No variance annotation, the default value.