예제 #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
 public JstpGenModel(IEnumerable<JstpDescInterface> interfaces)
 {
     if (interfaces == null) throw new ArgumentNullException("interfaces");
     Info = new JstpGenInfo();
     Interfaces = interfaces.Select(_ => new JstpGenInterface(_)).ToArray();
 }