EnumerableConversionT Methods |
The EnumerableConversionT generic type exposes the following members.
Name | Description | |
---|---|---|
GetEnumerator |
Returns an enumerator that iterates through the collection of converted values.
| |
IgnoringNonConvertibleElements |
Instructs the enumerator to ignore non convertible values without throwing an exception.
| |
IgnoringNullElements |
Instructs the enumerator to ignore null values.
| |
Try |
Returns the collection of converted values.
A return value indicates whether conversion of all values succeeded.
|
Name | Description | |
---|---|---|
AsT |
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.) | |
CanConvert |
For backward compatibility only. Use IsConvertibleTo(Object, Type, CultureInfo) instead.
(Defined by ObjectExtension.) | |
CanConvertToT |
For backward compatibility only. Use IsConvertibleToT(Object, CultureInfo) instead.
(Defined by ObjectExtension.) | |
Convert |
For backward compatibility only. Use To(Object, Type, CultureInfo) instead.
(Defined by ObjectExtension.) | |
ConvertToT |
For backward compatibility only. Use ToT(Object, CultureInfo) instead.
(Defined by ObjectExtension.) | |
ConvertToEnumerable(Type) | Overloaded.
For backward compatibility only. Use ToEnumerable(IEnumerable, Type, CultureInfo) instead.
(Defined by ObjectExtension.) | |
ConvertToEnumerableT | Overloaded.
For backward compatibility only. Use ToEnumerableT(IEnumerable, CultureInfo) instead.
(Defined by ObjectExtension.) | |
IsConvertibleTo(Type, CultureInfo) | Overloaded.
Determines whether the given value can be converted to the specified type using the default converter.
(Defined by ObjectExtension.) | |
IsConvertibleTo(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.) | |
IsConvertibleToT(CultureInfo) | Overloaded.
Determines whether the given value can be converted to the specified type using the default converter.
(Defined by ObjectExtension.) | |
IsConvertibleToT(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.) | |
To(Type, CultureInfo) | Overloaded.
Converts the given value to the given type using the default converter.
(Defined by ObjectExtension.) | |
ToT(CultureInfo) | Overloaded.
Converts the given value to the given type using the default converter.
(Defined by ObjectExtension.) | |
ToCollectionT |
Creates a Collection{T} from an IEnumerable{T}.
(Defined by EnumerableExtension.) | |
ToDataTableT(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.) | |
ToDataTableT(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.) | |
ToDictionary |
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.) | |
ToEnumerable(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.) | |
ToEnumerableT(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.) | |
TryConvert |
For backward compatibility only. Use IsConvertibleTo(Object, Type, CultureInfo) instead.
(Defined by ObjectExtension.) | |
TryConvertToT |
For backward compatibility only. Use IsConvertibleToT(Object, CultureInfo) instead.
(Defined by ObjectExtension.) |