Class FunctionalExtensions
Functional method extensions
Inheritance
System.Object
FunctionalExtensions
Assembly: Syncfusion.EJ2.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>> expr1, Expression<Func<T, bool>> expr2)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
expr1 |
The expr1.
|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
expr2 |
The expr2.
|
Returns
Type |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
Type Parameters
CreateNew(Type)
Declaration
public static object CreateNew(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
CreateNew<T>(Type)
Declaration
public static T CreateNew<T>(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type Parameters
False<T>()
Declaration
public static Expression<Func<T, bool>> False<T>()
Returns
Type |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
Type Parameters
Fold<T, U>(IEnumerable<U>, Func<T, U, T>, T)
Folds the specified list.
Declaration
public static T Fold<T, U>(this IEnumerable<U> list, Func<T, U, T> func, T acc)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<U> |
list |
The list.
|
System.Func<T, U, T> |
func |
The func.
|
T |
acc |
The acc.
|
Returns
Type Parameters
FoldLeft<T, U>(IEnumerable<U>, Func<T, U, T>, T)
Declaration
public static T FoldLeft<T, U>(this IEnumerable<U> list, Func<T, U, T> func, T acc)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<U> |
list |
The list.
|
System.Func<T, U, T> |
func |
The func.
|
T |
acc |
The acc.
|
Returns
Type Parameters
FoldRight<T, U>(IEnumerable<U>, Func<T, U, T>, T)
Declaration
public static T FoldRight<T, U>(this IEnumerable<U> list, Func<T, U, T> func, T acc)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<U> |
list |
The list.
|
System.Func<T, U, T> |
func |
The func.
|
T |
acc |
The acc.
|
Returns
Type Parameters
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
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
IterateIndex<T>(T[], Action<Int32, T>)
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
IterateIndex<T>(IEnumerable<T>, Action<Int32, T>)
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
IterateIndex<T>(IEnumerable<T>, Action<Int32, T>, Int32)
Declaration
public static void IterateIndex<T>(this IEnumerable<T> items, Action<int, T> action, int idx)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
items |
|
System.Action<System.Int32, T> |
action |
|
System.Int32 |
idx |
|
Type Parameters
MoveTo(IList, Int32, Int32)
Declaration
public static void MoveTo(this IList list, int src, int dest)
Parameters
Type |
Name |
Description |
System.Collections.IList |
list |
The list.
|
System.Int32 |
src |
The SRC.
|
System.Int32 |
dest |
The dest.
|
Or<T>(Expression<Func<T, Boolean>>, Expression<Func<T, Boolean>>)
Declaration
public static Expression<Func<T, bool>> Or<T>(this Expression<Func<T, bool>> expr1, Expression<Func<T, bool>> expr2)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
expr1 |
The expr1.
|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
expr2 |
The expr2.
|
Returns
Type |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
Type Parameters
ToList<T>(IEnumerable)
Declaration
public static IEnumerable<T> ToList<T>(this IEnumerable items)
Parameters
Type |
Name |
Description |
System.Collections.IEnumerable |
items |
|
Returns
Type |
System.Collections.Generic.IEnumerable<T> |
Type Parameters
ToObservableCollection<T>(IEnumerable<T>)
Declaration
public static ObservableCollection<T> ToObservableCollection<T>(this IEnumerable<T> items)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
items |
|
Returns
Type |
System.Collections.ObjectModel.ObservableCollection<T> |
Type Parameters
True<T>()
Declaration
public static Expression<Func<T, bool>> True<T>()
Returns
Type |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
Type Parameters
Zip<TFirst, TSecond, TResult>(IEnumerable<TFirst>, IEnumerable<TSecond>, Func<TFirst, TSecond, TResult>)
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 |
|
System.Collections.Generic.IEnumerable<TSecond> |
second |
|
System.Func<TFirst, TSecond, TResult> |
resultSelector |
|
Returns
Type |
System.Collections.Generic.IEnumerable<TResult> |
Type Parameters
Name |
TFirst |
TSecond |
TResult |