This documentation is archived and is not being maintained.

Expression.GetFuncType Method

Creates a Type object that represents a generic System.Func delegate type that has specific type arguments.

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

public static Type GetFuncType(
	params Type[] typeArgs


Type: System.Type[]

An array of one to five Type objects that specify the type arguments for the System.Func delegate type.

Return Value

Type: System.Type
The type of a System.Func delegate that has the specified type arguments.


typeArgs contains less than one or more than five elements.


typeArgs is null.

typeArgs must contain at least one and at most five elements.

As an example, if the elements of typeArgs represent the types T1…Tn, the resulting Type object represents the constructed delegate type System.Func<T1,…,Tn> in C# or System.Func(Of T1,…,Tn) in Visual Basic.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5