© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
7 replies
peladococinero

❔ CSharp [] attribute help

Hi! sorry for the basic question, but I need a not so technical and more casual explanation about (I think it is) the call of attributes through brackets []

Like this code:

[ApiController]// What is this? What attribute does he call? where from?
[Route("[controller]")] 

public class WeatherForecastController : ControllerBase
{
[ApiController]// What is this? What attribute does he call? where from?
[Route("[controller]")] 

public class WeatherForecastController : ControllerBase
{
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Csharp serializing
C#CC# / help
3y ago
❔ csharp error
C#CC# / help
4y ago
✅ ASP Core Attribute Logic Help
C#CC# / help
2y ago