Пример #1
0
        /// <summary>
        ///     Creates a copy of the range in the designated dictionary. The namespace structure is copied over.
        ///     The new range is set to update this one.
        /// </summary>
        /// <param name="dictionary">The target dictionary of the copy</param>
        /// <returns></returns>
        public Range CreateRangeUpdate(Dictionary dictionary)
        {
            Range retVal = (Range)Duplicate();

            retVal.setUpdates(Guid);
            retVal.ClearAllRequirements();

            String[] names = FullName.Split('.');
            names = names.Take(names.Count() - 1).ToArray();
            NameSpace nameSpace = dictionary.GetNameSpaceUpdate(names, Dictionary);

            nameSpace.appendRanges(retVal);

            return(retVal);
        }