.NET Covariance and Contravariance
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...
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