Write a Program for Concat to create one sequence of Data Rows that contains DataTables's Data Rows, one after the other.

Write a Program for Concat to create one sequence of Data Rows that contains DataTables's Data Rows, one after the other.

(C#)
Public void Datasetlinq()
{
   var numbersA = TestDS.Tables("NumbersA").AsEnumerable();
   var numbersB = TestDS.Tables("NumbersB").AsEnumerable();
   var allNumbers = numbersA.Concat(numbersB);
   Console.WriteLine("All numbers from both arrays:");
   foreach (object n_loopVariable in allNumbers)
   {
      n = n_loopVariable;
      Console.WriteLine(n["number"]);
   }
}
How can you find average of student marks from student tables (Columns are StudentID, Marks)?
How can you find average of student marks from student tables (Columns are StudentID, Marks)?
What is Lambda Expressions? How can we optimize our linq code using this Expression?
Lambda expressions can be considered as a functional superset of anonymous methods, providing the following additional functionality........
What is “OfType” in linq?
What is “OfType” in linq?
Post your comment