Click or drag to resize

EnumerableConversionT Class

Controls the iteration over the result of converting a list of values.
Inheritance Hierarchy
SystemObject
  TB.ComponentModelEnumerableConversionT

Namespace:  TB.ComponentModel
Assembly:  UniversalTypeConverter (in UniversalTypeConverter.dll) Version: 2.0.0
Syntax
C#
public class EnumerableConversion<T> : IEnumerable<T>, 
	IEnumerable

Type Parameters

T
The type to which the elements of the source are converted.

The EnumerableConversionT type exposes the following members.

Methods
  NameDescription
Public methodGetEnumerator
Returns an enumerator that iterates through the collection of converted values.
Public methodIgnoringNonConvertibleElements
Instructs the enumerator to ignore non convertible values without throwing an exception.
Public methodIgnoringNullElements
Instructs the enumerator to ignore null values.
Public methodTry
Returns the collection of converted values. A return value indicates whether conversion of all values succeeded.
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Converts the given value to the given type using the default converter. The result provides access to the converted value if conversion succeeded and simplifies access to default values if conversion failed.
(Defined by ObjectExtension.)
Public Extension MethodCanConvert
For backward compatibility only. Use IsConvertibleTo(Object, Type, CultureInfo) instead.
(Defined by ObjectExtension.)
Public Extension MethodCanConvertToT (Defined by ObjectExtension.)
Public Extension MethodConvert
For backward compatibility only. Use To(Object, Type, CultureInfo) instead.
(Defined by ObjectExtension.)
Public Extension MethodConvertToT (Defined by ObjectExtension.)
Public Extension MethodConvertToEnumerable(Type)Overloaded.
For backward compatibility only. Use ToEnumerable(IEnumerable, Type, CultureInfo) instead.
(Defined by ObjectExtension.)
Public Extension MethodConvertToEnumerableTOverloaded. (Defined by ObjectExtension.)
Public Extension MethodIsConvertibleTo(Type, CultureInfo)Overloaded.
Determines whether the given value can be converted to the specified type using the default converter.
(Defined by ObjectExtension.)
Public Extension MethodIsConvertibleTo(Type, Object, CultureInfo)Overloaded.
Converts the given value to the given type using the default converter. A return value indicates whether the operation succeeded.
(Defined by ObjectExtension.)
Public Extension MethodIsConvertibleToT(CultureInfo)Overloaded.
Determines whether the given value can be converted to the specified type using the default converter.
(Defined by ObjectExtension.)
Public Extension MethodIsConvertibleToT(T, CultureInfo)Overloaded.
Converts the given value to the given type using the default converter. A return value indicates whether the operation succeeded.
(Defined by ObjectExtension.)
Public Extension MethodTo(Type, CultureInfo)Overloaded.
Converts the given value to the given type using the default converter.
(Defined by ObjectExtension.)
Public Extension MethodToT(CultureInfo)Overloaded.
Converts the given value to the given type using the default converter.
(Defined by ObjectExtension.)
Public Extension MethodToCollectionT
Creates a Collection{T} from an IEnumerable{T}.
(Defined by EnumerableExtension.)
Public Extension MethodToDataTableT(CultureInfo)Overloaded.
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.
(Defined by EnumerableExtension.)
Public Extension MethodToDataTableT(IncompatibleDataColumnTypeHandling, CultureInfo)Overloaded.
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.
(Defined by EnumerableExtension.)
Public Extension MethodToDictionary
Creates a new dictionary whose key value pairs represent all non static public values of the given source. If source is null, an empty dictionary is created. If source has no non static public properties or fields (eg. int), the dictionary contains only one key named "Value" representing the given value itself.
(Defined by ObjectExtension.)
Public Extension MethodToEnumerable(Type, CultureInfo)Overloaded.
Returns an iterator over the results of converting the given values to the given type. The conversion is configurable further more before iteration.
(Defined by EnumerableExtension.)
Public Extension MethodToEnumerableT(CultureInfo)Overloaded.
Returns an iterator over the results of converting the given values to the given type. The conversion is configurable further more before iteration.
(Defined by EnumerableExtension.)
Public Extension MethodTryConvert
For backward compatibility only. Use IsConvertibleTo(Object, Type, CultureInfo) instead.
(Defined by ObjectExtension.)
Public Extension MethodTryConvertToT (Defined by ObjectExtension.)
Top
See Also