Click here to Skip to main content
16,010,876 members
Home / Discussions / C#
   

C#

 
GeneralRe: Excel 2000 Pin
Philip Fitzsimons22-Apr-03 11:42
Philip Fitzsimons22-Apr-03 11:42 
GeneralRe: Excel 2000 Pin
Eric Gunnerson (msft)23-Apr-03 11:24
Eric Gunnerson (msft)23-Apr-03 11:24 
GeneralRe: Excel 2000 Pin
Philip Fitzsimons23-Apr-03 23:35
Philip Fitzsimons23-Apr-03 23:35 
QuestionFocusless button? Pin
Steven Behnke21-Apr-03 14:18
Steven Behnke21-Apr-03 14:18 
AnswerRe: Focusless button? Pin
Steven Behnke22-Apr-03 7:02
Steven Behnke22-Apr-03 7:02 
General.config Pin
Kant21-Apr-03 11:48
Kant21-Apr-03 11:48 
GeneralRe: .config Pin
Paresh Gheewala21-Apr-03 12:32
Paresh Gheewala21-Apr-03 12:32 
QuestionWhat does "event" do to a delegate member? Pin
Alvaro Mendez21-Apr-03 11:38
Alvaro Mendez21-Apr-03 11:38 
I've been reading up on delegates and events lately and I'm really confused as to what the event keyword does. Does it actually do anything?

For example, I have this piece of code inside my class:

public delegate bool Validator(char c);

Then I define two members:

protected Validator dVal;
protected event Validator eVal;


And I use them:

dVal += new Validator(Char.IsDigit);
eVal += new Validator(Char.IsDigit);


How is eVal different than dVal? They both behave identically.

I appreciate your enlightenment. Smile | :)

Regards,
Alvaro


When birds fly in the right formation, they need only exert half the effort. Even in nature, teamwork results in collective laziness. -- despair.com
AnswerRe: What does "event" do to a delegate member? Pin
Eric Gunnerson (msft)21-Apr-03 13:18
Eric Gunnerson (msft)21-Apr-03 13:18 
GeneralRe: What does "event" do to a delegate member? Pin
Alvaro Mendez22-Apr-03 5:03
Alvaro Mendez22-Apr-03 5:03 
GeneralProblem with shortcuts Pin
monrobot1321-Apr-03 10:30
monrobot1321-Apr-03 10:30 
GeneralRequired designer variable "components" Pin
Arun Bhalla21-Apr-03 10:16
Arun Bhalla21-Apr-03 10:16 
GeneralGot Focus Pin
aoyee21-Apr-03 8:57
aoyee21-Apr-03 8:57 
Generalprecision problems with double type Pin
sammyh21-Apr-03 8:19
sammyh21-Apr-03 8:19 
GeneralRe: precision problems with double type Pin
Stephane Rodriguez.21-Apr-03 8:50
Stephane Rodriguez.21-Apr-03 8:50 
GeneralRe: precision problems with double type Pin
sammyh21-Apr-03 9:19
sammyh21-Apr-03 9:19 
GeneralRe: precision problems with double type Pin
sammyh21-Apr-03 9:59
sammyh21-Apr-03 9:59 
GeneralRe: precision problems with double type Pin
sammyh21-Apr-03 11:33
sammyh21-Apr-03 11:33 
GeneralAccessing DataSet from A While in B. Pin
Anonymous21-Apr-03 6:29
Anonymous21-Apr-03 6:29 
GeneralRe: Accessing DataSet from A While in B. Pin
Stephane Rodriguez.21-Apr-03 8:18
Stephane Rodriguez.21-Apr-03 8:18 
GeneralFormatting numbers Pin
Alvaro Mendez21-Apr-03 5:01
Alvaro Mendez21-Apr-03 5:01 
GeneralRe: Formatting numbers Pin
Stephane Rodriguez.21-Apr-03 8:17
Stephane Rodriguez.21-Apr-03 8:17 
GeneralRe: Formatting numbers Pin
Alvaro Mendez21-Apr-03 9:41
Alvaro Mendez21-Apr-03 9:41 
GeneralRe: Formatting numbers Pin
Stephane Rodriguez.21-Apr-03 10:15
Stephane Rodriguez.21-Apr-03 10:15 
GeneralRe: Formatting numbers Pin
Alvaro Mendez21-Apr-03 11:04
Alvaro Mendez21-Apr-03 11:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.