public void Update_Except_States(Port otherPort) { this.Name = otherPort.Name; this.Description = otherPort.Description; this.Type = otherPort.Type; this.Semantics = otherPort.Semantics; this.ioDirection = otherPort.ioDirection; this.PortKey = otherPort.PortKey; this.ConfFlags = otherPort.ConfFlags; this.PortModelId = otherPort.PortModelId; }
public void Update_Except_States(Port otherPort) { this.Name = otherPort.Name; this.Description = otherPort.Description; this.Type = otherPort.Type; this.Semantics = otherPort.Semantics; DebugEx.Assert(otherPort.ioDirection != ioPortDirection.Undefined, $"Undefined IO direction for port {otherPort.PortKey}"); if (otherPort.ioDirection != ioPortDirection.Undefined) { this.ioDirection = otherPort.ioDirection; } this.PortKey = otherPort.PortKey; this.ConfFlags = otherPort.ConfFlags; this.PortModelId = otherPort.PortModelId; }