I am practicing writing a simple WEB API and trying to understand the autogenerated code snippets and I saw a strange thing around the the MapGet function definition:
public static RouteGroupBuilder MapGroup(this IEndpointRouteBuilder endpoints, RoutePattern prefix)
This phraze: this IEndpointRouteBuilder endpoints
Why the ‘this’ keyword is used, what is endpoints type now? How to interpret this?
Thank you so much for the help!
1