Пример #1
0
        /// <summary>
        /// Initializes a new carrier element.
        /// </summary>
        /// <param name="name">The name to consider.</param>
        /// <param name="id">The ID to consider.</param>
        /// <param name="definitionUniqueId ">The definition unique ID to consider.</param>
        public static CarrierElement CreateCarrier(
            string name,
            string id = null,
            string definitionUniqueId = null)
        {
            var element = new CarrierElement(name, id)
            {
                DefinitionUniqueId = definitionUniqueId,
            };

            return(element);
        }
Пример #2
0
        // --------------------------------------------------
        // CLONING
        // --------------------------------------------------

        #region Cloning

        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns>Returns a cloned instance.</returns>
        public override object Clone(params string[] areas)
        {
            CarrierElement dataCarrierElement = base.Clone(areas) as CarrierElement;

            return(dataCarrierElement);
        }