public JstpModel([NotNull] IDictionary<InterfaceId, JstpDescInterface> ifcToGenerate) { if (ifcToGenerate == null) throw new ArgumentNullException("ifcToGenerate"); Info = new JstpGenInfo(); Interfaces = ifcToGenerate.Select(_ => new JstpGenInterface(_.Value)).ToArray(); }
public JstpGenModel(IEnumerable<JstpDescInterface> interfaces) { if (interfaces == null) throw new ArgumentNullException("interfaces"); Info = new JstpGenInfo(); Interfaces = interfaces.Select(_ => new JstpGenInterface(_)).ToArray(); }