Пример #1
0
 /// <summary>
 /// Performs a deep clone of a parameter mapping.
 /// </summary>
 /// <returns>A deep clone of current object.</returns>
 public object Clone()
 {
     ParameterMapping mapping = new ParameterMapping();
     mapping.InputParameter = (Parameter)this.InputParameter.Clone();
     mapping.InputParameterProperty = this.InputParameterProperty;
     mapping.OutputParameterProperty = this.OutputParameterProperty;
     return mapping;
 }
Пример #2
0
        /// <summary>
        /// Performs a deep clone of a parameter mapping.
        /// </summary>
        /// <returns>A deep clone of current object.</returns>
        public object Clone()
        {
            ParameterMapping mapping = new ParameterMapping();

            mapping.InputParameter          = (Parameter)this.InputParameter.Clone();
            mapping.InputParameterProperty  = this.InputParameterProperty;
            mapping.OutputParameterProperty = this.OutputParameterProperty;
            return(mapping);
        }
Пример #3
0
        /// <summary>
        /// Performs a deep clone of a parameter mapping.
        /// </summary>
        /// <returns>A deep clone of current object.</returns>
        public object Clone()
        {
            //ParameterMapping paramMapping = (ParameterMapping)this.MemberwiseClone();
            //return paramMapping;

            ParameterMapping mapping = new ParameterMapping();
            mapping.InputParameter = this.InputParameter;
            mapping.InputParameterProperty = this.InputParameterProperty;
            mapping.OutputParameterProperty = this.OutputParameterProperty;
            return mapping;
        }
Пример #4
0
        /// <summary>
        /// Performs a deep clone of a parameter mapping.
        /// </summary>
        /// <returns>A deep clone of current object.</returns>
        public object Clone()
        {
            //ParameterMapping paramMapping = (ParameterMapping)this.MemberwiseClone();
            //return paramMapping;

            ParameterMapping mapping = new ParameterMapping();

            mapping.InputParameter          = this.InputParameter;
            mapping.InputParameterProperty  = this.InputParameterProperty;
            mapping.OutputParameterProperty = this.OutputParameterProperty;
            return(mapping);
        }
Пример #5
0
        private static string GetMapping(ParameterMapping mapping)
        {
            string inputPath = mapping.InputParameter.Name;
            if (mapping.InputParameterProperty != null)
            {
                inputPath += ".get" + CodeNamer.PascalCase(mapping.InputParameterProperty) + "()";
            }

            string outputPath = "";
            if (mapping.OutputParameterProperty != null)
            {
                outputPath += ".set" + CodeNamer.PascalCase(mapping.OutputParameterProperty);
                return string.Format(CultureInfo.InvariantCulture, "{0}({1})", outputPath, inputPath);
            }
            else
            {
                return string.Format(CultureInfo.InvariantCulture, "{0} = {1}", outputPath, inputPath);
            }
        }
Пример #6
0
        /// <summary>
        /// Performs a deep clone of a parameter mapping.
        /// </summary>
        /// <returns>A deep clone of current object.</returns>
        public object Clone()
        {
            ParameterMapping paramMapping = (ParameterMapping)this.MemberwiseClone();

            return(paramMapping);
        }