Skip to content

code sample on this paragraph would be beneficial? #32332

@benkoshy

Description

@benkoshy

Take the following paragraph:

In general, a covariant type parameter can be used as the return type of a delegate, and contravariant type parameters can be used as parameter types. For an interface, covariant type parameters can be used as the return types of the interface's methods, and contravariant type parameters can be used as the parameter types of the interface's methods.

This is a wall of text. Readers will have to develop a mental model of what it all means. But if supplemented with a code sample, it would be inordinately helpful, and an order of magnitude more descriptive, especially for people who are speaking english as a second language. my two cents.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions