示例#1
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     obj["MappingOrigin"]        = MappingOrigin.getJson(this, options);
     obj["MappedRepresentation"] = MappedRepresentation.getJson(this, options);
     if (mHasShapeAspects.Count > 0)
     {
         obj["HasShapeAspects"] = new JArray(mHasShapeAspects.ConvertAll(x => x.getJson(this, options)));
     }
 }
示例#2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     obj["MappingOrigin"]        = mDatabase[mMappingOrigin].getJson(this, processed);
     obj["MappedRepresentation"] = MappedRepresentation.getJson(this, processed);
     if (mHasShapeAspects.Count > 0)
     {
         obj["HasShapeAspects"] = new JArray(mHasShapeAspects.ConvertAll(x => x.getJson(this, processed)));
     }
 }