GenericParameterVariance Enum

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.


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

Namespace: Cirrus


Enum Values

Value
Description
InContra 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.
NoneNo generic variance
OutCo 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.


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox