コード例 #1
0
        public object Clone()
        {
            SQLParamCollections collections = new SQLParamCollections();

            foreach (SQLParamItem item in this)
            {
                SQLParamItem copyItem = new SQLParamItem();
                copyItem.ParamName = item.ParamName;
                copyItem.ParamType = item.ParamType;
                collections.Add(copyItem);
            }
            return(collections);
        }
コード例 #2
0
        public object Clone()
        {
            SnDataSet set = new SnDataSet();

            set.reportPath    = this.reportPath;
            set.dataSetID     = this.dataSetID;
            set.dataSetName   = this.dataSetName;
            set.dataSetType   = this.dataSetType;
            set.DataType      = this.DataType;
            set.sqlExpression = this.sqlExpression;
            FieldsCollections   collections2 = (FieldsCollections)this.fieldsList.Clone();
            SQLParamCollections collections3 = (SQLParamCollections)this.paramList.Clone();

            set.fieldsList = collections2;
            set.paramList  = collections3;
            return(set);
        }