Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 17th, 2004, 07:23 AM
Registered User
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to shuicanyi Send a message via AIM to shuicanyi Send a message via MSN to shuicanyi Send a message via Yahoo to shuicanyi
Default what is deletegate?(deletegate/wrong?)

what is deletegate?
deletegate(this word wrong?)
i can't understand! help me?

 can you give ne an example?
 thank u!

Msn:[email protected]
 
Old January 17th, 2004, 08:04 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not too much into this too, however it is something like pointer to function in C++. Have a look at this thread...

http://p2p.wrox.com/topic.asp?TOPIC_ID=7466

Jacob.

 
Old January 17th, 2004, 08:31 AM
Registered User
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to shuicanyi Send a message via AIM to shuicanyi Send a message via MSN to shuicanyi Send a message via Yahoo to shuicanyi
Default

to-Jacob

Thank u !


Msn:[email protected]
 
Old January 19th, 2004, 04:23 PM
Authorized User
 
Join Date: Jul 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Indian Ocean Send a message via Yahoo to Indian Ocean
Default

Delegates are a kind of type safe function pointers which are actually declared as class derived from System.MulticastDelegate. There are few rules how to write that class. First you must declare .ctor and Invoke methods, if you like to have asynchronous callback involved there are two more methods just for that case BeginInvoke and EndInvoke. Except for these two or four methods nothing else should be declared and these declarations must be without implementation (empty body). This is what it looks like:

    .method public hidebysig specialname rtspecialname
    instance void .ctor(object 'object',
    native int 'method') runtime managed
    {
    } // end of method WildCard::.ctor

    .method public hidebysig virtual instance int32
    Invoke() runtime managed
    {
    } // end of method WildCard::Invoke


Indian Ocean
"Rago Me Daudate Firne Ke Hum Nahi Kayal;
Jo Aankh Hi Se Na Tapka To Fir Lahoo Kya!"





Similar Threads
Thread Thread Starter Forum Replies Last Post
Something Wrong TiDeMaN Beginning PHP 1 November 16th, 2005 06:45 AM
Don't know where have gone wrong hoailing22 ASP.NET 1.0 and 1.1 Basics 1 May 20th, 2005 07:06 AM
Where did I go wrong??? ahc2inc VB.NET 2002/2003 Basics 3 September 28th, 2004 08:19 PM
Right or wrong? ÕÅÃÍ C++ Programming 6 February 27th, 2004 02:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.