Func<(Of <(<'T, TResult>)>)> Delegate
Encapsulates a method that has one parameter and returns a value of the type specified by the TResult parameter.To browse the .NET Framework source code for this type, see the Reference Source.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[NameAttribute] [IgnoreGenericAttribute] [IgnoreCastAttribute] [ExternalAttribute] public delegate TResult Func<T, TResult>( T arg )
<NameAttribute> _ <IgnoreGenericAttribute> _ <IgnoreCastAttribute> _ <ExternalAttribute> _ Public Delegate Function Func(Of T, TResult) ( _ arg As T _ ) As TResult
[NameAttribute] [IgnoreGenericAttribute] [IgnoreCastAttribute] [ExternalAttribute] generic<typename T, typename TResult> public delegate TResult Func( T arg )
Type Parameters
- T
- The type of the parameter of the method that this delegate encapsulates.This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
- TResult
- The type of the return value of the method that this delegate encapsulates.This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Parameters
- arg
- Type: T
The parameter of the method that this delegate encapsulates.