コード例 #1
0
        public ParamPack Merge(ParamPack other)
        {
            var pack = new ParamPack(Name, _parameters);
            pack.MergeInternal(other._parameters);

            return pack;
        }
コード例 #2
0
        public ParamPack Merge(ParamPack other)
        {
            var pack = new ParamPack(Name, _parameters);

            pack.MergeInternal(other._parameters);

            return(pack);
        }
コード例 #3
0
        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)));
        }
コード例 #4
0
        public ParamSet New(string name, ParamPack pack)
        {
            if (_packs.ContainsKey(name))
                _packs[name] = pack;
            else
                _packs.Add(name, pack);

            return new ParamSet(_packs);
        }
コード例 #5
0
        public ParamSet New(string name, ParamPack pack)
        {
            if (_packs.ContainsKey(name))
            {
                _packs[name] = pack;
            }
            else
            {
                _packs.Add(name, pack);
            }

            return(new ParamSet(_packs));
        }