GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPortFilteredLinkEnumerator Structure
Members
In This Topic
    GoPortFilteredLinkEnumerator Structure
    In This Topic
    Iterate over a subset of the links connected to this port, those either coming into this port or those leaving this port.
    Syntax
    public struct GoPortFilteredLinkEnumerator : System.ValueType 
    Remarks
    Although this structure is public, it is rarely used explicitly. Instead you should use the foreach (or For Each) construct to iterate through the links of a port. In C#:
    
                foreach (IGoLink link in aPort.DestinationLinks) {
                  . . .
                }
                
    In VB.NET:
    
                Dim link As IGoLink
                For Each link in aPort.DestinationLinks
                  . . .
                Next
                

    Remember that you must not modify the graph structure of links and nodes connected to this port, by adding or removing any links or nodes, while you are iterating over them. This structure type does not support comparison for equality.

    See Also