© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ Compare Enum Values with submitted value
C
C# / help
4y ago
❔ How to get a random enum value?
C
C# / help
3y ago
✅ Can I put an extension method directly on an enum, not a value in the enum?
C
C# / help
8mo ago