Class DynamicEnumerableExtensions
Define extensions on System.Collections.IEnumerable.
Inheritance
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 System.Collections.IEnumerable.
Declaration
public static object[] ToDynamicArray(this IEnumerable source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | A System.Collections.IEnumerable to create an array from. |
Returns
Type | Description |
---|---|
System.Object[] | An array that contains the elements from the input sequence. |
ToDynamicArray(IEnumerable, Type)
Creates an array of dynamic objects from a System.Collections.IEnumerable.
Declaration
public static object[] ToDynamicArray(this IEnumerable source, Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | A System.Collections.IEnumerable to create an array from. |
System.Type | type | A System.Type cast to. |
Returns
Type | Description |
---|---|
System.Object[] | An Array that contains the elements from the input sequence. |
ToDynamicArray<T>(IEnumerable)
Creates an array of dynamic objects from a System.Collections.IEnumerable.
Declaration
public static T[] ToDynamicArray<T>(this IEnumerable source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | A System.Collections.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 System.Collections.IEnumerable.
Declaration
public static List<object> ToDynamicList(this IEnumerable source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | A System.Collections.IEnumerable to create an array from. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> | A List that contains the elements from the input sequence. |
ToDynamicList(IEnumerable, Type)
Creates a list of dynamic objects from a System.Collections.IEnumerable.
Declaration
public static List<object> ToDynamicList(this IEnumerable source, Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | A System.Collections.IEnumerable to create an array from. |
System.Type | type | A System.Type cast to. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> | A List that contains the elements from the input sequence. |
ToDynamicList<T>(IEnumerable)
Creates a list of dynamic objects from a System.Collections.IEnumerable.
Declaration
public static List<T> ToDynamicList<T>(this IEnumerable source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | source | A System.Collections.IEnumerable to create an array from. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<T> | A List{T} that contains the elements from the input sequence. |
Type Parameters
Name | Description |
---|---|
T | Generic Type |