Error!
Success!

Passing Delegates as Parameters in C#

0
kicks

Passing Delegates as Parameters in C#  (Unpublished)

C# delegates are fun to use. They let you encapsulate a bit of logic in a nice, neat little object that behaves like a method. All you have to do is declare the signature of the method that the delegate can reference without having to specify the actual method itself. This allows you to define how a method should be used but defer its implementation to another place in the application, giving it a polymorphic behavior. You can call the delegate directly or pass it as a parameter to another method, thereby “delegating” its functionality...


Kicked By:
Drop Kicked By: