© 2026 Hedgehog Software, LLC

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

❔ It it possible to get name of attribute without reflection?

I have following:
public class Book
{
    [CustomAttribute]
    public string Name
    {
        get; private set; 
    }
}
public class Book
{
    [CustomAttribute]
    public string Name
    {
        get; private set; 
    }
}

is it possible to get the name of CustomAttribute? with
type.GetCustomAttribute
type.GetCustomAttribute
?
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

Is it possible to pin an array using reflection?
C#CC# / help
2y ago
✅ How to get values of list using reflection?
C#CC# / help
3y ago
✅ how to check attribute name?
C#CC# / help
2y ago
Is it possible to use Reflection to replace a static readonly field without the static constructor?
C#CC# / help
2y ago