Newtonsoft - How to set the JsonProperty name with a variable that takes its value from another class

前端 未结 0 387
public class A
{
    public B id { get; set; }
}

public class B
{
    [JsonProperty("a_variable_with_value_from_class_A")]
    public C id{ get; set; }
}

pub         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题