Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: TResult Apply<TSource, TResult>(this TSource, Func<TSource, TResult>)

  • Declared in: RT.Util.Ut

Declaration

public static TResult Apply<TSource, TResult>(
    this TSource source,
    Func<TSource, TResult> func
)

Summary

Executes the specified function with the specified argument.

Generic type parameters

TSource Type of the argument to the function.
TResult Type of the result of the function.

Parameters

this TSourcesource The argument to the function.
Func<TSource, TResult>func The function to execute.

Returns

The result of the function.