How to access query parameters like $orderBy in controller actions?
<p>I am just reading the Microsoft REST API Guidlines (<a href="https://github.com/Microsoft/api-guidelines/blob/master/Guidelines.md" rel="nofollow noreferrer">https://github.com/Microsoft/api-guidelines/blob/master/Guidelines.md</a>) and there are query parameters described beginning with a dollar sign, e.g. <code>$orderBy</code>.</p>

<blockquote>
  <h2>9.6 Sorting collections</h2>
  
  <p>The results of a collection query MAY be sorted based on property
  values. The property is determined by the value of the $orderBy query
  parameter.</p>
</blockquote>

<p>Now if I try to define a method parameter like <code>$orderBy</code> in an action method then it is not syntactically correct (<code>$orderBy</code> is not a valid identifier).</p>

<pre><code>public class ExampleController : Controller
{
    // this is syntactically not correct
    public IActionResult Collection(...., string $orderBy = null)
    {
         ...
    }
}
</code></pre>

<p>How can I access a query parameter beginning with a dollar sign in an action method of ASP.NET Core ?</p>