/// <summary> /// Splits the string by using the given splitter and converts all elements of the result to the given type. /// The result is configurable further more before first iteration. /// </summary> /// <param name="valueList">The string representation of the list of values to convert.</param> /// <param name="destinationType">The type to which the values are converted.</param> /// <param name="stringSplitter">The splitter to use.</param> /// <returns>List of converted values.</returns> public static UniversalTypeConverter.EnumerableStringConversion <object> ConvertToEnumerable(this string valueList, Type destinationType, IStringSplitter stringSplitter) { return(UniversalTypeConverter.ConvertToEnumerable(valueList, destinationType, stringSplitter)); }
/// <summary> /// Splits the string by using the given splitter and converts all elements of the result to the given type. /// The result is configurable further more before first iteration. /// </summary> /// <typeparam name="T">The type to which the values are converted.</typeparam> /// <param name="valueList">The string representation of the list of values to convert.</param> /// <param name="stringSplitter">The splitter to use.</param> /// <returns>List of converted values.</returns> public static UniversalTypeConverter.EnumerableStringConversion <T> ConvertToEnumerable <T>(this string valueList, IStringSplitter stringSplitter) { return(UniversalTypeConverter.ConvertToEnumerable <T>(valueList, stringSplitter)); }
/// <summary> /// Converts all elements of the list to the given type. /// The result is configurable further more before first iteration. /// </summary> /// <param name="values">The list of values which are converted.</param> /// <param name="destinationType">The type to which the values are converted.</param> /// <returns>List of converted values.</returns> public static UniversalTypeConverter.EnumerableConversion <object> ConvertToEnumerable(this IEnumerable values, Type destinationType) { return(UniversalTypeConverter.ConvertToEnumerable(values, destinationType)); }
/// <summary> /// Converts all elements of the list to the given type. /// The result is configurable further more before first iteration. /// </summary> /// <typeparam name="T">The type to which the values are converted.</typeparam> /// <param name="values">The list of values which are converted.</param> /// <returns>List of converted values.</returns> public static UniversalTypeConverter.EnumerableConversion <T> ConvertToEnumerable <T>(this IEnumerable values) { return(UniversalTypeConverter.ConvertToEnumerable <T>(values)); }