CodeGraphNodeIdBuilder Class
The CodeGraphNodeIdBuilder allows us to inspect a GraphNodeId and retrieve the code elements (Namespace, Type etc.) out of it. This is not an expensive object to create, but to miminize GC pressure when building a lot of GraphNodeIds, you can reuse the same CodeGraphNodeIdBuilder by calling ReInitialize, rather than creating a new CodeGraphNodeIdBuilder. CodeGraphNodeIdBuilder is created lazily so that we don't need to e.g. build a child CodeGraphNodeIdBuilder to parse a generic argument when we're not going to look at the value of the generic argument.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema.dll)
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema.CodeGraphNodeIdBuilder
Syntax
public class CodeGraphNodeIdBuilder
public ref class CodeGraphNodeIdBuilder
type CodeGraphNodeIdBuilder = class end
Public Class CodeGraphNodeIdBuilder
Constructors
Name | Description | |
---|---|---|
CodeGraphNodeIdBuilder(CodeGraphNodeIdBuilder) | ||
CodeGraphNodeIdBuilder(Graph) | ||
CodeGraphNodeIdBuilder(GraphNodeId, Graph) |
Properties
Name | Description | |
---|---|---|
Assembly | ||
GraphForMetadata | ||
HasAssembly | ||
HasMember | ||
HasNamespace | ||
HasParameter | ||
HasType | ||
Member | ||
MostSpecificLabel | ||
Namespace | ||
Parameter | ||
ParameterTransientLabelName | ||
Type |
Methods
Name | Description | |
---|---|---|
Clear() | Clear a GraphNodeId for re-use |
|
ConvertAllUris(CodeGraphNodeIdUriConvert) | ||
Equals(CodeGraphNodeIdBuilder, StringComparison) | ||
Equals(Object) | (Overrides Object.Equals(Object).) |
|
Finalize() | (Inherited from Object.) |
|
GetFullyQualifiedLabel() | ||
GetFullyQualifiedLabel(CodeGraphNodeIdLabelFormats) | ||
GetHashCode() | (Overrides Object.GetHashCode().) |
|
GetLabel(CodeGraphNodeIdLabelFormats) | ||
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
Reinitialize(CodeGraphNodeIdBuilder) | ||
Reinitialize(GraphNodeId) | ||
ToGraphNodeId() | ||
ToString() | (Overrides Object.ToString().) |
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
Microsoft.VisualStudio.ArchitectureTools.Extensibility.CodeSchema Namespace
Return to top