You must Sign In to post a response.
  • Category: ASP.NET

    Convert C# code to LINQ

    How to convert this code into simple LINQ

    for (int i= 1; i< DataTable.Rows.Count; i++)
    {
    DataRow row = AnotherDataTable.NewRow();
    for (int j= 0; j< DataTable.Columns.Count; j++)
    {
    row[j]= CommonFunction(DataTable.Rows[i][j], AnotherDataTable.Columns[j].DataType);
    }
    }
  • #765739
    Hi

    you can go through

    "stackoverflow.com/questions/2736816/how-to-convert-this-foreach-loop-into-linq-code"

    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.


Sign In to post your comments