/// <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; }
/// <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); }
/// <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; }
/// <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); }
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); } }
/// <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); }