Код: Выделить всё
{"event_type":"status","value":"ok"}
Код: Выделить всё
{"event_type":"status","value":-253}
Код: Выделить всё
public record StatusMessage(
[property: JsonPropertyName("event_type")] string EventType,
[property: JsonPropertyName("value")] string StatusValue)
Я знаю, что могу написать собственный JsonConverter для StatusMessage, но мне интересно, есть ли другой способ?>
Подробнее здесь: https://stackoverflow.com/questions/744 ... tring-with
Мобильная версия