How to access all querystring parameters as a dictionary

后端 未结 2 712
北恋
北恋 2020-12-08 02:30

I have some dynamic querystring parameters that I would like to interact with as an IDictionary. How do I do this?

I tried

2条回答
  •  粉色の甜心
    2020-12-08 03:00

    In addition to what nemesv mentioned, you can also create a custom parameter binding for IDictionary similar to the approach I show here:

    How would I create a model binder to bind an int array?

提交回复
热议问题