You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
This section only talks about Variance concept of generics. I think it is incorrectly placed here. #38651
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.
Hi Bill, Thanks for your response.
I think generics all the variance related sections could be part of Generics documentation.
Programming Concepts should talk about programming in general like the programming paradigm.
Regards,
Zia
From: Bill Wagner ***@***.***>
Sent: Thursday, December 7, 2023 7:50 PM
To: dotnet/docs ***@***.***>
Cc: Open Source ***@***.***>; Mention ***@***.***>
Subject: Re: [dotnet/docs] This section only talks about Variance concept of generics. I think it is incorrectly placed here. (Issue #38651)
Hi @opensourcezasmlabs<https://github.com/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?
—
Reply to this email directly, view it on GitHub<#38651 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVPJ2SKZ3Y5ZSEXRTYKUOULYIHGCBAVCNFSM6AAAAABALDQLAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBVGQZDMMJRGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
Activity
BillWagner commentedon Dec 7, 2023
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?
opensourcezasmlabs commentedon Dec 7, 2023
BillWagner commentedon Dec 8, 2023
Thanks @opensourcezasmlabs
That makes sense. I've added it to my list for when we sweep through this sectino.
Restructure programming concepts overview with core paradigms and adv…