public static object Patch(this IPatcher patcher, object patchedObject, IJsonElement json) { if (patchedObject == null) { throw new ArgumentNullException("patchedObject"); } return(patcher.PatchValue(patchedObject, patchedObject.GetType(), json)); }