ObjectPath Class
Definition
Helper methods for working with dynamic json objects.
public static class ObjectPath
type ObjectPath = class
Public Class ObjectPath
- Inheritance
-
ObjectPath
Methods
Assign(Object, Object, Type) |
Equivalent to javascripts ObjectPath.Assign, creates a new object from startObject overlaying any non-null values from the overlay object. |
Assign<T>(Object, Object) |
Equivalent to javascripts ObjectPath.Assign, creates a new object from startObject overlaying any non-null values from the overlay object. |
Clone<T>(T) |
Clone an object. |
ContainsProperty(Object, String) |
Detects if property exists on object. |
ForEachProperty(Object, Action<String,Object>) |
Apply an action to all properties in an object. |
GetPathValue<T>(Object, String) |
Get the value for a path relative to an object. |
GetPathValue<T>(Object, String, T) |
Get the value for a path relative to an object. |
GetProperties(Object) |
Get all properties in an object. |
HasValue(Object, String) |
Does an object have a subpath. |
MapValueTo<T>(Object) |
Convert a generic object to a typed object. |
Merge<T>(T, T) |
Equivalent to javascripts ObjectPath.Assign, creates a new object from startObject overlaying any non-null values from the overlay object. |
RemovePathValue(Object, String) |
Remove path from object. |
SetPathValue(Object, String, Object, Boolean) |
Given an object evaluate a path to set the value. |
TryGetPathValue<T>(Object, String, T) |
Get the value for a path relative to an object. |
TryResolvePath(Object, String, List<Object>, Boolean) |
Given an root object and property path, resolve to a constant if eval = true or a constant path otherwise. |