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