Table.Clone C# (CSharp) Method

Clone() public method

public Clone ( ) : Table,
return Table,
        public Table Clone()
        {
            Table cloned = new Table();
            cloned.Name = Name;
            cloned.Build = Build;
            cloned.Fields = new List<Field>();
            foreach (Field f in Fields)
                cloned.Fields.Add(f.Clone());
            return cloned;
        }

Usage Example

Beispiel #1
0
        /// <summary>
        /// 传递多个Table
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        async void SetTableDict(object sender, RoutedEventArgs e)
        {
            Dict dtl = new Dict();
            var  tbl = _tbl.Clone();

            tbl.AcceptChanges();
            dtl["table2"] = tbl;
            Dict result = await AtTest.SetTableDict(dtl);

            _tbInfo.Text = result.Count == 1 ? "调用成功!" : "调用不成功!";
        }
All Usage Examples Of Table::Clone
Table