Func<T>
Func is a family of .NET generic delegate types representing functions with specified parameter types and a return type.
Functional Programming in C#, Second Edition
Func is a family of .NET generic delegate types representing functions with input parameters and a return value.
- How it is used
- Represents typed functions and composes deferred computations.
- How deep it goes
- Explains delegate signatures and implements Map and Bind for parameterless functions.
- Examples
- Uses a Person-to-Greeting delegate signature and a deferred transformation that prints when invoked.
- What you can do after
- Build Map and Bind for Func<T> and use them to compose deferred computations.
Read how Functional Programming in C#, Second Edition explains Func<T> →
ASP.NET Core in Action, 3e
Func<Task> is a .NET delegate type representing a parameterless function that returns an asynchronous Task.
- How it is used
- Controls whether and when later ASP.NET Core middleware executes.
- How deep it goes
- Explains continuation and short-circuiting with middleware examples, but does not detail delegate implementation internals.
- Examples
- Uses a /ping health check and response-header middleware to demonstrate continuation and callback timing.
- What you can do after
- Apply it via ASP.NET Core Use middleware to continue or short-circuit request processing.
Related concepts
- lazy evaluationkind of · Lazy evaluation is an evaluation strategy that defers computing an expression until its value is needed, potentially avoiding the computation entirely.
- bindused by · Bind is an operation that chains a value in a computational context to a function returning another value in that context, flattening the resulting nested context.
- delegatekind of · A delegate is a type-safe callable reference to one or more methods whose signatures match a specified delegate type.
- factoryproduced by · A factory is a function, method, or component that creates and returns values or objects while encapsulating construction or selection logic.
Questions about Func<T>
What is Func<T>?
Func is a family of .NET generic delegate types representing functions with specified parameter types and a return type.
Which Manning books explain Func<T>?
Functional Programming in C#, Second Edition and ASP.NET Core in Action, 3e.
What is Func<T> a kind of?
Func<T> is a kind of lazy evaluation. Lazy evaluation is an evaluation strategy that defers computing an expression until its value is needed, potentially avoiding the computation entirely.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

