void PrepareExporting()
{
var columns = new List<TreeViewColumn>();
foreach(TreeViewColumn col in this.treeView.Columns) {
if ( this.Filter( col ) ) {
columns.add( col );
}
}
this.Export( columns.ToArray() );
}
void Export(TreeViewColumn[] columns)
{
// ...
}
编写将table_B中的unknown_id与table_A中的每个id列顺序匹配的函数的更好方法是什么?
伪代码/想法:
table_A: employee_id, internal_id, ...
table_B: unknown_id, department