>> >>public class MyClass() >>{ >> DataRow table1; >> DataRow table2; >> >> public void AssignRow(DataRow input) >> { >> tableName = input.Table.TableName; // (could be "table1" or "table2") >> &tableName = input; //notice the clever use of VFP syntax... >> } >>} >>>>
>public class MyClass() >{ > DataRow table1; > DataRow table2; > > public void AssignRow(DataRow input) > { > tableName = input.Table.TableName; // why tableName doesn't have a type? > if(tableName == "table1") > table1 = input; > else > table2 = input; > } >} >