Skip to content

Commit

Permalink
Order the definitions to match the order of terms (#4576)
Browse files Browse the repository at this point in the history
The introductory sentence could be read as implying
definitions that contradict the body of the article.
  • Loading branch information
codybartfast authored and Ron Petrusha committed Mar 8, 2018
1 parent 4770959 commit abec501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/standard/generics/covariance-and-contravariance.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ms.workload:
- "dotnetcore"
---
# Covariance and Contravariance in Generics
<a name="top"></a> Covariance and contravariance are terms that refer to the ability to use a less derived (less specific) or more derived type (more specific) than originally specified. Generic type parameters support covariance and contravariance to provide greater flexibility in assigning and using generic types. When you are referring to a type system, covariance, contravariance, and invariance have the following definitions. The examples assume a base class named `Base` and a derived class named `Derived`.
<a name="top"></a> 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. When you are referring to a type system, covariance, contravariance, and invariance have the following definitions. The examples assume a base class named `Base` and a derived class named `Derived`.

- `Covariance`

Expand Down

0 comments on commit abec501

Please sign in to comment.