diff --git a/src/xtd.core/include/xtd/console.hpp b/src/xtd.core/include/xtd/console.hpp index 57ccd55f93e..ab1bc468339 100644 --- a/src/xtd.core/include/xtd/console.hpp +++ b/src/xtd.core/include/xtd/console.hpp @@ -461,12 +461,11 @@ namespace xtd { template static void write(arg_t&& value) {write_(xtd::string::format("{}", value));} - /// @brief Writes the text representation of the specified value to the standard output stream. - /// @tparam arg_t The type of the value to write. - /// @param value The value to write, + /// @cond template static void write(std::initializer_list&& il) {write_(xtd::string::format("{}", il));} - + /// @endcond + /// @brief Writes the text representation of the specified list of values to the standard output stream using the specified format information. /// @tparam ...args_t Types of the values to write. /// @param fmt A composite format string. @@ -483,12 +482,11 @@ namespace xtd { template static void write_line(arg_t&& value) {write_line_(xtd::string::format("{}", value));} - /// @brief Writes the text representation of the specified value, followed by the current line terminator, to the standard output stream. - /// @tparam arg_t The type of the value to write. - /// @param value The value to write, + /// @cond template static void write_line(const std::initializer_list& il) {write_line_(xtd::string::format("{}", il));} - + /// @endcond + /// @brief Writes the text representation of the specified list of values, followed by the current line terminator, to the standard output stream using the specified format information. /// @tparam ...args_t Types of the values to write. /// @param fmt A composite format string. diff --git a/src/xtd.core/include/xtd/println.hpp b/src/xtd.core/include/xtd/println.hpp index 42addfd2fbb..684ecbfa47d 100644 --- a/src/xtd.core/include/xtd/println.hpp +++ b/src/xtd.core/include/xtd/println.hpp @@ -15,12 +15,11 @@ namespace xtd { template void println(arg_t&& value) {xtd::console::write_line(xtd::string::format("{}", value));} - /// @brief Writes the text representation of the specified list of values, followed by the current line terminator, to the standard output stream using the specified format information. - /// @tparam ...args_t Types of the values to write. - /// @param values Values to write, + /// @cond template void println(const std::initializer_list& il) {xtd::console::write_line(xtd::string::format("{}", il));} - + /// @endcond + /// @brief Writes the text representation of the specified list of values, followed by the current line terminator, to the standard output stream using the specified format information. /// @tparam ...args_t Types of the values to write. /// @param fmt A composite format string.