Beispiel #1
0
        /// <summary>
        /// 深复制该对象
        /// </summary>
        /// <returns></returns>
        public MD_InputEntity DeepClone()
        {
            MD_InputEntity ret = new MD_InputEntity();

            ret.InputModelName = this.InputModelName;
            ret.IsNewData      = this.IsNewData;
            ret.IsNewFlow      = this.IsNewFlow;
            if (this.ChildInputData != null)
            {
                Dictionary <string, string> cInputData = new Dictionary <string, string>();
                foreach (var input in this.ChildInputData)
                {
                    cInputData.Add(input.Key, input.Value);
                }
                ret.ChildInputData = cInputData;
            }

            if (this.InputData != null)
            {
                Dictionary <string, string> inputData = new Dictionary <string, string>();
                foreach (var input in this.InputData)
                {
                    inputData.Add(input.Key, input.Value);
                }
                ret.InputData = inputData;
            }

            return(ret);
        }
Beispiel #2
0
 public MD_Input()
 {
     MD_Define = new MD_InputModel();
     MD_Data   = new MD_InputEntity();
 }