Click or drag to resize

EnumerableExtension Class

Provides extension methods for converting enumerables.
Inheritance Hierarchy
SystemObject
  TB.ComponentModelEnumerableExtension

Namespace:  TB.ComponentModel
Assembly:  UniversalTypeConverter (in UniversalTypeConverter.dll) Version: 2.0.0
Syntax
C#
public static class EnumerableExtension

The EnumerableExtension type exposes the following members.

Methods
  NameDescription
Public methodStatic memberToCollectionT
Creates a Collection{T} from an IEnumerable{T}.
Public methodStatic memberToDataTableT(IEnumerableT, CultureInfo)
Creates a DataTable from an IEnumerable{T}. Each element of the given source results in a row representing the properties of {T} as columns. If conversion is needed, the default converter is used. ToString is used for types which are not valid for a DataColumn of a DataTable.
Public methodStatic memberToDataTableT(IEnumerableT, IncompatibleDataColumnTypeHandling, CultureInfo)
Creates a DataTable from an IEnumerable{T}. Each element of the given source results in a row representing the properties of {T} as columns. If conversion is needed, the default converter is used.
Public methodStatic memberToEnumerable(IEnumerable, Type, CultureInfo)
Returns an iterator over the results of converting the given values to the given type. The conversion is configurable further more before iteration.
Public methodStatic memberToEnumerableT(IEnumerable, CultureInfo)
Returns an iterator over the results of converting the given values to the given type. The conversion is configurable further more before iteration.
Top
See Also