Profile Picture
IT Made Easy
The site provides some rough IT Notes that make your life easier. The site currently has notes on HTML, CSS, Regex, OOPS, JS, JQuery, PHP, Java, ASP.NET, C#, Database, Linux, URL Rewrite, SEO, Project Management and Hosting. Please do share this site if you like.

Delegate

Next
Next
  • It is similar to function pointer and is type safe
  • It dynamically wires up a method caller to its target method
  • It helps in Writing Plug-in Methods
  • A delegate can have more specific parameter types than its method target. This is called contravariance.
  • The return type of a delegate can be less specific than the return type of its target method. This is called covariance
  • Func and Action delegates
  • Internally System.Delegate acts as base for System.MulticastDelegate which has Target (Class = null for static) and Method which holds instance of MethodInfo class for the method
  • Anonymous delegate: delegate del = delegate(params){};

IT Notes

by VinodSebastian



IT Downloads


Catalogue