Skip to main content

What is a delegate?

Junior C#
Quick Answer A delegate is a type-safe function pointer รขโ‚ฌโ€ it holds a reference to a method and lets you call it indirectly. You can pass methods as parameters or store them in variables. Action, Func, and Predicate are the built-in generic delegates you will use most of the time.

Answer

A delegate is a type that holds a reference to a method.

It enables methods to be treated as objects and passed as parameters.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice