-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Create IResult-returning static methods #33729
Copy link
Copy link
Closed
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-actionsController-like actions for endpoint routingController-like actions for endpoint routing
Milestone
Metadata
Metadata
Assignees
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-actionsController-like actions for endpoint routingController-like actions for endpoint routing
Type
Fields
Give feedbackNo fields configured for issues without a type.
IResult-returning static methods would allow something likeusing static Microsoft.AspNetCore.Http.Resultsand makes for better return type inference for IResult-returning lambdas, so you don't have to do casting like the following you have to do using constructors today.With,
IResultreturningNotFoundandOkmethods the(IResult)casting can be removed.