Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need More Info On Delegates
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01385016
Message ID:
01385037
Views:
29
>Clear as mud.

Sorry, I tried <g>

>
>I guess I'm thinking back to the days of VB6, when where you needed to raise an event, you did:
>
>
>public event MyEvent();
>
>private sub SomeSum()
>    raise MyEvent()
>end sub
>
>
>There was no delegate here, at least none that I Can see.

Well, that's just the thing. In .NET they're exposing a bit more of the plumbing when you see a delegate. If I subscribed to an event, how does VB know what methods to call back to? It must maintain a list somewhere, right? Even if you don't have access to it, it's there, somewhere. Now imagine that list is a class (a special type, one that can't be subclasses from) and you have access to it - that's all a delegate is.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform