Class
- Namespace
- CoreFramework
Provides extension methods for working with PropertyPath.
public static class PropertyPathExtensions
- Inheritance
-
object
Methods
ToPropertyPath(string)
Converts a string representation of a property path into a PropertyPath object.
public static PropertyPath ToPropertyPath(this string pathString)
Parameters
pathString
stringA string representing the property path. Can include dot-separated property names and array indices in square brackets.
Returns
- PropertyPath
A PropertyPath object representing the parsed path.
Examples
Valid path strings: “propertyName” “parent.child” “array[0]” “parent.children[2].name” “matrix[0][1]”
Exceptions
- ArgumentException
Thrown when the input string is null, empty, or consists only of whitespace.
- FormatException
Thrown when the path contains an invalid array index or unmatched square brackets.