Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to explain delegate in an Interview [closed]

Tags:

c#

I know we have lot of similar type question in Stackoverflow, also I know what is delegate and how it works, but sometimes it's a bit difficult to explain delegate in interviews, any suggestion on how to explain it?

like image 910
user498432 Avatar asked Dec 29 '22 03:12

user498432


1 Answers

It's a strongly typed function pointer, essentially. It's a way to pass arbitrary code as a method parameter.

like image 101
Paul Avatar answered Jan 08 '23 07:01

Paul