which one is use tuple or out varaible . which is best?
Anil Sharma1983
Posts
-
what is tuple in mvc -
display the time according the clien time zone asp.nethow to show datetime according to the client zone?
-
async and await in asp.netasync and await method not suitable in heavy traffic website
-
Documentation practicesdone
-
How To Show Dll code in asp.netyou can view the code using net reflector or jetbrains resharper decompiler
-
After adding ASP.NET login controls, how do I make it functional?Please follow this link given below and configure membership https://msdn.microsoft.com/en-us/library/ms731049%28v=vs.110%29.aspx[^]
-
Why many developer hate asp.net? -
india news channel opnion poll and exit pollmost of news channel poll proved wrong what happened tommorrow
-
async and await conceptthanks Peter for your help
-
async and await conceptyes, i was thinking it should completed in 5 seconds. So please clarify to me await and async concept. thanks your help
-
async and await concepti am trying to understand async and await concept. so i am make sample program when i run this program take 8 seconds to execute if i execute without async and await it also take 8 second to execute. so what is wrong in this program.
protected async void btnSubmit_Click(object sender, EventArgs e)
{Response.Write(DateTime.Now.ToString("dd-MM-yyyy:hh:mm:ss") + " <br/>"); //dowork(); await Task.Run(() => dowork()); // await Task.Run(() => DoAnotherWork()); DoAnotherWork(); Response.Write(DateTime.Now.ToString("dd-MM-yyyy:hh:mm:ss") + " <br/>"); // btnSubmit.Text="Done it";
}
void dowork()
{
Thread.Sleep(5000);
}
void DoAnotherWork()
{
Thread.Sleep(3000);}