[DebuggerDisplay("ToString()")] public sealed class Map
Represents an individual map description. A map is a collection of path element and item index strings that mirrors path and item notation in data trees.

Constructors

Map

#
public Map(IEnumerable<string> pathElements, string itemElement)
pathElements (IEnumerable<string>)A collection of path element descriptors.
itemElement (string)Item element descriptor, can be null.

Map

#
public Map(string map)
Create a new map from a string.
map (string)

Properties

HasItem

#
public bool HasItem { get; }
Gets wether or not an item mapping has been set.

Item

#
public string Item { get; }
Gets the item mapping.

PathCount

#
public int PathCount { get; }
Gets the length of the path mapping.

Methods

Path

#
public string Path(int index)
Gets the path mapping for the specified index.
index (int)Index of path element.
The mapping descriptor for the specified index.

ToString

#
public override string ToString()
Gets the string format of this map.
Object.ToString