Answers

Question and Answer:

  Home  LINQ

⟩ Write a Program for Concat to create one sequence of Data Rows that contains DataTabless 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"]);

}

}

 178 views

More Questions for you: