How can I use a keyword as a property name?

后端 未结 1 609
醉梦人生
醉梦人生 2021-01-13 10:34

I have been serializing anonymous types into json quite successfully until now..

        dynamic jsObject;

        jsObject = new ExpandoObject();
        j         


        
1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-13 10:46

    You would use the "verbatim" operator @: jsObject.@checked = false;

    0 讨论(0)
提交回复
热议问题