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 | |
---|---|---|
GraphPathSerializer | Constructs a new PathSerializer using the given CommonPaths collection. |
Top
Properties
Name | Description | |
---|---|---|
UsedPaths | Gets the list of paths that were used by the combined calls to Deserialize() or Serialize(). |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds all the paths in the given collection. | |
Deserialize | Deserializes the given path. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Serialize | Serializes the given text as a path does not attempt to substitute the content. | |
SerializeWithSubstitution | Serializes the given text with substitution of paths. | |
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.