Hello everyone. I am learning how to create a custom attributes and it is working fine when I add the attribute on a method within a controller. But I have some cases where I want to use the attribute outside the controller and in a service and that is when I can't read the values passed in the attribute unless I write code which uses a lot of reflection and is a performance overkill. Is there a simple way to read the data passed in the attribute outside a controller like a method within a service ?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
C
C#
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.