What are delegates?

DWQA QuestionsCategory: C SharpWhat are delegates?
Editor Staff asked 3 months ago

What are delegates?

1 Answers
Editor Staff answered 3 months ago

Delegates are the same are function pointers in C++, but the only difference is that they are type-safe, unlike function pointers. Delegates are required because they can be used to write much more generic type-safe functions.