View Single Post
Old 02-05-2005, 09:18 PM   #1 (permalink)
sirens song
P3'c Orion Aviator
 
Join Date: Sep 2004
Age: 30
Posts: 1,272
Default Delegate Information ?

I was looking though EventSink.cs to see how defaultly events are handled. I didnt get much help using that script as a referance, but I finished a system I was working on without it. In any case, I was curious about one thing.
What is the Delegate declaration do?.
I have looked it over and it is defined like a class or struct but I dont see any real benefit to it. Looks like it does generally what function pointers do in other language(C++) Im not sure and my C# books do not explain its uses and syntax.

Am I correct to assume it allows you to store a referance to a method inside the "delegate object", then pass that object to code to call the method.?

Thanks, Jamie
sirens song is offline   Reply With Quote