© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
Will Pittenger

❔ Attributes on a enum value?

If I declare an attribute with
[AttributeUsage(AttributeTargets.enum)]
[AttributeUsage(AttributeTargets.enum)]
, does that apply to the type or to the value inside the type? It's the latter I'm needing.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ Compare Enum Values with submitted value
C#CC# / help
4y ago
❔ How to get a random enum value?
C#CC# / help
3y ago
✅ Can I put an extension method directly on an enum, not a value in the enum?
C#CC# / help
8mo ago