/// <summary> /// Converts the specified items. /// </summary> /// <typeparam name="TInput">The type of the input.</typeparam> /// <typeparam name="TOutput">The type of the output.</typeparam> /// <param name="items">The items.</param> /// <param name="converter">The converter.</param> /// <returns>The converted representation of the input.</returns> public static IEnumerable <TOutput> Convert <TInput, TOutput>(this IEnumerable <TInput> items, IConverter <TInput, TOutput> converter) { return(converter.ConvertAll(items)); }
/// <summary> /// Converts the specified value. /// </summary> /// <typeparam name="TInput">The type of the input.</typeparam> /// <typeparam name="TOutput">The type of the output.</typeparam> /// <param name="value">The value.</param> /// <param name="converter">The converter.</param> /// <returns>The converted representation of the input.</returns> public static IEnumerable <TOutput> ConvertAll <TInput, TOutput>(this IEnumerable <TInput> value, IConverter <TInput, TOutput> converter) { return(converter.ConvertAll(value)); }