GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoToolLinking Class / ValidPortsCache Property
In This Topic
    ValidPortsCache Property
    In This Topic
    Gets the hashtable of all known ports that are valid for this particular linking operation.
    Syntax
    public Dictionary<IGoPort,object> ValidPortsCache {get; set;}
    Remarks
    This collection is initially empty for each linking operation. As the PickNearestPort method is called, the port is added to this collection, with a value depending on whether IsValidLink returns true. The value is Valid if it returned true, Invalid if it returned false. The cacheing is done because the computation to determine valid links can be expensive. You can turn off the cacheing by setting this property to null.
    See Also