GraphPathSerializer Class

This class re-writes string values by 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 has completed, you can query the Used property to get a list of just the paths that were used by the Serialize or Deserialize methods.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.GraphModel.GraphPathSerializer

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
Public Class GraphPathSerializer
public class GraphPathSerializer
public ref class GraphPathSerializer
type GraphPathSerializer =  class end
public class GraphPathSerializer

The GraphPathSerializer type exposes the following members.

Constructors

  Name Description
Public method GraphPathSerializer Constructs a new PathSerializer using the given CommonPaths collection.

Top

Properties

  Name Description
Public property UsedPaths Gets the list of paths that were used by the combined calls to Deserialize() or Serialize().

Top

Methods

  Name Description
Public method Add Adds all the paths in the given collection.
Public method Deserialize Deserializes the given path.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Serialize Serializes the given text as a path does not attempt to substitute the content.
Public method SerializeWithSubstitution Serializes the given text with substitution of paths.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.GraphModel Namespace