object to deserialize has a C# keyword

后端 未结 3 1747
轻奢々
轻奢々 2020-12-07 00:04

With the JSON defined as it is, in order to deserialize it as an object, I\'d need to create a property on my class called \"event\", which is a C# keyword. Is there anothe

3条回答
  •  感动是毒
    2020-12-07 00:52

    I was able to just capitalize the "e", and it still works. Looks like the parsing mechanism is case-insensitive.

提交回复
热议问题