rbwhitaker / CSharpPlayersGuideEarlyAccess

A place to track issues with the C# Player's Guide for patches and future editions
19 stars 0 forks source link

Generic attributes #647

Closed rbwhitaker closed 1 year ago

rbwhitaker commented 2 years ago

Attributes can now have generic type parameters.

I'm not sure if this is strictly necessary for the book. You'd probably assume you can make a generic attribute, if you didn't know better, and since that's the expected behavior and the correct new behavior, this likely doesn't need to be called out specifically. But I'm putting it in here so it gets the attention it deserves later.

rbwhitaker commented 1 year ago

I've made my final call. I don't think this demands being called out specifically in 6th Edition. It is what you'd likely assume to be the case, and is a combination of things that isn't crazy common. Space in the book is a premium, and this probably isn't significant enough to earn vertical space in the book. However, when I make a blog post (or several) or a YouTube video about new C# 11 features, it probably deserves a callout there.