Class
FuncExtensions

Holds extension methods for delegates.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

cs-api-definition
public static class FuncExtensions

Inheritance: objectFuncExtensions

Methods

ToTypedResultFunc<T, TResult>(Func<T, TResult>)

Converts the given function to an untyped one that has a strongly-typed return value.

Declaration

cs-api-definition
public static Func<object, TResult> ToTypedResultFunc<T, TResult>(Func<T, TResult> func)

Parameters

func

Func<T, TResult>

The function that will be converted.

Returns

Func<object, TResult>

Untyped function with a strongly-typed return value for the given func

ToUntypedBooleanFunc<T>(Func<T, bool>)

Converts the given function to untyped one.

Declaration

cs-api-definition
public static Func<object, bool> ToUntypedBooleanFunc<T>(Func<T, bool> func)

Parameters

func

Func<T, bool>

The func.

Returns

Func<object, bool>

ToUntypedFunc<T, TResult>(Func<T, TResult>)

Converts the given function to untyped one.

Declaration

cs-api-definition
public static Func<object, object> ToUntypedFunc<T, TResult>(Func<T, TResult> func)

Parameters

func

Func<T, TResult>

The function that will be converted.

Returns

Func<object, object>

Untyped function for the given func

ToUntypedTwoParameterFunc<T1, T2, TResult>(Func<T1, T2, TResult>)

Converts the given function to untyped one.

Declaration

cs-api-definition
public static Func<object, object, object> ToUntypedTwoParameterFunc<T1, T2, TResult>(Func<T1, T2, TResult> func)

Parameters

func

Func<T1, T2, TResult>

The function that will be converted.

Returns

Func<object, object, object>

Untyped function for the given func