![]() |
VOOZH | about |
JsonPatch Class
Namespace: Json.Patch
Inheritance: JsonPatch 🡒 object
Implemented interfaces:
Models a JSON Patch document.
| Name | Type | Summary |
|---|---|---|
| Operations | IReadOnlyList<PatchOperation> | Gets the collection of operations. |
Creates a new instance of the Json.Patch.JsonPatch class.
1
public JsonPatch(params PatchOperation[] operations)
| Parameter | Type | Description |
|---|---|---|
| operations | params PatchOperation[] | The collection of operations. |
Creates a new instance of the Json.Patch.JsonPatch class.
1
public JsonPatch(IEnumerable<PatchOperation> operations)
| Parameter | Type | Description |
|---|---|---|
| operations | IEnumerable<PatchOperation> | The collection of operations. |
Applies the patch to a JSON document.
1
public PatchResult Apply(JsonNode source)
| Parameter | Type | Description |
|---|---|---|
| source | JsonNode | The JSON document. |
A result object containing the output JSON and a possible error message.
Indicates whether the current object is equal to another object of the same type.
1
public bool Equals(JsonPatch other)
| Parameter | Type | Description |
|---|---|---|
| other | JsonPatch | An object to compare with this object. |
true if the current object is equal to the parameter; otherwise, false.
Determines whether the specified object is equal to the current object.
1
public override bool Equals(object obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current object. |
true if the specified object is equal to the current object; otherwise, false.
Serves as the default hash function.
1
public override int GetHashCode()
A hash code for the current object.
A new version of content is available.