Difference between delegate and events, DOT NET Programming

What is the difference between delegate and events?

Actually events use delegates in the bottom. But they also add an extra layer on the delegates, hence forming the publisher and the subscriber model.

As the delegates are function to pointers they can move across any clients. So any of the clients can remove or add events, which can be much confusing. But the events provide the extra protection by adding the layer and making it a publisher and subscriber model.

Posted Date: 9/22/2012 3:08:00 AM | Location : United States







Related Discussions:- Difference between delegate and events, Assignment Help, Ask Question on Difference between delegate and events, Get Answer, Expert's Help, Difference between delegate and events Discussions

Write discussion on Difference between delegate and events
Your posts are moderated
Related Questions
What is XPath? XPath stands for XML Path. It is a language used to access dissimilar parts of an XML document, such as elements and attributes.

What is a DataReader object? The DataReader object helps in retrieving the data from a database in a forward-only, read-only mode. The base class for all the DataReader objects

What are the differences between ASP and ASP .Net ?  ASP: Code is Interpreted ASP.NET: Code is Compiled   ASP: Business Logic and Presentation Logic are in a one

IT governance defined In this section, a short literature survey will be conducted. The results will be presented in a final comparative table. Before starting defining IT gove

What is the Scope of public/private/friend/protected/protected friend? Scope of public/private/friend/protected/protected friend Visual Basic/Visual C# Public/public all

I need CloudFlare API interface to C# Project Description: We require a small piece of C# .NET code, integrated in an object, that will interface with CloudFlare's API and ge

What do you understand by SOAP encoding? The Serialization of the types, such as integers and strings, inside a SOAP message is known as encoding. The SOAP objects use XML elem

What is Delegation? A delegate seems like a strongly type function pointer. Delegates can request the methods that they reference without making explicit calls to those methods

Require an expert Web Developer Our small business wants an experienced web developer to provide ongoing technical support for two websites. Experience with ASP.NET is a must.

How do we enable SQL Cache Dependency? Below are some of the steps to enable the SQL Cache Dependency:- Enable the notifications for database. Enable the notificatio