public ParamPack Merge(ParamPack other) { var pack = new ParamPack(Name, _parameters); pack.MergeInternal(other._parameters); return pack; }
public ParamPack Merge(ParamPack other) { var pack = new ParamPack(Name, _parameters); pack.MergeInternal(other._parameters); return(pack); }
public ParamPack Merge(IEnumerable <string> names) { var filteredPacks = from name in names select _packs[name]; return(filteredPacks .Aggregate(ParamPack.Create(""), (aggr, cur) => aggr.Merge(cur))); }
public ParamSet New(string name, ParamPack pack) { if (_packs.ContainsKey(name)) _packs[name] = pack; else _packs.Add(name, pack); return new ParamSet(_packs); }
public ParamSet New(string name, ParamPack pack) { if (_packs.ContainsKey(name)) { _packs[name] = pack; } else { _packs.Add(name, pack); } return(new ParamSet(_packs)); }