Click or drag to resize

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

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

Parameters

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

Type Parameters

T
The type to which the given values are converted.

Return Value

Type: EnumerableConversionT
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