万能设置值 public void setValuet(t value) where t : JToken { this.jObject[fieldName] = value; } 万能创建不同泛型的对象。 public static JObjectTargett createJObjectTargett(JObject jObject, string fieldName ) { JObjectTargett
万能设置值
public void setValue<t>(t value) where t : JToken
{
this.jObject[fieldName] = value;
}
万能创建不同泛型的对象。
public static JObjectTarget<t> createJObjectTarget<t>(JObject jObject, string fieldName )【本文由:高防cdn http://www.558idc.com/gfcdn.html 复制请保留原URL】
{
JObjectTarget<t> jObjectTarget = new JObjectTarget<t>(jObject, fieldName);
return jObjectTarget;
}