public static Module CreateInstance(XMileModel model, string name, ConnectCollection connects) { if (model == null) { throw new ArgumentNullException(nameof(model)); } var variable = new Module(name, connects, model.Name); model.Variables.Add(variable); return(variable); }
public Module(string name, ConnectCollection connects, string model) : this(name, model) { Connects = connects; }