C# Frequently Asked Questions

The C# team posts answers to common questions

What's the difference between an event and a delegate?

Put simply, an event gives more limited access than a delegate. If an event is made public, code in other classes can only add or remove handlers for that event; they can't necessarily fire it, find out all the handlers for it, or remove handlers they don't know about. Events also allow more flexibility in terms of how the handlers are stored. For more details on this, see Eric Gunnerson's article on the topic.

[Author: Jon Skeet]

Published Friday, March 12, 2004 12:18 AM by CSharpFAQ

Comments

 

Chris Burrows .NET Blog said:

March 16, 2004 5:10 AM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker