GenericParameterVariance Enum
From The Oxygene Language Wiki
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
| | |
|---|---|
| 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. |
See Also
- Cirrus
- External Links:
- Prism Aspects to Help with Monobjc Development (RemObjects Blogs)
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To