public override bool CanConnectTo(MatDataPort port) { MatDataOutputPort trg = port as MatDataOutputPort; if (trg == null || SendFrom != null) return false; if (IsHardwarePort && trg.IsHardwarePort) { return AllowHardwareConnection & trg.AllowHardwareConnection; } return CanConnectToAnything || trg.MatDataType == MatDataType; }
public abstract bool CanConnectTo(MatDataPort port);