Class FuncExtensions
Holds extension methods for delegates.
Inheritance
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data.dll
Syntax
public static class FuncExtensions : Object
Methods
ToTypedResultFunc<T, TResult>(Func<T, TResult>)
Converts the given function to an untyped one that has a strongly-typed return value.
Declaration
public static Func<object, TResult> ToTypedResultFunc<T, TResult>(Func<T, TResult> func)
Parameters
System.Func<T, TResult>
func
The function that will be converted. |
Returns
System.Func<System.Object, TResult>
Untyped function with a strongly-typed return value for the given |
Type Parameters
T
The type of the parameter of the function. |
TResult
The type of the return value of the function. |
ToUntypedBooleanFunc<T>(Func<T, Boolean>)
Converts the given function to untyped one.
Declaration
public static Func<object, bool> ToUntypedBooleanFunc<T>(Func<T, bool> func)
Parameters
System.Func<T, System.Boolean>
func
The func. |
Returns
System.Func<System.Object, System.Boolean>
|
Type Parameters
T
|
ToUntypedFunc<T, TResult>(Func<T, TResult>)
Converts the given function to untyped one.
Declaration
public static Func<object, object> ToUntypedFunc<T, TResult>(Func<T, TResult> func)
Parameters
System.Func<T, TResult>
func
The function that will be converted. |
Returns
System.Func<System.Object, System.Object>
Untyped function for the given |
Type Parameters
T
The type of the parameter of the function. |
TResult
The type of the return value of the function. |
ToUntypedTwoParameterFunc<T1, T2, TResult>(Func<T1, T2, TResult>)
Converts the given function to untyped one.
Declaration
public static Func<object, object, object> ToUntypedTwoParameterFunc<T1, T2, TResult>(Func<T1, T2, TResult> func)
Parameters
System.Func<T1, T2, TResult>
func
The function that will be converted. |
Returns
System.Func<System.Object, System.Object, System.Object>
Untyped function for the given |
Type Parameters
T1
The type of the first parameter of the function. |
T2
The type of the second parameter of the function. |
TResult
The type of the return value of the function. |