Google-Apps
Hauptmenü

Post a Comment On: the urban canuk, eh

"Testing Asynchronous Logic"

2 Comments -

1 – 2 of 2
Anonymous Anonymous said...

Sounds interesting but I tried to use it and hit the issue about the code assuming events always have two arguments.

My event declaration looks like this:

public event Action EventOccured;

3:51 AM

Blogger bryan said...

I appreciate your comment and feedback, but respectfully an Action is not a valid event delegate. Best practices and well respected authorities outline that the event should publish who raised the event and any details surrounding that event.

Note that...

public event EventHandler EventOccurred;

...would satisfy best practices, and ...

foo.EventOccurred += (o,e) => CallMethod();

... would achieve the same effect of assigning an Action

10:12 AM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot