コード例 #1
0
 /// <summary>
 ///     Initializes a new instance of <see cref="ObjectVisitor" />.
 /// </summary>
 /// <param name="path">The path of the JsonPatch operation</param>
 /// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions" />.</param>
 /// <param name="adapterFactory">The <see cref="IAdapterFactory" /> to use when creating adapters.</param>
 public ObjectVisitor(ParsedPath path, JsonSerializerOptions jsonSerializerOptions, IAdapterFactory adapterFactory)
 {
     _path = path;
     _jsonSerializerOptions = jsonSerializerOptions ?? throw new ArgumentNullException(nameof(jsonSerializerOptions));
     _adapterFactory        = adapterFactory ?? throw new ArgumentNullException(nameof(adapterFactory));
 }
コード例 #2
0
 /// <summary>
 ///     Initializes a new instance of <see cref="ObjectVisitor" />.
 /// </summary>
 /// <param name="path">The path of the JsonPatch operation</param>
 /// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions" />.</param>
 public ObjectVisitor(ParsedPath path, JsonSerializerOptions jsonSerializerOptions)
     : this(path, jsonSerializerOptions, new AdapterFactory())
 {
 }