43 references to GetPath
Microsoft.AspNetCore.JsonPatch.SystemTextJson (36)
JsonPatchDocumentOfT.cs (36)
62GetPath(path, null), 86GetPath(path, position.ToString(CultureInfo.InvariantCulture)), 106GetPath(path, "-"), 123Operations.Add(new Operation<TModel>("remove", GetPath(path, null), from: null)); 141GetPath(path, position.ToString(CultureInfo.InvariantCulture)), 159GetPath(path, "-"), 178GetPath(path, null), 200GetPath(path, position.ToString(CultureInfo.InvariantCulture)), 220GetPath(path, "-"), 240GetPath(path, null), 262GetPath(path, position.ToString(CultureInfo.InvariantCulture)), 282GetPath(path, "-"), 305GetPath(path, null), 306GetPath(from, null))); 329GetPath(path, null), 330GetPath(from, positionFrom.ToString(CultureInfo.InvariantCulture)))); 353GetPath(path, positionTo.ToString(CultureInfo.InvariantCulture)), 354GetPath(from, null))); 379GetPath(path, positionTo.ToString(CultureInfo.InvariantCulture)), 380GetPath(from, positionFrom.ToString(CultureInfo.InvariantCulture)))); 403GetPath(path, "-"), 404GetPath(from, positionFrom.ToString(CultureInfo.InvariantCulture)))); 425GetPath(path, "-"), 426GetPath(from, null))); 447GetPath(path, null), 448GetPath(from, null))); 471GetPath(path, null), 472GetPath(from, positionFrom.ToString(CultureInfo.InvariantCulture)))); 495GetPath(path, positionTo.ToString(CultureInfo.InvariantCulture)), 496GetPath(from, null))); 521GetPath(path, positionTo.ToString(CultureInfo.InvariantCulture)), 522GetPath(from, positionFrom.ToString(CultureInfo.InvariantCulture)))); 545GetPath(path, "-"), 546GetPath(from, positionFrom.ToString(CultureInfo.InvariantCulture)))); 567GetPath(path, "-"), 568GetPath(from, null)));
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (7)
JsonPatchDocumentGetPathTest.cs (7)
19var path = patchDocument.GetPath(p => p.SimpleObject.IntegerList, "-"); 32var path = patchDocument.GetPath(p => p[3], null); 45var path = patchDocument.GetPath(p => p["key"], "3"); 58var path = patchDocument.GetPath(p => p, null); 71var path = patchDocument.GetPath(p => p, "-"); 84var path = patchDocument.GetPath(p => (BaseClass)p.DerivedObject, null); 99patchDocument.GetPath(p => p.IntegerValue >= 4, null);