Convert Dictionary To Anonymous Object?

后端 未结 7 1415
挽巷
挽巷 2020-11-27 16:33

First, and to make things clearer I\'ll explain my scenario from the top:

I have a method which has the following signature:

public virtual void Send         


        
7条回答
  •  情书的邮戳
    2020-11-27 16:55

    Anonymous objects are one that generated for you by compiler. You cannot generate dynamically create one. On the other hand you can emit such object, but I really do not think this is good idea.

    May be you can try dynamic objects? The result will be an object with all properties you need.

提交回复
热议问题