Class FunctionalExtensions
Inheritance
Namespace: Syncfusion.Data.Extensions
Assembly: Syncfusion.Data.Portable.dll
Syntax
public static class FunctionalExtensions : Object
Methods
And<T>(Expression<Func<T, Boolean>>, Expression<Func<T, Boolean>>)
Ands the specified expr1.
Declaration
public static Expression<Func<T, bool>> And<T>(this Expression<Func<T, bool>> expression1, Expression<Func<T, bool>> expression2)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | expression1 | The expr1. |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | expression2 | The expr2. |
Returns
Type |
---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
Type Parameters
Name |
---|
T |
CreateNew(Type)
Creates a instance of dynamic object for the specified type
.
Declaration
public static object CreateNew(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Object | The instance of dynamic object for the specified |
CreateNew<T>(Type)
Creates a instance of object for the specified type
.
Declaration
public static T CreateNew<T>(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
T | The instance of object for the specified |
Type Parameters
Name |
---|
T |
False<T>()
Falses this instance.
Declaration
public static Expression<Func<T, bool>> False<T>()
Returns
Type |
---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
Type Parameters
Name |
---|
T |
Fold<T1, T2>(IEnumerable<T2>, Func<T1, T2, T1>, T1)
Folds the specified list.
Declaration
public static T1 Fold<T1, T2>(this IEnumerable<T2> list, Func<T1, T2, T1> func, T1 action)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T2> | list | The list. |
System.Func<T1, T2, T1> | func | The func. |
T1 | action | The acc. |
Returns
Type |
---|
T1 |
Type Parameters
Name |
---|
T1 |
T2 |
FoldLeft<T1, T2>(IEnumerable<T2>, Func<T1, T2, T1>, T1)
Folds the left.
Declaration
public static T1 FoldLeft<T1, T2>(this IEnumerable<T2> list, Func<T1, T2, T1> func, T1 action)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T2> | list | The list. |
System.Func<T1, T2, T1> | func | The func. |
T1 | action | The acc. |
Returns
Type |
---|
T1 |
Type Parameters
Name |
---|
T1 |
T2 |
FoldRight<T1, T2>(IEnumerable<T2>, Func<T1, T2, T1>, T1)
Folds the right.
Declaration
public static T1 FoldRight<T1, T2>(this IEnumerable<T2> list, Func<T1, T2, T1> func, T1 action)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T2> | list | The list. |
System.Func<T1, T2, T1> | func | The func. |
T1 | action | The acc. |
Returns
Type |
---|
T1 |
Type Parameters
Name |
---|
T1 |
T2 |
ForEach<T>(IEnumerable<T>, Action<T>)
Iterates over a generic IEnumerable instance to a delegated function
Declaration
public static void ForEach<T>(this IEnumerable<T> items, Action<T> action)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | items | The items. |
System.Action<T> | action | The action. |
Type Parameters
Name |
---|
T |
ForEach<T>(IEnumerable, Action<T>)
Iterates over an IEnumerable instance to a delegated function
Declaration
public static void ForEach<T>(this IEnumerable items, Action<T> action)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | items | The items. |
System.Action<T> | action | The action. |
Type Parameters
Name |
---|
T |
IterateIndex<T>(T[], Action<Int32, T>)
Iterates the index.
Declaration
public static void IterateIndex<T>(this T[] items, Action<int, T> action)
Parameters
Type | Name | Description |
---|---|---|
T[] | items | The items. |
System.Action<System.Int32, T> | action | The action. |
Type Parameters
Name |
---|
T |
IterateIndex<T>(IEnumerable<T>, Action<Int32, T>)
Iterates the index.
Declaration
public static void IterateIndex<T>(this IEnumerable<T> items, Action<int, T> action)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | items | The items. |
System.Action<System.Int32, T> | action | The action. |
Type Parameters
Name |
---|
T |
IterateIndex<T>(IEnumerable<T>, Action<Int32, T>, Int32)
Iterates the index
Declaration
public static void IterateIndex<T>(this IEnumerable<T> items, Action<int, T> action, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | items | The items. |
System.Action<System.Int32, T> | action | The action. |
System.Int32 | index | The index. |
Type Parameters
Name |
---|
T |
MoveTo(IList, Int32, Int32)
Moves to.
Declaration
public static void MoveTo(this IList list, int source, int destination)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IList | list | The list. |
System.Int32 | source | The SRC. |
System.Int32 | destination | The dest. |
Or<T>(Expression<Func<T, Boolean>>, Expression<Func<T, Boolean>>)
Ors the specified expr1.
Declaration
public static Expression<Func<T, bool>> Or<T>(this Expression<Func<T, bool>> expression1, Expression<Func<T, bool>> expression2)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | expression1 | The expr1. |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | expression2 | The expr2. |
Returns
Type |
---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
Type Parameters
Name |
---|
T |
ToList<T>(IEnumerable)
Creates a new System.Collections.Generic.List<> from the specified items
.
Declaration
public static IEnumerable<T> ToList<T>(this IEnumerable items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | items | The items. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T> | A new System.Collections.Generic.List<> from the specified |
Type Parameters
Name |
---|
T |
ToObservableCollection<T>(IEnumerable<T>)
Gets the new System.Collections.ObjectModel.ObservableCollection<> from the specified items
.
Declaration
public static ObservableCollection<T> ToObservableCollection<T>(this IEnumerable<T> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | items | The items. |
Returns
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<T> | The new System.Collections.ObjectModel.ObservableCollection<> from the specified |
Type Parameters
Name |
---|
T |
True<T>()
Trues this instance.
Declaration
public static Expression<Func<T, bool>> True<T>()
Returns
Type |
---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
Type Parameters
Name |
---|
T |
Zip<TFirst, TSecond, TResult>(IEnumerable<TFirst>, IEnumerable<TSecond>, Func<TFirst, TSecond, TResult>)
Applies a specified function to the corresponding elements of two enumerable collection, producing a sequence of the results.
Declaration
public static IEnumerable<TResult> Zip<TFirst, TSecond, TResult>(this IEnumerable<TFirst> first, IEnumerable<TSecond> second, Func<TFirst, TSecond, TResult> resultSelector)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TFirst> | first | The first System.Collections.IEnumerable collection. |
System.Collections.Generic.IEnumerable<TSecond> | second | The second System.Collections.IEnumerable collection. |
System.Func<TFirst, TSecond, TResult> | resultSelector | The function that retrieves the result from the |
Returns
Type |
---|
System.Collections.Generic.IEnumerable<TResult> |
Type Parameters
Name |
---|
TFirst |
TSecond |
TResult |