26.02.2015 Views

C#.Net Migration - A2Z Dotnet

C#.Net Migration - A2Z Dotnet

C#.Net Migration - A2Z Dotnet

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Target use of delegate<br />

• Target defines method with signature specified by delegate<br />

– parameters and return type must match<br />

– method name not constrained<br />

delegate defines<br />

required signature<br />

target<br />

method signature<br />

matches delegate<br />

delegate void GradeChange(double gpa);<br />

class Parent<br />

{<br />

public void Report(double gpa)<br />

{<br />

...<br />

}<br />

}<br />

69

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!