siva nathan

siva nathan

  • 948
  • 828
  • 232.8k

need explanation C# below code

Dec 10 2020 7:23 AM
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 
 
 

Answers (3)