Showing posts with label Can we use delegates for asynchronous method calls in C#?. Show all posts
Showing posts with label Can we use delegates for asynchronous method calls in C#?. Show all posts

Thursday, November 12, 2015

Can we use delegates for asynchronous method calls in C#?

Yes. We can use delegates for asynchronous method calls.

What are the three types of Generic delegates in C#?

Below are the three types of generic delegates in C# -
  • Func
  • Action
  • Predicate

What are the types of delegates in C#?

Below are the uses of delegates in C# -
  • Single Delegate
  • Multicast Delegate
  • Generic Delegate

In try block if we add return statement whether finally block is executed in C#?

Yes. Finally block will still be executed in presence of return statement in try block.

Write a program to reverse a string? using System; namespace ConsoleApp1 {     class Program     {         static void Main(string[] args)  ...