コード例 #1
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     obj["EnumerationValues"] = new JArray(EnumerationValues.ToList().ConvertAll(x => DatabaseIfc.extract(x)));
     if (mEnumerationReference > 0)
     {
         obj["EnumerationReference"] = EnumerationReference.getJson(this, options);
     }
 }
コード例 #2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     obj["EnumerationValues"] = new JArray(EnumerationValues.ConvertAll(x => DatabaseIfc.extract(x)));
     if (mEnumerationReference > 0)
     {
         obj["EnumerationReference"] = EnumerationReference.getJson(this, processed);
     }
 }