コード例 #1
0
 private static void RestoreCollection(RowHeaderColumnCollection collection, JsonData json)
 {
     if (json == null || json.IsNull)
     {
         return;
     }
     if (!json.IsArray)
     {
         throw new ArgumentException("Array JsonData expected. Received: " + json.GetJsonType());
     }
     foreach (JsonData node in ((IEnumerable)json))
     {
         RowHeaderColumn value = RowHeaderColumn.FromJson(node);
         collection.Add(value);
     }
 }
コード例 #2
0
 internal void RestoreFromJson(JsonData tree)
 {
     base.Clear();
     RowHeaderColumnCollection.RestoreCollection(this, tree);
 }