© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
20 replies
Suiram1

Set a class attribute result with a custom attribute

Hi, I'm trying to create a custom attribute that applies to class attributes of type string and ensures that when you read the value of this class attribute, it always returns a specific string. Is this somehow feasible?
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

✅ Apply multiple attributes from custom attribute
C#CC# / help
2y ago
❔ ✅ How to call a specific attribute from a getter class to another class
C#CC# / help
3y ago
Custom Class Serialization
C#CC# / help
4y ago