Joonas Westlin 2/18/2018

Exploring ActionResult<T> in ASP.NET Core 2.1

Read Original

This technical article examines the ActionResult<T> type introduced in ASP.NET Core 2.1. It explains how this generic return type allows API actions to return either a typed object or an ActionResult, simplifying code and enabling better OpenAPI/Swagger documentation without requiring extra attributes. The post also delves into its implementation, including implicit operators and the IConvertToActionResult interface.

Exploring ActionResult<T> in ASP.NET Core 2.1

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet