Пример #1
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     obj["OuterBoundary"] = OuterBoundary.getJson(this, processed);
     if (mInnerBoundaries.Count > 0)
     {
         obj["InnerBoundaries"] = new JArray(InnerBoundaries.ToList().ConvertAll(x => x.getJson(this, processed)));
     }
 }
Пример #2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     obj["OuterBoundary"] = OuterBoundary.getJson(this, options);
     if (mInnerBoundaries.Count > 0)
     {
         obj["InnerBoundaries"] = new JArray(InnerBoundaries.ToList().ConvertAll(x => x.getJson(this, options)));
     }
 }