public void AddConnector(String name, Enums.ConnectorType type, String[] directions) { foreach (String dir in directions) { if (!ShieldBase.IsConnectable(dir, type)) { throw new Exception("El tipo de conector no es compatible en esa direccion del micro"); } } Connectors.Add(new Connector(name, type, directions)); }