Udostępnij za pośrednictwem


GraphPathSerializer Class

Definition

This class re-writes string values using the path names in the given CommonPaths. It provides a Serialize method that substitutes paths with a $(name) syntax where the name is the name of the path as registered in the CommonPaths. it also provides a Deserialize method that does the reverse. When all Serialization is done you can query the Used property to get a list of just the paths that were used by the Serialize or Deserialize methods.

public ref class GraphPathSerializer
public class GraphPathSerializer
type GraphPathSerializer = class
Public Class GraphPathSerializer
Inheritance
GraphPathSerializer

Constructors

GraphPathSerializer(GraphPathSerializationDictionary)

Construct a new PathSerializer using the given CommonPaths collection.

Properties

UsedPaths

Get the list of paths that were used by the combined calls to Deserialize() or Serialize().

Methods

Add(GraphPathSerializationDictionary)

Add all the paths in the given collection.

Deserialize(String)

Deserialize the given path.

Serialize(String)

Serialize the given text as a path does NOT attempt to substitue the content

SerializeWithSubstitution(String)

Serialize the given text with substitution of paths

Applies to