Click or drag to resize

EnumerableExtensionToEnumerable Method (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.

Namespace:  TB.ComponentModel
Assembly:  UniversalTypeConverter (in UniversalTypeConverter.dll) Version: 2.0.0
Syntax
C#
public static EnumerableConversion<Object> ToEnumerable(
	this IEnumerable values,
	Type destinationType,
	CultureInfo culture = null
)

Parameters

values
Type: System.CollectionsIEnumerable
The list of values which are converted.
destinationType
Type: SystemType
The type to which the given values are converted.
culture (Optional)
Type: System.GlobalizationCultureInfo
The culture to use. If not given or null, the DefaultCulture is used.

Return Value

Type: EnumerableConversionObject
List of converted values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also