TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Filippo Martinelli
NA
16
0
Delegate shortcut
Oct 9 2009 3:15 AM
In all the books and articles I read the delegate are assigned using the new operator: public delegate ... anUsufulDelegate (...); anUsufulDelegate doSomething; doSomething = new anUsufulDelegate(a function with a matching signature); But I can more easily write: doSomething = a function with a matching signature; Is the second version simply a shortcut for the one with the new operator and the type of the delegate ? A fast look with a disassembler seems to confirm this. Thanks Filippo
Reply
Answers (
1
)
prevent click with mouse hook
IE Toolbar