Hi All,
can anyone explain why we use continuewith in C#
return await Task.Run(() =>
{
using (sample d=new sample())
{
classa obj=new classa();
obj.name=a.name;
obj.address=a.address;
return d.create().continuewith((b)=>
return 'welcome';
) ;
}
why we use create.continuewith and why we write inside Task.Run()
can anyone explain the above code


Amit GuptaRank #190 · 12.8K reputationPosted Dec 10, 2020, 2:42 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Dec 10, 2020, 3:02 AM EST
Mageshwaran RRank #411 · 6.1K reputationPosted Dec 10, 2020, 3:23 AM EST