Beispiel #1
0
        private IInternalJsonMergePatchDocument CreatePatchDocument(Type jsonMergePatchType, Type modelType, JObject jObject, JsonSerializer jsonSerializer)
        {
            var jsonMergePatchDocument = PatchBuilder.CreatePatchDocument(modelType, jObject, jsonSerializer, this._jsonMergePatchOptions);

            jsonMergePatchDocument.ContractResolver = SerializerSettings.ContractResolver;
            return(jsonMergePatchDocument);
        }
        private JsonMergePatchDocument CreatePatchDocument(Type jsonMergePatchType, Type modelType, JObject jObject, JsonSerializer jsonSerializer)
        {
            var jsonMergePatchDocument = PatchBuilder.CreatePatchDocument(jsonMergePatchType, modelType, jObject, jsonSerializer);

            jsonMergePatchDocument.ContractResolver = SerializerSettings.ContractResolver;
            return(jsonMergePatchDocument);
        }
        private IInternalJsonMergePatchDocument CreatePatchDocument(Type jsonMergePatchType, Type modelType, JsonElement jsonElement)
        {
            var jsonMergePatchDocument = PatchBuilder.CreatePatchDocument(modelType, jsonElement, base.SerializerOptions, this._jsonMergePatchOptions);

            return(jsonMergePatchDocument);
        }