Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 630 results for
delegates
- Page 1
Re: delegates
Programming
Software Development
18 Years Ago
by beuls
Delegates
are nothing but function pointers. You can read the book …++; } Console.WriteLine("{0}",dec); return dec; } //Declaration of
delegates
for both functions public delegate string deldectobin(int k); public…
Re: delegates...why ?
Programming
Software Development
12 Years Ago
by Tellalca
Delegates
are not very powerful indeed. As you said, it is … method, well you cannot call them in your method! So
delegates
enable you to define the master method and let others…
Re: delegates...why ?
Programming
Software Development
12 Years Ago
by kudvenkat
… new with c#. And i'm learning now about
delegates
. I understand what they are (i think...) and…is appreciated... tnx in adv. guys (-![/QUOTE] [B]
Delegates
are used extensively by Framework developers. At the following URL… you can find a practical use of
delegates
.[/B] [URL="http://venkatcsharpinterview.blogspot.com/2011…
Re: delegates...why ?
Programming
Software Development
12 Years Ago
by skatamatic
[QUOTE=Tellalca;1726268]
Delegates
are not very powerful indeed. As you said, it is … method, well you cannot call them in your method! So
delegates
enable you to define the master method and let others… appropriate.[/QUOTE] I think you are talking about events, exclusively.
Delegates
only define a single method. This could also be accomplished…
Re: delegates
Programming
Software Development
18 Years Ago
by kedar_challa
…QUOTE=Pscsc]Hello Im new to c# , I found
delegates
very difficult to understood can any one recommend a good…can make it simple to me ,, thank you[/QUOTE] Hi,
Delegates
are the objects that stores reference to methods. This is… similar to "Function Pointers" in vc++, but
delegates
are type safe. It is not much difficult to understand…
Re: delegates...why ?
Programming
Software Development
12 Years Ago
by Momerath
When you are building something that others will use (like the Forms class in the .NET library), you don't know what methods that will be called when things like events happen. So you use
delegates
.
Delegates
help your code be more reusable.
Re: delegates...why ?
Programming
Software Development
12 Years Ago
by Momerath
… where the event handlers are added to an array of
delegates
that the control (in this case a Button) maintains. When… those events happen, it goes through the array of
delegates
and calls each one. They (the people at Microsoft who…
Re: delegates...why ?
Programming
Software Development
12 Years Ago
by charlybones
This is indeed one of the best explanations about
Delegates
that I have seen on-line. Thanks to everyone who'… I see it (and I could be wrong) is that
Delegates
can be very useful, but depending on the application that…
delegates
Programming
Software Development
18 Years Ago
by Pscsc
Hello Im new to c# , I found
delegates
very difficult to understood can any one recommend a good sites , examples , books or any thing that can make it simple to me ,, thank you
delegates...why ?
Programming
Software Development
12 Years Ago
by u.j.chandler
… pretty new with c#. And i'm learning now about
delegates
. I understand what they are (i think...) and how to…
delegates and references to objects
Programming
Software Development
15 Years Ago
by BobLewiston
…the literature acknowledges that there are significant differences between
delegates
and the use of pointers to objects, I'… my current understanding, for comparison to the way
delegates
work: Steps to create and prepare to use …code] This seems very similar to how I understand
delegates
to work, which I've summarized below. Steps to…
Re: delegates and references to objects
Programming
Software Development
15 Years Ago
by Rashakil Fol
Your view of
delegates
and the mechanics of using them is very accurate. [QUOTE=… type: specify the signature (including return type) of methods that
delegates
of this type can point to. This is called "… you're talking about C# 1.1
delegates
, because there are new ways to create
delegates
in C# 2.0 and C…
Re: delegates and references to objects
Programming
Software Development
15 Years Ago
by BobLewiston
… you're talking about C# 1.1
delegates
, because there are new ways to create
delegates
in C# 2.0 and C…
Re: delegates and references to objects
Programming
Software Development
15 Years Ago
by Rashakil Fol
… reality it's a function pointer. We're ignoring anonymous
delegates
, though, for which there is no method name and more…
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by sknake
… give a simple example)? >> Never really.
Delegates
are provided for convenience of calling. For example the Button… button's click event. This also means that
delegates
make your assemblies extendible to other assemblies with having… code. >> what is the difference between
delegates
and calling a function? As Serkan pointed out the …
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by RehabReda
… methods for every math function you want to integrate. With
delegates
you only have to write one such method. In this… would be different, but you would still do it with
delegates
. Hope this makes it clear.:)[/QUOTE] THANKS ddanbe a lot…if u have found something on books which is describing
delegates
in a simple way please notify me with the name…
Delegates and Functions
Programming
Software Development
14 Years Ago
by RehabReda
… give a simple example)? 2-what is the difference between
delegates
and calling a function? 3-and i know that…
delegates
can refer to multiple methods so when i invoke it …
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by serkan sendur
… as a parameter[/COLOR] 2-what is the difference between
delegates
and calling a function? [COLOR="red"]delegate is…) into a single entity.[/COLOR]3-and i know that
delegates
can refer to multiple methods so when i invoke it…
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by RehabReda
… as a parameter[/COLOR] 2-what is the difference between
delegates
and calling a function? [COLOR="red"]delegate is…) into a single entity.[/COLOR]3-and i know that
delegates
can refer to multiple methods so when i invoke it…
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by RehabReda
… delegate (please give a simple example)? >> Never really.
Delegates
are provided for convenience of calling. For example the Button…'s the button's click event. This also means that
delegates
make your assemblies extendible to other assemblies with having no…
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by ddanbe
… methods for every math function you want to integrate. With
delegates
you only have to write one such method. In this… would be different, but you would still do it with
delegates
. Hope this makes it clear.:)
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by RehabReda
… super way to do it, but it works in explaining
delegates
(I hope) // The higher the "parts" the better…
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by ddanbe
… would even say it is essential and necessary to use
delegates
in this case! You integrate a [B]function F[/B…
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by RehabReda
… would even say it is essential and necessary to use
delegates
in this case! You integrate a [B]function F[/B…
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by serkan sendur
the best way to understand
delegates
is to have some knowledge about C. search for C function pointers, and you will have a good understanding of this delegate concept. It takes a while till you see it in action. Interfaces are also like that, you understand why they are useful when you see them in use.
Re: Delegates and Functions
Programming
Software Development
14 Years Ago
by RehabReda
[QUOTE=serkan sendur;963404]the best way to understand
delegates
is to have some knowledge about C. search for C …
Delegates throwing Null Exception
Programming
Software Development
17 Years Ago
by acezrwild817
… is started. How do I fix this. I have used
delegates
in this manner in other areas of my code and…
Delegates are function pointers
Programming
Software Development
15 Years Ago
by ddanbe
Way back years ago I tried to understand [B]
delegates
[/B]. See the snippet how I did it.
Delegates, garbage collector and threads problem
Programming
Software Development
13 Years Ago
by fernandomier
… may cause application crashes, corruption and data loss. When passing
delegates
to unmanaged code, they must be kept alive by the…
Re: delegates...why ?
Programming
Software Development
12 Years Ago
by u.j.chandler
@Momerath: Thanks for the quick reply...hmmm...not sure i fully get it though.. Do you mean like when microsoft built the .NET library, they didn't know what code you would want to run when (for example) a button is clicked in your application ? ...so that the ButtonOnClick method is added to the button_onclick_event_handler behind the scenes…
1
2
3
11
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC