public IrqDestinations(IrqReceiver destinationPeripheral, IEnumerable <SingleOrMultiIrqEnd> destinations) { DestinationPeripheral = destinationPeripheral; Destinations = destinations; }
public IrqAttribute SingleAttributeWithInheritedPosition(SingleOrMultiIrqEnd source, IrqReceiver destinationPeripheral, SingleOrMultiIrqEnd destination) { var copy = SerializationProvider.Instance.DeepClone(this); copy.Sources = new[] { source }; copy.Destinations = new[] { new IrqDestinations(destinationPeripheral, new[] { destination }) }; return(copy); }