cs 3260
Download
Skip this Video
Download Presentation
C# Delegates

Loading in 2 Seconds...

play fullscreen
1 / 4

C# Delegates - PowerPoint PPT Presentation


  • 195 Views
  • Uploaded on

CS 3260. C# Delegates. C++ Function Pointers C# Method References Groundwork for Lambda Functions. Overview. Reference Type Type Declaration delegate void MyDelegate ( int ival , double dval ); Variable Declaration MyDelegate mdel = new MyDelegate ( MyMethod ); Method Declaration

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'C# Delegates' - harlan


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
overview
C++ Function Pointers

C# Method References

Groundwork for Lambda Functions

Overview
c delegates
Reference Type
  • Type Declaration
    • delegate void MyDelegate(intival, double dval);
  • Variable Declaration
    • MyDelegatemdel = new MyDelegate(MyMethod);
  • Method Declaration
    • void MyMethod(intiv,doubledv){ … }
  • Method Call via the Delegate
    • mdel(100,5.5);
  • Type-Safe
  • Can have generic parameters
C# Delegates
ad