Blog Logo
TAGS

Generating argument expressions for minimal APIs

In this post, we dive into the generating argument expressions for minimal APIs. We explore the CreateArgument() method responsible for defining how model-binding works in minimal APIs. We look at half of the binding expressions in CreateArgument in this post, and half in the next post. This is the fourth post in the series: Behind the scenes of minimal APIs. The previous post explored the CreateArgument() method and showed how it is responsible for generating an Expression for the binding. We skipped over the Expression generation in the previous post, so we go into it in this post and look at the (effective) code that CreateArgument() generates. This post is a pretty long post that contains a table of contents. We also give a quick recap of RequestDelegateFactory.CreateArgument() and the rest of the series so far.