Skip to content

Generic CollectionBuilderAttribute #88967

Discussion options

You must be logged in to vote

aren't really being used in any official capacity (Generic Attributes, Default interface Members, Static Abstract Interface Members)

Static abstract interface methods are being used in a significant capacity: the entire generic math feature introduced in .NET 7 is heavily based on them, they're at the center of code reduction techniques throughout multiple critical components (e.g. many of the span-based processing routines, SslStream, etc.)

Default interface members are also used, just not as heavily due to concerns about the diamond problem when they're added to very core interfaces.

And there are generic attributes in public surface area, e.g. https://learn.microsoft.com/en-us/dotnet…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by KennethHoff
Comment options

You must be logged in to vote
1 reply
@stephentoub
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants