C Sharp - Function Tagging

Code Tagging

C# (and VB.net) allow you to tag classes and functions.

  • Before the function will execute it must pass or qualify all the tags

  • It is possible to create your own function tagging

1
2
3
4
5
6
7
8
9
10
11
12
namespace EmployeeDirectory.Api.Controllers
{
[Route("api/[controller]")] ** Tag
[ApiController] ** Tag
public class ValuesController : ControllerBase
{
// GET api/values
[HttpGet] ** Tag
public ActionResult<IEnumerable<string>> Get()
{
return new string[] { "value1", "value2" };
}