public void Add(NetlistContainer netlistContainer) { if (Contains(netlistContainer.Name)) { throw new ArgumentException(this + ": A netlist container with the name " + netlistContainer.Name + " has already been added"); } m_netlistContainer.Add(netlistContainer); }
public NetlistContainer Get(string netlistContainerName) { NetlistContainer netlistContainer = m_netlistContainer.FirstOrDefault(m => m.Name.Equals(netlistContainerName)); if (netlistContainer == null) { throw new ArgumentException("A netlist container with the name " + netlistContainerName + " has not been added"); } return(netlistContainer); }
public bool Contains(string netlistContainerName) { NetlistContainer probe = m_netlistContainer.FirstOrDefault(macro => macro.Name.Equals(netlistContainerName)); return(probe != null); }