コード例 #1
0
    // Token: 0x06000997 RID: 2455 RVA: 0x000372A0 File Offset: 0x000354A0
    private void method_19(JsonWriter jsonWriter_0, object object_0, JsonObjectContract jsonObjectContract_0, JsonProperty jsonProperty_0, JsonContainerContract jsonContainerContract_0, JsonProperty jsonProperty_1)
    {
        this.method_17(jsonWriter_0, jsonObjectContract_0, object_0);
        this.list_0.Add(object_0);
        this.method_21(jsonWriter_0, object_0, jsonObjectContract_0, jsonProperty_0, jsonContainerContract_0, jsonProperty_1);
        int top = jsonWriter_0.Top;

        for (int i = 0; i < jsonObjectContract_0.Properties.Count; i++)
        {
            JsonProperty jsonProperty = jsonObjectContract_0.Properties[i];
            try
            {
                JsonContract jsonContract_;
                object       object_;
                if (this.method_20(jsonWriter_0, object_0, jsonObjectContract_0, jsonProperty_0, jsonProperty, out jsonContract_, out object_))
                {
                    jsonProperty.method_3(jsonWriter_0);
                    this.method_9(jsonWriter_0, object_, jsonContract_, jsonProperty, jsonObjectContract_0, jsonProperty_0);
                }
            }
            catch (Exception exception_)
            {
                if (!base.method_4(object_0, jsonObjectContract_0, jsonProperty.PropertyName, null, jsonWriter_0.xEuXaafal7(), exception_))
                {
                    throw;
                }
                this.method_39(jsonWriter_0, top);
            }
        }
        ExtensionDataGetter extensionDataGetter = jsonObjectContract_0.ExtensionDataGetter;
        IEnumerable <KeyValuePair <object, object> > enumerable = (extensionDataGetter != null) ? extensionDataGetter(object_0) : null;

        if (enumerable != null)
        {
            foreach (KeyValuePair <object, object> keyValuePair in enumerable)
            {
                JsonContract jsonContract_2 = this.method_7(keyValuePair.Key);
                JsonContract jsonContract_3 = this.method_7(keyValuePair.Value);
                bool         flag;
                string       text = this.method_38(jsonWriter_0, keyValuePair.Key, jsonContract_2, out flag);
                text = ((jsonObjectContract_0.ExtensionDataNameResolver != null) ? jsonObjectContract_0.ExtensionDataNameResolver(text) : text);
                if (this.method_11(keyValuePair.Value, null, jsonContract_3, jsonObjectContract_0, jsonProperty_0))
                {
                    jsonWriter_0.WritePropertyName(text);
                    this.method_14(jsonWriter_0, keyValuePair.Value);
                }
                else if (this.method_13(jsonWriter_0, keyValuePair.Value, null, jsonContract_3, jsonObjectContract_0, jsonProperty_0))
                {
                    jsonWriter_0.WritePropertyName(text);
                    this.method_9(jsonWriter_0, keyValuePair.Value, jsonContract_3, null, jsonObjectContract_0, jsonProperty_0);
                }
            }
        }
        jsonWriter_0.WriteEndObject();
        this.list_0.RemoveAt(this.list_0.Count - 1);
        this.method_18(jsonWriter_0, jsonObjectContract_0, object_0);
    }