public ElemKey(Schematic.Element elem) { if (elem == null) { throw new ArgumentNullException("elem"); } this.type = elem.type; this.name = elem.name; this.nodeId = elem.nodeId; }
public signals.ICircuitElement Entry(Schematic.Element elem) { if (elem == null) { throw new ArgumentNullException("elem"); } if (elem.circuitId == 0) { throw new ArgumentException("Element has no circuit ID", "elem"); } return(Entry(elem.circuitId)); }