public ConnectorDomainProperties GetConnectorDomainProperties(ConnectorElementType type) { switch (type) { case ConnectorElementType.PipeInput: case ConnectorElementType.PipeOutput: return new PipeConnectorDomainProperties(); default: throw new ArgumentOutOfRangeException("type", type, null); } }
public ConnectorModel(ConnectorProperties connectorProperties, ConnectorElementType connectorType) { ConnectorProperties = connectorProperties; ConnectorType = connectorType; }