コード例 #1
0
ファイル: JstpModel.cs プロジェクト: ErwinCat/jstp
 public JstpModel([NotNull] IDictionary<InterfaceId, JstpDescInterface> ifcToGenerate)
 {
     if (ifcToGenerate == null) throw new ArgumentNullException("ifcToGenerate");
     Info = new JstpGenInfo();
     Interfaces = ifcToGenerate.Select(_ => new JstpGenInterface(_.Value)).ToArray();
 }
コード例 #2
0
ファイル: JstpGenModel.cs プロジェクト: ErwinCat/jstp
 public JstpGenModel(IEnumerable<JstpDescInterface> interfaces)
 {
     if (interfaces == null) throw new ArgumentNullException("interfaces");
     Info = new JstpGenInfo();
     Interfaces = interfaces.Select(_ => new JstpGenInterface(_)).ToArray();
 }