Horje
Thread.Sleep() without freezing the UI Code Example
Thread.Sleep() without freezing the UI
private void someMethod()
  TO
 private async void someMethod()
 await Task.Delay(milliseconds);

This makes it an asynchronous method and will run asynchronously from your UI thread.
Note that this is only supported in the Microsoft .NET framework 4.5 and higher.




Csharp

Related
jquery: return true or false if the element is present in the DOM or not Code Example jquery: return true or false if the element is present in the DOM or not Code Example
how to pass object as test case in nunit c# Code Example how to pass object as test case in nunit c# Code Example
c# int cast error Code Example c# int cast error Code Example
get the next letter after specific character in c# Code Example get the next letter after specific character in c# Code Example
sort number in dynamo Code Example sort number in dynamo Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10