public static Class120 smethod_0(IList <JsonSchema> ilist_3) { Class120 class2 = new Class120(); foreach (JsonSchema schema in ilist_3) { smethod_1(class2, schema); } return(class2); }
private static void smethod_1(Class120 class120_2, JsonSchema jsonSchema_0) { bool?required; bool?exclusiveMinimum; bool?exclusiveMaximum; if (!class120_2.Boolean_0) { required = jsonSchema_0.Required; } class120_2.Boolean_0 = required.HasValue; JsonSchemaType?type = jsonSchema_0.Type; class120_2.JsonSchemaType_0 &= (JsonSchemaType)(type.HasValue ? type.GetValueOrDefault() : JsonSchemaType.Any); class120_2.Nullable_0 = Class192.smethod_3(class120_2.Nullable_0, jsonSchema_0.MinimumLength); class120_2.Nullable_1 = Class192.smethod_2(class120_2.Nullable_1, jsonSchema_0.MaximumLength); class120_2.Nullable_2 = Class192.smethod_4(class120_2.Nullable_2, jsonSchema_0.DivisibleBy); class120_2.Nullable_3 = Class192.smethod_4(class120_2.Nullable_3, jsonSchema_0.Minimum); class120_2.Nullable_4 = Class192.smethod_4(class120_2.Nullable_4, jsonSchema_0.Maximum); if (!class120_2.Boolean_1) { exclusiveMinimum = jsonSchema_0.ExclusiveMinimum; } class120_2.Boolean_1 = exclusiveMinimum.HasValue; if (!class120_2.Boolean_2) { exclusiveMaximum = jsonSchema_0.ExclusiveMaximum; } class120_2.Boolean_2 = exclusiveMaximum.HasValue; class120_2.Nullable_5 = Class192.smethod_3(class120_2.Nullable_5, jsonSchema_0.MinimumItems); class120_2.Nullable_6 = Class192.smethod_2(class120_2.Nullable_6, jsonSchema_0.MaximumItems); class120_2.Boolean_3 = class120_2.Boolean_3 || jsonSchema_0.PositionalItemsValidation; class120_2.Boolean_4 = class120_2.Boolean_4 && jsonSchema_0.AllowAdditionalProperties; class120_2.Boolean_5 = class120_2.Boolean_5 && jsonSchema_0.AllowAdditionalItems; class120_2.Boolean_6 = class120_2.Boolean_6 || jsonSchema_0.UniqueItems; if (jsonSchema_0.Enum != null) { if (class120_2.IList_2 == null) { class120_2.IList_2 = new List <JToken>(); } class120_2.IList_2.smethod_7 <JToken>(jsonSchema_0.Enum, JToken.EqualityComparer); } JsonSchemaType?disallow = jsonSchema_0.Disallow; class120_2.JsonSchemaType_1 |= (JsonSchemaType)(disallow.HasValue ? disallow.GetValueOrDefault() : JsonSchemaType.None); if (jsonSchema_0.Pattern != null) { if (class120_2.IList_0 == null) { class120_2.IList_0 = new List <string>(); } class120_2.IList_0.smethod_4 <string>(jsonSchema_0.Pattern); } }
private Class120 method_7(Class123 class123_1) { Class120 class2; if (!this.dictionary_0.TryGetValue(class123_1, out class2)) { class2 = Class120.smethod_0(class123_1.ReadOnlyCollection_0); this.dictionary_0[class123_1] = class2; foreach (KeyValuePair <string, Class123> pair in class123_1.Dictionary_0) { if (class2.IDictionary_0 == null) { class2.IDictionary_0 = new Dictionary <string, Class120>(); } class2.IDictionary_0[pair.Key] = this.method_7(pair.Value); } foreach (KeyValuePair <string, Class123> pair2 in class123_1.Dictionary_1) { if (class2.IDictionary_1 == null) { class2.IDictionary_1 = new Dictionary <string, Class120>(); } class2.IDictionary_1[pair2.Key] = this.method_7(pair2.Value); } foreach (Class123 class3 in class123_1.List_0) { if (class2.IList_1 == null) { class2.IList_1 = new List <Class120>(); } class2.IList_1.Add(this.method_7(class3)); } if (class123_1.Class123_0 != null) { class2.Class120_0 = this.method_7(class123_1.Class123_0); } if (class123_1.Class123_1 != null) { class2.Class120_1 = this.method_7(class123_1.Class123_1); } } return(class2); }