Can i use TolistAsync() when doing LINQ to object

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
var list10Qk = dt10QkBogey.AsEnumerable()
.Select(row => new PeriodicalData
{
Section = (row.Field<string>("TabName")).ToString(),
LineItem = (row.Field<string>("StandardLineItem")).ToString(),
XFundCode = (row.Field<string>("XFundCode")).ToString(),
StandardDate = (row.Field<string>("StandardDate")).ToString(),
StandardValue = (row.Field<string>("StandardValue")).ToString()
}).ToList();

here is a code snippet and this way i populate my list using ToList(). so i want to know can i use TolistAsync() to populate my list instead of TolIst()?

now i am using dotnet v4.5.2. so tell me in which version TolistAsync() available ?

when to use TolistAsync() ?

thanks

Continue reading...
 
Back
Top