Class DynamicEnumerableExtensions
Define extensions on IEnumerable.
Inherited Members
Namespace: System.Linq.Dynamic.Core
Assembly: System.Linq.Dynamic.Core.dll
Syntax
public static class DynamicEnumerableExtensions
Methods
| Improve this Doc View SourceToDynamicArray(IEnumerable)
Creates an array of dynamic objects from a IEnumerable.
Declaration
public static object[] ToDynamicArray(this IEnumerable source)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | source | A IEnumerable to create an array from. |
Returns
| Type | Description |
|---|---|
| Object[] | An array that contains the elements from the input sequence. |
ToDynamicArray(IEnumerable, Type)
Creates an array of dynamic objects from a IEnumerable.
Declaration
public static object[] ToDynamicArray(this IEnumerable source, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | source | A IEnumerable to create an array from. |
| Type | type | A Type cast to. |
Returns
| Type | Description |
|---|---|
| Object[] | An Array that contains the elements from the input sequence. |
ToDynamicArray<T>(IEnumerable)
Creates an array of dynamic objects from a IEnumerable.
Declaration
public static T[] ToDynamicArray<T>(this IEnumerable source)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | source | A IEnumerable to create an array from. |
Returns
| Type | Description |
|---|---|
| T[] | An Array{T} that contains the elements from the input sequence. |
Type Parameters
| Name | Description |
|---|---|
| T | The generic type. |
ToDynamicList(IEnumerable)
Creates a list of dynamic objects from a IEnumerable.
Declaration
public static List<object> ToDynamicList(this IEnumerable source)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | source | A IEnumerable to create an array from. |
Returns
| Type | Description |
|---|---|
| List<Object> | A List that contains the elements from the input sequence. |
ToDynamicList(IEnumerable, Type)
Creates a list of dynamic objects from a IEnumerable.
Declaration
public static List<object> ToDynamicList(this IEnumerable source, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | source | A IEnumerable to create an array from. |
| Type | type | A Type cast to. |
Returns
| Type | Description |
|---|---|
| List<Object> | A List that contains the elements from the input sequence. |
ToDynamicList<T>(IEnumerable)
Creates a list of dynamic objects from a IEnumerable.
Declaration
public static List<T> ToDynamicList<T>(this IEnumerable source)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | source | A IEnumerable to create an array from. |
Returns
| Type | Description |
|---|---|
| List<T> | A List{T} that contains the elements from the input sequence. |
Type Parameters
| Name | Description |
|---|---|
| T | Generic Type |