Class FunctionalExtensions
Functional method extensions
Inheritance
Inherited Members
Namespace: Syncfusion.DataSource.Extensions
Assembly: Syncfusion.DataSource.WinForms.dll
Syntax
public static class FunctionalExtensions
Methods
And<T>(Expression<Func<T, Boolean>>, Expression<Func<T, Boolean>>)
Ands the specified expression1.
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 expression1. |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | expression2 | The expression2. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | Returns the expression. |
Type Parameters
Name | Description |
---|---|
T | Generic type parameter. |
CreateNew(Type)
Creates the new instance constructor.
Declaration
public static object CreateNew(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | Represents the type. |
Returns
Type | Description |
---|---|
System.Object | Returns the created instance. |
CreateNew<T>(Type)
Creates the new instance constructor.
Declaration
public static T CreateNew<T>(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
T | Returns the created instance. |
Type Parameters
Name | Description |
---|---|
T | Represents the generic type. |
False<T>()
False this instance.
Declaration
public static Expression<Func<T, bool>> False<T>()
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | Returns generic boolean value. |
Type Parameters
Name | Description |
---|---|
T | Generic type parameter. |
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> function, T type)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<U> | list | The list. |
System.Func<T, U, T> | function | The function. |
T | type | The type of the parameter. |
Returns
Type | Description |
---|---|
T | Returns the specified type. |
Type Parameters
Name | Description |
---|---|
T | The first generic type parameter. |
U | The second generic type parameter. |
FoldLeft<T, U>(IEnumerable<U>, Func<T, U, T>, T)
Folds the left.
Declaration
public static T FoldLeft<T, U>(this IEnumerable<U> list, Func<T, U, T> function, T type)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<U> | list | The list. |
System.Func<T, U, T> | function | The function. |
T | type | The type of the parameter. |
Returns
Type | Description |
---|---|
T | Returns the function. |
Type Parameters
Name | Description |
---|---|
T | The first generic type parameter. |
U | The second generic type parameter. |
FoldRight<T, U>(IEnumerable<U>, Func<T, U, T>, T)
Folds the right.
Declaration
public static T FoldRight<T, U>(this IEnumerable<U> list, Func<T, U, T> func, T type)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<U> | list | The list. |
System.Func<T, U, T> | func | The function. |
T | type | The type of the parameter. |
Returns
Type | Description |
---|---|
T | Returns the type of the parameter. |
Type Parameters
Name | Description |
---|---|
T | The first generic type parameter. |
U | The second generic type parameter. |
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 | Description |
---|---|
T | Generic type parameter. |
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 | Description |
---|---|
T | Generic type parameter. |
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 | Description |
---|---|
T | Generic type parameter. |
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 | Description |
---|---|
T | Generic type parameter. |
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 | Represents the items. |
System.Action<System.Int32, T> | action | Represents the action. |
System.Int32 | index | Represents the item index. |
Type Parameters
Name | Description |
---|---|
T | Represents the generic type parameter. |
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 source. |
System.Int32 | destination | The destination. |
Or<T>(Expression<Func<T, Boolean>>, Expression<Func<T, Boolean>>)
Or the specified expression1.
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 expression1. |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | expression2 | The expression2. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | Returns the expression. |
Type Parameters
Name | Description |
---|---|
T | Generic type parameter. |
ToList<T>(IEnumerable)
Represents the enumerable collection to a list.
Declaration
public static IEnumerable<T> ToList<T>(this IEnumerable items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | items | Represents the enumerable items. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T> | Returns the enumerable collection. |
Type Parameters
Name | Description |
---|---|
T | Represents the generic type parameter. |
ToObservableCollection<T>(IEnumerable<T>)
Converts into ObservableCollection.
Declaration
public static ObservableCollection<T> ToObservableCollection<T>(this IEnumerable<T> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | items | Represents the enumerable items. |
Returns
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<T> | Returns the collection. |
Type Parameters
Name | Description |
---|---|
T | Represents the generic type parameter. |
True<T>()
Trues this instance.
Declaration
public static Expression<Func<T, bool>> True<T>()
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | Returns the boolean value of the instance. |
Type Parameters
Name | Description |
---|---|
T | Generic type parameter. |
Zip<TFirst, TSecond, TResult>(IEnumerable<TFirst>, IEnumerable<TSecond>, Func<TFirst, TSecond, TResult>)
Zips the parameters.
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 | Represents the first parameter. |
System.Collections.Generic.IEnumerable<TSecond> | second | Represents the second parameter. |
System.Func<TFirst, TSecond, TResult> | resultSelector | Represents the resultant function. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TResult> | Returns the iterated value. |
Type Parameters
Name | Description |
---|---|
TFirst | Represents the first generic type parameter. |
TSecond | Represents the second generic type parameter. |
TResult | Represents the resultant generic type parameter. |