You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The application connects to a Microsoft SQL Server 2005 database.
The application uses a strongly typed DataTable named Users that stores information about users. The application contains an import feature that returns a list of users. This list is stored in an untyped DataTable named newUsers. The column order and column types of the newUsers DataTable are same as that of the Users DataTable.
You need to copy the information from the newUsers DataTable to a typed DataTable named usersTable.
Which code segment should you use?
A.
usersTable.Merge(newUsers);
B.
newUsers.Merge(usersTable);
C.
foreach(DataRow row in newUsers.Rows)
{
usersTable.Rows.Add(row);
}
D.
newUsers.WriteXml("temp.xml");
usersTable.ReadXml("temp.xml");