.NET Covariance and Contravariance


Topic | v1 | created by jjones |
Description

Covariance and contravariance are terms that refer to the ability to use a more derived type (more specific) or a less derived type (less specific) than originally specified. Generic type parameters support covariance and contravariance to provide greater flexibility in assigning and using generic types.


Relations

is Covariance and contravariance

Many programming language type systems support subtyping. For instance, if the type Cat is a subtype...

subtopic of .NET

A developer platform for building all your apps: web, mobile, desktop, gaming, IoT, and more. Support...


Edit details Edit relations Attach new author Attach new topic Attach new resource
Resources