Write a Program for Concat to create one sequence of Data Rows that contains DataTabless Data Rows, one after the other?
Submitted by: Administrator(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"]);
}
}
Submitted by: Administrator
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"]);
}
}
Submitted by: Administrator
Read Online LINQ Job Interview Questions And Answers
Top LINQ Questions
☺ | What is LINQ? |
☺ | What is a Lambda expression? |
☺ | What is the extension of the file, when LINQ to SQL is used? |
☺ | What is the LINQ file extension that interacts with Code Behind objects. |
☺ | How LINQ is beneficial than Stored Procedures? |
Top Application Program Categories
☺ | AutoCAD Interview Questions. |
☺ | Microsoft Office Interview Questions. |
☺ | Microsoft Outlook Interview Questions. |
☺ | Microsoft Excel Interview Questions. |
☺ | WPF Interview Questions. |