Код: Выделить всё
[JsonProperty("type")]
public AssetType Type { get; set; }
[JsonConverter(typeof(EnumConverter))]
public enum AssetType
{
[EnumMember(Value = "node")]
Folder
}
< /code>
Мне нужно что -то вроде < /p>
[JsonConverter(typeof(EnumConverter))]
public enum AssetType
{
[EnumMember(Value = "node","collection")]
Folder
}
Подробнее здесь: https://stackoverflow.com/questions/585 ... -attribute