json - C# Property Named Event -
I am using Jason Serializer and need to bind property by the name 'Event', of course the event is in C # If there is a keyword, do something like that Assume that you are using Jason .net, you can use, or , Or (an underlying one that camels things, so a property name for string event {get; Set; } is not allowed anyway what about doing so? I can not change the name of the object coming back.
event will be named
event .).
[Jasonproperty ("Event")] Received Public String Event { Set; } Public string @ event {get; Set; } Public string event {get; Set; } Var s = JsonConvert.SerializeObject (myObj, New JsonSerializer Settings [Contract = New CamelCasePropertyNamesContractResolver ()});
Comments
Post a Comment