Skip to Content
Programming PERL in the .NET Environment
book

Programming PERL in the .NET Environment

by Yevgeny Menaker, Michael Saltzman, Robert J. Oberg
September 2002
Intermediate to advanced content levelIntermediate to advanced
496 pages
10h
English
Addison-Wesley Professional
Content preview from Programming PERL in the .NET Environment

More About Delegates

Our threading example illustrated using a delegate of type ThreadStart. We pass such a delegate to the constructor of the Thread class. When we call the Start method of the thread, the callback function that is wrapped by the delegate will be called.

A powerful feature of delegates is that you can combine them. Delegates can be multicast, in which they have an invocation list of methods. When such a delegate is called, all the methods on the invocation list will be called in turn. The Delegate.Combine method can be used to combine the invocation methods of two delegate objects, and Delegate.Remove can be used to remove methods.[4]

[4] In C# you can use the overloaded + and – operators to combine and remove delegate methods. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Sams Teach Yourself Perl in 21 Days, Second Edition

Sams Teach Yourself Perl in 21 Days, Second Edition

Laura Lemay, Rafe Colburn
Pro Perl

Pro Perl

Peter Wainwright

Publisher Resources

ISBN: 0130652067Purchase book