New to Telerik UI for WPFStart a free 30-day trial

Holds extension methods for delegates.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public static class FuncExtensions

Inheritance: objectFuncExtensions

Methods

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

C#
public static Func<object, TResult> ToTypedResultFunc<T, TResult>(Func<T, TResult> func)
Parameters:funcFunc<T, TResult>

The function that will be converted.

Returns:

Func<object, TResult>

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

Converts the given function to untyped one.

C#
public static Func<object, bool> ToUntypedBooleanFunc<T>(Func<T, bool> func)
Parameters:funcFunc<T, bool>

The func.

Returns:

Func<object, bool>

Converts the given function to untyped one.

C#
public static Func<object, object> ToUntypedFunc<T, TResult>(Func<T, TResult> func)
Parameters:funcFunc<T, TResult>

The function that will be converted.

Returns:

Func<object, object>

Untyped function for the given func

Converts the given function to untyped one.

C#
public static Func<object, object, object> ToUntypedTwoParameterFunc<T1, T2, TResult>(Func<T1, T2, TResult> func)
Parameters:funcFunc<T1, T2, TResult>

The function that will be converted.

Returns:

Func<object, object, object>

Untyped function for the given func