If you want to compile your typescript file and getting blow error the solution for this error is below.
Solution :-Open you PowerShell window in administrator mode.
If you want to compile your typescript file and getting blow error the solution for this error is below.
Solution :-“FizzBuzz” is an interview question asked during interviews to check logical skills of developers.
1) What's the difference between Invoke() and BeginInvoke() on delegate?
The answer are as below
Delegate.Invoke
: Executes synchronously, on the same thread.Delegate.BeginInvoke
: Executes asynchronously, on a threadpool
thread.Invoke
blocks the caller until the scheduled action finishes.BeginInvoke
your loop is going to run super fast since BeginInvoke
returns right away. This means that you're adding lot and lots of actions to the message queue. You're adding them much faster than they can actually be processed. This means that there's a long time between when you schedule a message and when it actually gets a chance to be run.Output:Is main thread is alive ? : True
3) How to subscribe to and unsubscribe from events In C#.
Ans:-