Exemplo n.º 1
0
        // --------------------------------------------------
        // CLONING
        // --------------------------------------------------

        #region Cloning

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

            if (DefinitionFilter != null)
            {
                specification.DefinitionFilter = DefinitionFilter.Clone() as DataValueFilter;
            }
            return(specification);
        }
Exemplo n.º 2
0
        // Specification ---------------------

        /// <summary>
        /// Creates a new specification.
        /// </summary>
        /// <returns>Returns the new specifcation.</returns>
        public override IDataElementSpec NewSpecification()
        {
            return(Specification = new SourceElementSpec());
        }