예제 #1
0
        public static NamedCellDictionary FromCells(IEnumerable <CellTuple> tuples)
        {
            var dic = new NamedCellDictionary();

            foreach (var tuple in tuples)
            {
                dic[tuple.Name] = tuple.Src;
            }
            return(dic);
        }
예제 #2
0
        public CellValueDictionary(NamedCellDictionary srcmap, Dictionary <string, string> dictionary)
        {
            if (srcmap == null)
            {
                throw new System.ArgumentNullException(nameof(srcmap));
            }

            this.srcmap = srcmap;

            this.Update(dictionary);
        }