GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoBoxNode Class / CreatePort Method
Example
In This Topic
    CreatePort Method (GoBoxNode)
    In This Topic
    This method is called by the GoBoxNode constructor to provide the node's single port.
    Syntax
    protected virtual GoPort CreatePort()

    Return Value

    By default this just returns a GoBoxPort.
    Example
    If you override this method, you may want the definition to do some of the things that the standard definition does:
    protected virtual GoPort CreatePort() {
      GoBoxPort p = new GoBoxPort();
      return p;
    }
    See Also