Skip to content

This section only talks about Variance concept of generics. I think it is incorrectly placed here. #38651

Open

Description

@opensourcezasmlabs

Type of issue

Other (describe below)

Description

This information doesn't belong here. I think it should be corrected.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/programming-guide/concepts/index.md

Document Version Independent Id

d48a2bca-bccc-6c57-34fc-ea72c8e0b1c2

Article author

@BillWagner

Metadata

  • ID: 79095336-671c-ea61-f907-cc928fa66884
  • Product: dotnet-csharp

Activity

  1. BillWagner commented on Dec 7, 2023

    @BillWagner
    Member

    Hi @opensourcezasmlabs

    The most common use of covariance and contravariance in C# is on generic type parameters. More recently, override methods can have covariant return types, but that's a more niche usage.

    Where would you put this information instead?

  2. added
    needs-more-info
    on Dec 7, 2023
  3. opensourcezasmlabs commented on Dec 7, 2023

    @opensourcezasmlabs
    Author
  4. removed
    needs-more-info
    on Dec 7, 2023
  5. BillWagner commented on Dec 8, 2023

    @BillWagner
    Member

    Thanks @opensourcezasmlabs

    That makes sense. I've added it to my list for when we sweep through this sectino.

  6. added
    in-pr
    on Nov 1, 2026
  7. added a commit that references this issue on Nov 30, 2026
    3dd5282
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotnet-csharp/svcin-pr

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions