GraphNodeIdCollection Class

 

Contains a list of GraphNodeIds. This can be stored inside the .Value part of a GraphNodeId. This is an immutable list as soon as it is created. We use an abstract class because this class does not know the formatting required to serialize the list back out to a string.

The derived class will know this.

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

System.Object
  Microsoft.VisualStudio.GraphModel.GraphNodeIdCollection

public class GraphNodeIdCollection : IEnumerable, IEnumerable<GraphNodeId>, 
	IComparable

NameDescription
System_CAPS_pubmethodGraphNodeIdCollection(Boolean, GraphNodeId[])

Construct a GraphNodeIdCollection.

NameDescription
System_CAPS_pubpropertyHomogeneousElements

Whether the array elements are is homogeneous (array item names are all the same so no need repeating, e.g. Name=[item1,item2,item3]) or heterogeneous - e.g (Name1=item1, Name2=item2, Name3=item3))

System_CAPS_pubpropertyItem[Int32]

System_CAPS_pubpropertyLength

Get the number of items in the list

NameDescription
System_CAPS_pubmethodCompareTo(Object)

System_CAPS_pubmethodEquals(Object)

Compares two of these lists to see whether all of the items are equal.

This assumes the items will be in the same order inside the list.

This is a performance optimization, and needed for method arguments, where a different order means a different overload(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Computes the hash code for this collection and caches it(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetValueByName<T>(GraphNodeIdName)

Gets a value from the first embedded GraphNodeId that matches the name

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Gets this GraphNodeId collection as a string(Overrides Object.ToString().)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable<GraphNodeId>.GetEnumerator()

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Get our Enumerator. This prevents direct access to the _array

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

Return to top
Show: