public static JsonSchemaModel Create(IList <JsonSchema> schemata)
        {
            JsonSchemaModel jsonSchemaModel = new JsonSchemaModel();

            foreach (JsonSchema current in schemata)
            {
                JsonSchemaModel.Combine(jsonSchemaModel, current);
            }
            return(jsonSchemaModel);
        }
Esempio n. 2
0
        public static JsonSchemaModel Create(IList <JsonSchema> schemata)
        {
            JsonSchemaModel model = new JsonSchemaModel();

            foreach (JsonSchema schema in (IEnumerable <JsonSchema>)schemata)
            {
                JsonSchemaModel.Combine(model, schema);
            }
            return(model);
        }
        public static JsonSchemaModel Create(IList <JsonSchema> schemata)
        {
            JsonSchemaModel jsonSchemaModel = new JsonSchemaModel();

            using (IEnumerator <JsonSchema> enumerator = schemata.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    JsonSchema current = enumerator.get_Current();
                    JsonSchemaModel.Combine(jsonSchemaModel, current);
                }
            }
            return(jsonSchemaModel);
        }