Exemplo n.º 1
0
 private void InitArray(out List<SchemaObject> list, JsonObject values)
 {
     list = null;
       if (values == null)
     return;
       JsonArray array = values as JsonArray;
       if (array != null)
     list = array.OfType<JsonNode>().Select(node1 => new SchemaObject(node1, m_schema)).ToList();
       JsonNode node = values as JsonNode;
       if (node != null)
       {
     list = new List<SchemaObject> { new SchemaObject(node, m_schema) };
       }
 }
Exemplo n.º 2
0
 public SchemaObject(JsonObject jsonObject, Schema schema)
 {
     m_schema = schema;
       m_jsonObject = jsonObject;
 }