xtd 0.2.0
Loading...
Searching...
No Matches
xtd::convert Class Reference
Inheritance diagram for xtd::convert:
xtd::static_object

Definition

Represents API to convert base type code.

Header
#include <xtd/convert>
Namespace
xtd
Library
xtd.core
Remarks
This class cannot be inherited.

Public Static Methods

static std::any to_any (std::any value) noexcept
 Convert std::any to std::any.
 
static std::any to_any (bool value) noexcept
 Convert bool to std::any.
 
static std::any to_any (xtd::byte value) noexcept
 Convert xtd::byte to std::any.
 
static std::any to_any (char value) noexcept
 Convert char to std::any.
 
static std::any to_any (char8 value)
 Convert char8 to std::any.
 
static std::any to_any (char16 value) noexcept
 Convert char16 to std::any.
 
static std::any to_any (char32 value) noexcept
 Convert char32 to std::any.
 
static std::any to_any (wchar value) noexcept
 Convert wchar to std::any.
 
static std::any to_any (decimal value) noexcept
 Convert decimal to std::any.
 
static std::any to_any (double value) noexcept
 Convert double to std::any.
 
static std::any to_any (float value) noexcept
 Convert float to std::any.
 
static std::any to_any (int16 value) noexcept
 Convert int16 to std::any.
 
static std::any to_any (int32 value) noexcept
 Convert int32 to std::any.
 
static std::any to_any (int64 value) noexcept
 Convert int64 to std::any.
 
static std::any to_any (slong value) noexcept
 Convert slong to std::any.
 
static std::any to_any (sbyte value) noexcept
 Convert sbyte to std::any.
 
static std::any to_any (uint16 value) noexcept
 Convert uint16 to std::any.
 
static std::any to_any (uint32 value) noexcept
 Convert uint32 to std::any.
 
static std::any to_any (uint64 value) noexcept
 Convert uint64 to std::any.
 
static std::any to_any (xtd::ulong value) noexcept
 Convert slong to std::any.
 
static std::any to_any (const xtd::ustring &value) noexcept
 Convert string to std::any.
 
template<typename type_t >
static std::any to_any (type_t value)
 Convert type_t to bool.
 
static bool to_boolean (std::any value)
 Convert std::any to bool.
 
static bool to_boolean (bool value) noexcept
 Convert bool to bool.
 
static bool to_boolean (xtd::byte value) noexcept
 Convert xtd::byte to bool.
 
static bool to_boolean (char value)
 Convert char to bool.
 
static bool to_boolean (char8 value)
 Convert char8 to bool.
 
static bool to_boolean (char16 value)
 Convert char16 to bool.
 
static bool to_boolean (char32 value)
 Convert char32 to bool.
 
static bool to_boolean (wchar value)
 Convert wchar to bool.
 
static bool to_boolean (decimal value) noexcept
 Convert decimal to bool.
 
static bool to_boolean (double value) noexcept
 Convert double to bool.
 
static bool to_boolean (float value) noexcept
 Convert float to bool.
 
static bool to_boolean (int16 value) noexcept
 Convert int16 to bool.
 
static bool to_boolean (int32 value) noexcept
 Convert int32 to bool.
 
static bool to_boolean (int64 value) noexcept
 Convert int64 to bool.
 
static bool to_boolean (slong value) noexcept
 Convert slong to bool.
 
static bool to_boolean (sbyte value) noexcept
 Convert sbyte to bool.
 
static bool to_boolean (uint16 value) noexcept
 Convert uint16 to bool.
 
static bool to_boolean (uint32 value) noexcept
 Convert uint32 to bool.
 
static bool to_boolean (uint64 value) noexcept
 Convert uint64 to bool.
 
static bool to_boolean (xtd::ulong value) noexcept
 Convert slong to bool.
 
static bool to_boolean (const xtd::ustring &value)
 Convert string to bool.
 
template<typename type_t >
static bool to_boolean (type_t value) noexcept
 Convert type_t to bool.
 
static xtd::byte to_byte (std::any value)
 Convert std::any to byte.
 
static xtd::byte to_byte (bool value) noexcept
 Convert bool to byte.
 
static xtd::byte to_byte (xtd::byte value) noexcept
 Convert xtd::byte to byte.
 
static xtd::byte to_byte (char value) noexcept
 Convert char to byte.
 
static xtd::byte to_byte (char8 value) noexcept
 Convert char8 to byte.
 
static xtd::byte to_byte (char16 value)
 Convert char16 to byte.
 
static xtd::byte to_byte (char32 value)
 Convert char32 to byte.
 
static xtd::byte to_byte (wchar value)
 Convert char32 to byte.
 
static xtd::byte to_byte (decimal value)
 Convert decimal to byte.
 
static xtd::byte to_byte (double value)
 Convert double to byte.
 
static xtd::byte to_byte (float value)
 Convert float to byte.
 
static xtd::byte to_byte (int16 value)
 Convert int16 to byte.
 
static xtd::byte to_byte (int32 value)
 Convert int32 to byte.
 
static xtd::byte to_byte (int64 value)
 Convert int64 to byte.
 
static xtd::byte to_byte (slong value)
 Convert slong to byte.
 
static xtd::byte to_byte (sbyte value)
 Convert sbyte to byte.
 
static xtd::byte to_byte (uint16 value)
 Convert uint16 to byte.
 
static xtd::byte to_byte (uint32 value)
 Convert uint32 to byte.
 
static xtd::byte to_byte (uint64 value)
 Convert uint64 to byte.
 
static xtd::byte to_byte (xtd::ulong value)
 Convert slong to byte.
 
static xtd::byte to_byte (const xtd::ustring &value)
 Convert string to byte.
 
static xtd::byte to_byte (const xtd::ustring &value, xtd::byte from_base)
 Convert string to byte.
 
template<typename type_t >
static xtd::byte to_byte (type_t value) noexcept
 Convert type_t to byte.
 
static char to_char (std::any value)
 Convert std::any to char.
 
static char to_char (bool value)
 Convert bool to char.
 
static char to_char (xtd::byte value) noexcept
 Convert xtd::byte to char.
 
static char to_char (char value) noexcept
 Convert char to char.
 
static char to_char (char8 value) noexcept
 Convert char8 to char.
 
static char to_char (char16 value)
 Convert char16 to char.
 
static char to_char (char32 value)
 Convert char32 to char.
 
static char to_char (wchar value)
 Convert char32 to char.
 
static char to_char (decimal value)
 Convert decimal to char.
 
static char to_char (double value)
 Convert double to char.
 
static char to_char (float value)
 Convert float to char.
 
static char to_char (int16 value)
 Convert int16 to char.
 
static char to_char (int32 value)
 Convert int32 to char.
 
static char to_char (int64 value)
 Convert int64 to char.
 
static char to_char (slong value)
 Convert slong to char.
 
static char to_char (sbyte value)
 Convert sbyte to char.
 
static char to_char (uint16 value)
 Convert uint16 to char.
 
static char to_char (uint32 value)
 Convert uint32 to char.
 
static char to_char (uint64 value)
 Convert uint64 to char.
 
static char to_char (xtd::ulong value)
 Convert slong to char.
 
static char to_char (const xtd::ustring &value)
 Convert string to char.
 
template<typename type_t >
static char to_char (type_t value) noexcept
 Convert type_t to char.
 
static char8 to_char8 (std::any value)
 Convert std::any to char8.
 
static char8 to_char8 (bool value)
 Convert bool to char8.
 
static char8 to_char8 (xtd::byte value) noexcept
 Convert xtd::byte to char8.
 
static char8 to_char8 (char value) noexcept
 Convert char to char8.
 
static char8 to_char8 (char8 value) noexcept
 Convert char8 to char8.
 
static char8 to_char8 (char16 value)
 Convert char16 to char8.
 
static char8 to_char8 (char32 value)
 Convert char32 to char8.
 
static char8 to_char8 (wchar value)
 Convert char32 to char8.
 
static char8 to_char8 (decimal value)
 Convert decimal to char8.
 
static char8 to_char8 (double value)
 Convert double to char8.
 
static char8 to_char8 (float value)
 Convert float to char8.
 
static char8 to_char8 (int16 value)
 Convert int16 to char8.
 
static char8 to_char8 (int32 value)
 Convert int32 to char8.
 
static char8 to_char8 (int64 value)
 Convert int64 to char8.
 
static char8 to_char8 (slong value)
 Convert slong to char8.
 
static char8 to_char8 (sbyte value)
 Convert sbyte to char8.
 
static char8 to_char8 (uint16 value)
 Convert uint16 to char8.
 
static char8 to_char8 (uint32 value)
 Convert uint32 to char8.
 
static char8 to_char8 (uint64 value)
 Convert uint64 to char8.
 
static char8 to_char8 (xtd::ulong value)
 Convert slong to char8.
 
static char8 to_char8 (const xtd::ustring &value)
 Convert string to char8.
 
template<typename type_t >
static char8 to_char8 (type_t value) noexcept
 Convert type_t to char8.
 
static char16 to_char16 (std::any value)
 Convert std::any to char16.
 
static char16 to_char16 (bool value)
 Convert bool to char16.
 
static char16 to_char16 (xtd::byte value) noexcept
 Convert xtd::byte to char16.
 
static char16 to_char16 (char value) noexcept
 Convert char to char16.
 
static char16 to_char16 (char8 value) noexcept
 Convert char8 to char16.
 
static char16 to_char16 (char16 value) noexcept
 Convert char16 to char16.
 
static char16 to_char16 (char32 value)
 Convert char32 to char16.
 
static char16 to_char16 (wchar value) noexcept
 Convert char32 to char16.
 
static char16 to_char16 (decimal value)
 Convert decimal to char16.
 
static char16 to_char16 (double value)
 Convert double to char16.
 
static char16 to_char16 (float value)
 Convert float to char16.
 
static char16 to_char16 (int16 value)
 Convert int16 to char16.
 
static char16 to_char16 (int32 value)
 Convert int32 to char16.
 
static char16 to_char16 (int64 value)
 Convert int64 to char16.
 
static char16 to_char16 (slong value)
 Convert slong to char16.
 
static char16 to_char16 (sbyte value)
 Convert sbyte to char16.
 
static char16 to_char16 (uint16 value) noexcept
 Convert uint16 to char16.
 
static char16 to_char16 (uint32 value)
 Convert uint32 to char16.
 
static char16 to_char16 (uint64 value)
 Convert uint64 to char16.
 
static char16 to_char16 (xtd::ulong value)
 Convert slong to char16.
 
static char16 to_char16 (const xtd::ustring &value)
 Convert string to char16.
 
template<typename type_t >
static char16 to_char16 (type_t value) noexcept
 Convert type_t to char16.
 
static char32 to_char32 (std::any value)
 Convert std::any to char32.
 
static char32 to_char32 (bool value)
 Convert bool to char32.
 
static char32 to_char32 (xtd::byte value) noexcept
 Convert xtd::byte to char32.
 
static char32 to_char32 (char value) noexcept
 Convert char to char32.
 
static char32 to_char32 (char8 value) noexcept
 Convert char8 to char32.
 
static char32 to_char32 (char16 value) noexcept
 Convert char16 to char32.
 
static char32 to_char32 (char32 value) noexcept
 Convert char32 to char32.
 
static char32 to_char32 (wchar value) noexcept
 Convert char32 to char32.
 
static char32 to_char32 (decimal value)
 Convert decimal to char32.
 
static char32 to_char32 (double value)
 Convert double to char32.
 
static char32 to_char32 (float value)
 Convert float to char32.
 
static char32 to_char32 (int16 value)
 Convert int16 to char32.
 
static char32 to_char32 (int32 value)
 Convert int32 to char32.
 
static char32 to_char32 (int64 value)
 Convert int64 to char32.
 
static char32 to_char32 (slong value)
 Convert slong to char32.
 
static char32 to_char32 (sbyte value)
 Convert sbyte to char32.
 
static char32 to_char32 (uint16 value) noexcept
 Convert uint16 to char32.
 
static char32 to_char32 (uint32 value) noexcept
 Convert uint32 to char32.
 
static char32 to_char32 (uint64 value)
 Convert uint64 to char32.
 
static char32 to_char32 (xtd::ulong value)
 Convert slong to char32.
 
static char32 to_char32 (const xtd::ustring &value)
 Convert string to char32.
 
template<typename type_t >
static char32 to_char32 (type_t value) noexcept
 Convert type_t to char32.
 
static wchar to_wchar (std::any value)
 Convert std::any to wchar.
 
static wchar to_wchar (bool value)
 Convert bool to wchar.
 
static wchar to_wchar (xtd::byte value) noexcept
 Convert xtd::byte to wchar.
 
static wchar to_wchar (char value) noexcept
 Convert char to wchar.
 
static wchar to_wchar (char8 value) noexcept
 Convert char8 to wchar.
 
static wchar to_wchar (char16 value) noexcept
 Convert char16 to wchar.
 
static wchar to_wchar (char32 value)
 Convert char32 to wchar.
 
static wchar to_wchar (wchar value) noexcept
 Convert char32 to wchar.
 
static wchar to_wchar (decimal value)
 Convert decimal to wchar.
 
static wchar to_wchar (double value)
 Convert double to wchar.
 
static wchar to_wchar (float value)
 Convert float to wchar.
 
static wchar to_wchar (int16 value)
 Convert int16 to wchar.
 
static wchar to_wchar (int32 value)
 Convert int32 to wchar.
 
static wchar to_wchar (int64 value)
 Convert int64 to wchar.
 
static wchar to_wchar (slong value)
 Convert slong to wchar.
 
static wchar to_wchar (sbyte value)
 Convert sbyte to wchar.
 
static wchar to_wchar (uint16 value) noexcept
 Convert uint16 to wchar.
 
static wchar to_wchar (uint32 value)
 Convert uint32 to wchar.
 
static wchar to_wchar (uint64 value)
 Convert uint64 to wchar.
 
static wchar to_wchar (xtd::ulong value)
 Convert slong to wchar.
 
static wchar to_wchar (const xtd::ustring &value)
 Convert string to wchar.
 
template<typename type_t >
static wchar to_wchar (type_t value) noexcept
 Convert type_t to wchar.
 
static decimal to_decimal (std::any value)
 Convert std::any to decimal.
 
static decimal to_decimal (bool value) noexcept
 Convert bool to decimal.
 
static decimal to_decimal (xtd::byte value) noexcept
 Convert xtd::byte to decimal.
 
static decimal to_decimal (char value) noexcept
 Convert char to decimal.
 
static decimal to_decimal (char8 value) noexcept
 Convert char8 to decimal.
 
static decimal to_decimal (char16 value) noexcept
 Convert char16 to decimal.
 
static decimal to_decimal (char32 value) noexcept
 Convert char32 to decimal.
 
static decimal to_decimal (wchar value) noexcept
 Convert char32 to decimal.
 
static decimal to_decimal (decimal value) noexcept
 Convert decimal to decimal.
 
static decimal to_decimal (double value) noexcept
 Convert double to decimal.
 
static decimal to_decimal (float value) noexcept
 Convert float to decimal.
 
static decimal to_decimal (int16 value) noexcept
 Convert int16 to decimal.
 
static decimal to_decimal (int32 value) noexcept
 Convert int32 to decimal.
 
static decimal to_decimal (int64 value) noexcept
 Convert int64 to decimal.
 
static decimal to_decimal (slong value) noexcept
 Convert slong to decimal.
 
static decimal to_decimal (sbyte value) noexcept
 Convert sbyte to decimal.
 
static decimal to_decimal (uint16 value) noexcept
 Convert uint16 to decimal.
 
static decimal to_decimal (uint32 value) noexcept
 Convert uint32 to decimal.
 
static decimal to_decimal (uint64 value) noexcept
 Convert uint64 to decimal.
 
static decimal to_decimal (xtd::ulong value) noexcept
 Convert slong to decimal.
 
static decimal to_decimal (const xtd::ustring &value)
 Convert string to decimal.
 
template<typename type_t >
static decimal to_decimal (type_t value) noexcept
 Convert type_t to decimal.
 
static double to_double (std::any value)
 Convert std::any to double.
 
static double to_double (bool value) noexcept
 Convert bool to double.
 
static double to_double (xtd::byte value) noexcept
 Convert xtd::byte to double.
 
static double to_double (char value) noexcept
 Convert char to double.
 
static double to_double (char8 value) noexcept
 Convert char8 to double.
 
static double to_double (char16 value) noexcept
 Convert char16 to double.
 
static double to_double (char32 value) noexcept
 Convert char32 to double.
 
static double to_double (wchar value) noexcept
 Convert char32 to double.
 
static double to_double (decimal value) noexcept
 Convert decimal to double.
 
static double to_double (double value) noexcept
 Convert double to double.
 
static double to_double (float value) noexcept
 Convert float to double.
 
static double to_double (int16 value) noexcept
 Convert int16 to double.
 
static double to_double (int32 value) noexcept
 Convert int32 to double.
 
static double to_double (int64 value) noexcept
 Convert int64 to double.
 
static double to_double (slong value) noexcept
 Convert slong to double.
 
static double to_double (sbyte value) noexcept
 Convert sbyte to double.
 
static double to_double (uint16 value) noexcept
 Convert uint16 to double.
 
static double to_double (uint32 value) noexcept
 Convert uint32 to double.
 
static double to_double (uint64 value) noexcept
 Convert uint64 to double.
 
static double to_double (xtd::ulong value) noexcept
 Convert slong to double.
 
static double to_double (const xtd::ustring &value)
 Convert string to double.
 
template<typename type_t >
static double to_double (type_t value) noexcept
 Convert type_t to double.
 
static float to_single (std::any value)
 Convert std::any to single.
 
static float to_single (bool value) noexcept
 Convert bool to single.
 
static float to_single (xtd::byte value) noexcept
 Convert xtd::byte to single.
 
static float to_single (char value) noexcept
 Convert char to single.
 
static float to_single (char8 value) noexcept
 Convert char8 to single.
 
static float to_single (char16 value) noexcept
 Convert char16 to single.
 
static float to_single (char32 value) noexcept
 Convert char32 to single.
 
static float to_single (wchar value) noexcept
 Convert char32 to single.
 
static float to_single (decimal value) noexcept
 Convert decimal to single.
 
static float to_single (double value) noexcept
 Convert double to single.
 
static float to_single (float value) noexcept
 Convert float to single.
 
static float to_single (int16 value) noexcept
 Convert int16 to single.
 
static float to_single (int32 value) noexcept
 Convert int32 to single.
 
static float to_single (int64 value) noexcept
 Convert int64 to single.
 
static float to_single (slong value) noexcept
 Convert slong to single.
 
static float to_single (sbyte value) noexcept
 Convert sbyte to single.
 
static float to_single (uint16 value) noexcept
 Convert uint16 to single.
 
static float to_single (uint32 value) noexcept
 Convert uint32 to single.
 
static float to_single (uint64 value) noexcept
 Convert uint64 to single.
 
static float to_single (xtd::ulong value) noexcept
 Convert slong to single.
 
static float to_single (const xtd::ustring &value)
 Convert string to single.
 
template<typename type_t >
static float to_single (type_t value) noexcept
 Convert type_t to single.
 
static int16 to_int16 (std::any value)
 Convert std::any to int16.
 
static int16 to_int16 (bool value) noexcept
 Convert bool to int16.
 
static int16 to_int16 (xtd::byte value) noexcept
 Convert xtd::byte to int16.
 
static int16 to_int16 (char value) noexcept
 Convert char to int16.
 
static int16 to_int16 (char8 value) noexcept
 Convert char8 to int16.
 
static int16 to_int16 (char16 value) noexcept
 Convert char16 to int16.
 
static int16 to_int16 (char32 value)
 Convert char32 to int16.
 
static int16 to_int16 (wchar value) noexcept
 Convert char32 to int16.
 
static int16 to_int16 (decimal value)
 Convert decimal to int16.
 
static int16 to_int16 (double value)
 Convert double to int16.
 
static int16 to_int16 (float value)
 Convert float to int16.
 
static int16 to_int16 (int16 value) noexcept
 Convert int16 to int16.
 
static int16 to_int16 (int32 value)
 Convert int32 to int16.
 
static int16 to_int16 (int64 value)
 Convert int64 to int16.
 
static int16 to_int16 (slong value)
 Convert slong to int16.
 
static int16 to_int16 (sbyte value) noexcept
 Convert sbyte to int16.
 
static int16 to_int16 (uint16 value)
 Convert uint16 to int16.
 
static int16 to_int16 (uint32 value)
 Convert uint32 to int16.
 
static int16 to_int16 (uint64 value)
 Convert uint64 to int16.
 
static int16 to_int16 (xtd::ulong value)
 Convert slong to int16.
 
static int16 to_int16 (const xtd::ustring &value)
 Convert string to int16.
 
static int16 to_int16 (const xtd::ustring &value, xtd::byte from_base)
 Convert string to int16.
 
template<typename type_t >
static int16 to_int16 (type_t value) noexcept
 Convert type_t to int16.
 
static int32 to_int32 (std::any value)
 Convert std::any to int32.
 
static int32 to_int32 (bool value) noexcept
 Convert bool to int32.
 
static int32 to_int32 (xtd::byte value) noexcept
 Convert xtd::byte to int32.
 
static int32 to_int32 (char value) noexcept
 Convert char to int32.
 
static int32 to_int32 (char8 value) noexcept
 Convert char8 to int32.
 
static int32 to_int32 (char16 value) noexcept
 Convert char16 to int32.
 
static int32 to_int32 (char32 value) noexcept
 Convert char32 to int32.
 
static int32 to_int32 (wchar value) noexcept
 Convert char32 to int32.
 
static int32 to_int32 (decimal value)
 Convert decimal to int32.
 
static int32 to_int32 (double value)
 Convert double to int32.
 
static int32 to_int32 (float value) noexcept
 Convert float to int32.
 
static int32 to_int32 (int16 value) noexcept
 Convert int16 to int32.
 
static int32 to_int32 (int32 value) noexcept
 Convert int32 to int32.
 
static int32 to_int32 (int64 value)
 Convert int64 to int32.
 
static int32 to_int32 (slong value)
 Convert slong to int32.
 
static int32 to_int32 (sbyte value) noexcept
 Convert sbyte to int32.
 
static int32 to_int32 (uint16 value) noexcept
 Convert uint16 to int32.
 
static int32 to_int32 (uint32 value)
 Convert uint32 to int32.
 
static int32 to_int32 (uint64 value)
 Convert uint64 to int32.
 
static int32 to_int32 (xtd::ulong value)
 Convert slong to int32.
 
static int32 to_int32 (const xtd::ustring &value)
 Convert string to int32.
 
static int32 to_int32 (const xtd::ustring &value, xtd::byte from_base)
 Convert string to int32.
 
template<typename type_t >
static int32 to_int32 (type_t value) noexcept
 Convert type_t to int32.
 
static int64 to_int64 (std::any value)
 Convert std::any to int64.
 
static int64 to_int64 (bool value) noexcept
 Convert bool to int64.
 
static int64 to_int64 (xtd::byte value) noexcept
 Convert xtd::byte to int64.
 
static int64 to_int64 (char value) noexcept
 Convert char to int64.
 
static int64 to_int64 (char8 value) noexcept
 Convert char8 to int64.
 
static int64 to_int64 (char16 value) noexcept
 Convert char16 to int64.
 
static int64 to_int64 (char32 value) noexcept
 Convert char32 to int64.
 
static int64 to_int64 (wchar value) noexcept
 Convert char32 to int64.
 
static int64 to_int64 (decimal value) noexcept
 Convert decimal to int64.
 
static int64 to_int64 (double value) noexcept
 Convert double to int64.
 
static int64 to_int64 (float value) noexcept
 Convert float to int64.
 
static int64 to_int64 (int16 value) noexcept
 Convert int16 to int64.
 
static int64 to_int64 (int32 value) noexcept
 Convert int32 to int64.
 
static int64 to_int64 (int64 value) noexcept
 Convert int64 to int64.
 
static int64 to_int64 (slong value) noexcept
 Convert slong to int64.
 
static int64 to_int64 (sbyte value) noexcept
 Convert sbyte to int64.
 
static int64 to_int64 (uint16 value) noexcept
 Convert uint16 to int64.
 
static int64 to_int64 (uint32 value) noexcept
 Convert uint32 to int64.
 
static int64 to_int64 (uint64 value)
 Convert uint64 to int64.
 
static int64 to_int64 (xtd::ulong value)
 Convert slong to int64.
 
static int64 to_int64 (const xtd::ustring &value)
 Convert string to int64.
 
static int64 to_int64 (const xtd::ustring &value, xtd::byte from_base)
 Convert string to int64.
 
template<typename type_t >
static int64 to_int64 (type_t value) noexcept
 Convert type_t to int64.
 
static slong to_llong (std::any value)
 Convert std::any to slong.
 
static slong to_llong (bool value) noexcept
 Convert bool to slong.
 
static slong to_llong (xtd::byte value) noexcept
 Convert xtd::byte to slong.
 
static slong to_llong (char value) noexcept
 Convert char to slong.
 
static slong to_llong (char8 value) noexcept
 Convert char8 to slong.
 
static slong to_llong (char16 value) noexcept
 Convert char16 to slong.
 
static slong to_llong (char32 value) noexcept
 Convert char32 to slong.
 
static slong to_llong (wchar value) noexcept
 Convert char32 to slong.
 
static slong to_llong (decimal value) noexcept
 Convert decimal to slong.
 
static slong to_llong (double value) noexcept
 Convert double to slong.
 
static slong to_llong (float value) noexcept
 Convert float to slong.
 
static slong to_llong (int16 value) noexcept
 Convert int16 to slong.
 
static slong to_llong (int32 value) noexcept
 Convert int32 to slong.
 
static slong to_llong (int64 value) noexcept
 Convert int64 to slong.
 
static slong to_llong (slong value) noexcept
 Convert slong to slong.
 
static slong to_llong (sbyte value) noexcept
 Convert sbyte to slong.
 
static slong to_llong (uint16 value) noexcept
 Convert uint16 to slong.
 
static slong to_llong (uint32 value) noexcept
 Convert uint32 to slong.
 
static slong to_llong (uint64 value)
 Convert uint64 to slong.
 
static slong to_llong (xtd::ulong value)
 Convert slong to slong.
 
static slong to_llong (const xtd::ustring &value)
 Convert string to slong.
 
static slong to_llong (const xtd::ustring &value, xtd::byte from_base)
 Convert string to slong.
 
template<typename type_t >
static slong to_llong (type_t value) noexcept
 Convert type_t to slong.
 
static sbyte to_sbyte (std::any value)
 Convert std::any to sbyte.
 
static sbyte to_sbyte (bool value) noexcept
 Convert bool to sbyte.
 
static sbyte to_sbyte (xtd::byte value) noexcept
 Convert xtd::byte to sbyte.
 
static sbyte to_sbyte (char value) noexcept
 Convert char to sbyte.
 
static sbyte to_sbyte (char8 value) noexcept
 Convert char8 to sbyte.
 
static sbyte to_sbyte (char16 value)
 Convert char16 to sbyte.
 
static sbyte to_sbyte (char32 value)
 Convert char32 to sbyte.
 
static sbyte to_sbyte (wchar value)
 Convert char32 to sbyte.
 
static sbyte to_sbyte (decimal value)
 Convert decimal to sbyte.
 
static sbyte to_sbyte (double value)
 Convert double to sbyte.
 
static sbyte to_sbyte (float value)
 Convert float to sbyte.
 
static sbyte to_sbyte (int16 value)
 Convert int16 to sbyte.
 
static sbyte to_sbyte (int32 value)
 Convert int32 to sbyte.
 
static sbyte to_sbyte (int64 value)
 Convert int64 to sbyte.
 
static sbyte to_sbyte (slong value)
 Convert slong to sbyte.
 
static sbyte to_sbyte (sbyte value)
 Convert sbyte to sbyte.
 
static sbyte to_sbyte (uint16 value)
 Convert uint16 to sbyte.
 
static sbyte to_sbyte (uint32 value)
 Convert uint32 to sbyte.
 
static sbyte to_sbyte (uint64 value)
 Convert uint64 to sbyte.
 
static sbyte to_sbyte (xtd::ulong value)
 Convert slong to sbyte.
 
static sbyte to_sbyte (const xtd::ustring &value)
 Convert string to sbyte.
 
static sbyte to_sbyte (const xtd::ustring &value, xtd::byte from_base)
 Convert string to sbyte.
 
template<typename type_t >
static sbyte to_sbyte (type_t value) noexcept
 Convert type_t to sbyte.
 
static uint16 to_uint16 (std::any value)
 Convert std::any to uint16.
 
static uint16 to_uint16 (bool value) noexcept
 Convert bool to uint16.
 
static uint16 to_uint16 (xtd::byte value) noexcept
 Convert xtd::byte to uint16.
 
static uint16 to_uint16 (char value) noexcept
 Convert char to uint16.
 
static uint16 to_uint16 (char8 value) noexcept
 Convert char8 to uint16.
 
static uint16 to_uint16 (char16 value) noexcept
 Convert char16 to uint16.
 
static uint16 to_uint16 (char32 value)
 Convert char32 to uint16.
 
static uint16 to_uint16 (wchar value) noexcept
 Convert char32 to uint16.
 
static uint16 to_uint16 (decimal value)
 Convert decimal to uint16.
 
static uint16 to_uint16 (double value)
 Convert double to uint16.
 
static uint16 to_uint16 (float value)
 Convert float to uint16.
 
static uint16 to_uint16 (int16 value)
 Convert int16 to uint16.
 
static uint16 to_uint16 (int32 value)
 Convert int32 to uint16.
 
static uint16 to_uint16 (int64 value)
 Convert int64 to uint16.
 
static uint16 to_uint16 (slong value)
 Convert slong to uint16.
 
static uint16 to_uint16 (sbyte value)
 Convert sbyte to uint16.
 
static uint16 to_uint16 (uint16 value) noexcept
 Convert uint16 to uint16.
 
static uint16 to_uint16 (uint32 value)
 Convert uint32 to uint16.
 
static uint16 to_uint16 (uint64 value)
 Convert uint64 to uint16.
 
static uint16 to_uint16 (xtd::ulong value)
 Convert slong to uint16.
 
static uint16 to_uint16 (const xtd::ustring &value)
 Convert string to uint16.
 
static uint16 to_uint16 (const xtd::ustring &value, xtd::byte from_base)
 Convert string to uint16.
 
template<typename type_t >
static uint16 to_uint16 (type_t value) noexcept
 Convert type_t to uint16.
 
static uint32 to_uint32 (std::any value)
 Convert std::any to uint32.
 
static uint32 to_uint32 (bool value) noexcept
 Convert bool to uint32.
 
static uint32 to_uint32 (xtd::byte value) noexcept
 Convert xtd::byte to uint32.
 
static uint32 to_uint32 (char value) noexcept
 Convert char to uint32.
 
static uint32 to_uint32 (char8 value) noexcept
 Convert char8 to uint32.
 
static uint32 to_uint32 (char16 value) noexcept
 Convert char16 to uint32.
 
static uint32 to_uint32 (char32 value) noexcept
 Convert char32 to uint32.
 
static uint32 to_uint32 (wchar value) noexcept
 Convert char32 to uint32.
 
static uint32 to_uint32 (decimal value)
 Convert decimal to uint32.
 
static uint32 to_uint32 (double value)
 Convert double to uint32.
 
static uint32 to_uint32 (float value)
 Convert float to uint32.
 
static uint32 to_uint32 (int16 value)
 Convert int16 to uint32.
 
static uint32 to_uint32 (int32 value)
 Convert int32 to uint32.
 
static uint32 to_uint32 (int64 value)
 Convert int64 to uint32.
 
static uint32 to_uint32 (slong value)
 Convert slong to uint32.
 
static uint32 to_uint32 (sbyte value)
 Convert sbyte to uint32.
 
static uint32 to_uint32 (uint16 value) noexcept
 Convert uint16 to uint32.
 
static uint32 to_uint32 (uint32 value) noexcept
 Convert uint32 to uint32.
 
static uint32 to_uint32 (uint64 value)
 Convert uint64 to uint32.
 
static uint32 to_uint32 (xtd::ulong value)
 Convert slong to uint32.
 
static uint32 to_uint32 (const xtd::ustring &value)
 Convert string to uint32.
 
static uint32 to_uint32 (const xtd::ustring &value, xtd::byte from_base)
 Convert string to uint32.
 
template<typename type_t >
static uint32 to_uint32 (type_t value) noexcept
 Convert type_t to uint32.
 
static uint64 to_uint64 (std::any value)
 Convert std::any to uint64.
 
static uint64 to_uint64 (bool value) noexcept
 Convert bool to uint64.
 
static uint64 to_uint64 (xtd::byte value) noexcept
 Convert xtd::byte to uint64.
 
static uint64 to_uint64 (char value) noexcept
 Convert char to uint64.
 
static uint64 to_uint64 (char8 value) noexcept
 Convert char8 to uint64.
 
static uint64 to_uint64 (char16 value) noexcept
 Convert char16 to uint64.
 
static uint64 to_uint64 (char32 value) noexcept
 Convert char32 to uint64.
 
static uint64 to_uint64 (wchar value) noexcept
 Convert char32 to uint64.
 
static uint64 to_uint64 (decimal value)
 Convert decimal to uint64.
 
static uint64 to_uint64 (double value)
 Convert double to uint64.
 
static uint64 to_uint64 (float value)
 Convert float to uint64.
 
static uint64 to_uint64 (int16 value)
 Convert int16 to uint64.
 
static uint64 to_uint64 (int32 value)
 Convert int32 to uint64.
 
static uint64 to_uint64 (int64 value)
 Convert int64 to uint64.
 
static uint64 to_uint64 (slong value)
 Convert slong to uint64.
 
static uint64 to_uint64 (sbyte value)
 Convert sbyte to uint64.
 
static uint64 to_uint64 (uint16 value) noexcept
 Convert uint16 to uint64.
 
static uint64 to_uint64 (uint32 value) noexcept
 Convert uint32 to uint64.
 
static uint64 to_uint64 (uint64 value) noexcept
 Convert uint64 to uint64.
 
static uint64 to_uint64 (xtd::ulong value) noexcept
 Convert slong to uint64.
 
static uint64 to_uint64 (const xtd::ustring &value)
 Convert string to uint64.
 
static uint64 to_uint64 (const xtd::ustring &value, xtd::byte from_base)
 Convert string to uint64.
 
template<typename type_t >
static uint64 to_uint64 (type_t value) noexcept
 Convert type_t to uint64.
 
static xtd::ulong to_ullong (std::any value)
 Convert std::any to xtd::ulong.
 
static xtd::ulong to_ullong (bool value) noexcept
 Convert bool to xtd::ulong.
 
static xtd::ulong to_ullong (xtd::byte value) noexcept
 Convert xtd::byte to xtd::ulong.
 
static xtd::ulong to_ullong (char value) noexcept
 Convert char to xtd::ulong.
 
static xtd::ulong to_ullong (char8 value) noexcept
 Convert char8 to xtd::ulong.
 
static xtd::ulong to_ullong (char16 value) noexcept
 Convert char16 to xtd::ulong.
 
static xtd::ulong to_ullong (char32 value) noexcept
 Convert char32 to xtd::ulong.
 
static xtd::ulong to_ullong (wchar value) noexcept
 Convert char32 to xtd::ulong.
 
static xtd::ulong to_ullong (decimal value)
 Convert decimal to xtd::ulong.
 
static xtd::ulong to_ullong (double value)
 Convert double to xtd::ulong.
 
static xtd::ulong to_ullong (float value)
 Convert float to xtd::ulong.
 
static xtd::ulong to_ullong (int16 value)
 Convert int16 to xtd::ulong.
 
static xtd::ulong to_ullong (int32 value)
 Convert int32 to xtd::ulong.
 
static xtd::ulong to_ullong (int64 value)
 Convert int64 to xtd::ulong.
 
static xtd::ulong to_ullong (slong value)
 Convert slong to xtd::ulong.
 
static xtd::ulong to_ullong (sbyte value)
 Convert sbyte to xtd::ulong.
 
static xtd::ulong to_ullong (uint16 value) noexcept
 Convert uint16 to xtd::ulong.
 
static xtd::ulong to_ullong (uint32 value) noexcept
 Convert uint32 to xtd::ulong.
 
static xtd::ulong to_ullong (uint64 value) noexcept
 Convert uint64 to xtd::ulong.
 
static xtd::ulong to_ullong (xtd::ulong value) noexcept
 Convert slong to xtd::ulong.
 
static xtd::ulong to_ullong (const xtd::ustring &value)
 Convert string to xtd::ulong.
 
static xtd::ulong to_ullong (const xtd::ustring &value, xtd::byte from_base)
 Convert string to xtd::ulong.
 
template<typename type_t >
static xtd::ulong to_ullong (type_t value) noexcept
 Convert type_t to xtd::ulong.
 
static ustring to_string (std::any value)
 Convert std::any to ustring.
 
static ustring to_string (bool value) noexcept
 Convert bool to ustring.
 
static ustring to_string (xtd::byte value) noexcept
 Convert xtd::byte to ustring.
 
static ustring to_string (xtd::byte value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_string (char value) noexcept
 Convert char to ustring.
 
static ustring to_string (char8 value) noexcept
 Convert char8 to ustring.
 
static ustring to_string (char16 value) noexcept
 Convert char16 to ustring.
 
static ustring to_string (char32 value) noexcept
 Convert char32 to ustring.
 
static ustring to_string (wchar value) noexcept
 Convert char32 to ustring.
 
static ustring to_string (decimal value)
 Convert decimal to ustring.
 
static ustring to_string (double value)
 Convert double to ustring.
 
static ustring to_string (float value)
 Convert float to ustring.
 
static ustring to_string (int16 value)
 Convert int16 to ustring.
 
static ustring to_string (int16 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_string (int32 value)
 Convert int32 to ustring.
 
static ustring to_string (int32 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_string (int64 value)
 Convert int64 to ustring.
 
static ustring to_string (int64 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_string (slong value)
 Convert slong to ustring.
 
static ustring to_string (slong value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_string (sbyte value)
 Convert sbyte to ustring.
 
static ustring to_string (sbyte value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_string (uint16 value) noexcept
 Convert uint16 to ustring.
 
static ustring to_string (uint16 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_string (uint32 value) noexcept
 Convert uint32 to ustring.
 
static ustring to_string (uint32 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_string (uint64 value) noexcept
 Convert uint64 to ustring.
 
static ustring to_string (uint64 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_string (xtd::ulong value) noexcept
 Convert slong to ustring.
 
static ustring to_string (xtd::ulong value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_string (const xtd::ustring &value)
 Convert string to ustring.
 
template<typename type_t >
static ustring to_string (type_t value) noexcept
 Convert type_t to ustring.
 
static ustring to_ustring (std::any value)
 Convert std::any to ustring.
 
static ustring to_ustring (bool value) noexcept
 Convert bool to ustring.
 
static ustring to_ustring (xtd::byte value) noexcept
 Convert xtd::byte to ustring.
 
static ustring to_ustring (xtd::byte value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_ustring (char value) noexcept
 Convert char to ustring.
 
static ustring to_ustring (char8 value) noexcept
 Convert char8 to ustring.
 
static ustring to_ustring (char16 value) noexcept
 Convert char16 to ustring.
 
static ustring to_ustring (char32 value) noexcept
 Convert char32 to ustring.
 
static ustring to_ustring (wchar value) noexcept
 Convert char32 to ustring.
 
static ustring to_ustring (decimal value)
 Convert decimal to ustring.
 
static ustring to_ustring (double value)
 Convert double to ustring.
 
static ustring to_ustring (float value)
 Convert float to ustring.
 
static ustring to_ustring (int16 value)
 Convert int16 to ustring.
 
static ustring to_ustring (int16 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_ustring (int32 value)
 Convert int32 to ustring.
 
static ustring to_ustring (int32 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_ustring (int64 value)
 Convert int64 to ustring.
 
static ustring to_ustring (int64 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_ustring (slong value)
 Convert slong to ustring.
 
static ustring to_ustring (slong value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_ustring (sbyte value)
 Convert sbyte to ustring.
 
static ustring to_ustring (sbyte value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_ustring (uint16 value) noexcept
 Convert uint16 to ustring.
 
static ustring to_ustring (uint16 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_ustring (uint32 value) noexcept
 Convert uint32 to ustring.
 
static ustring to_ustring (uint32 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_ustring (uint64 value) noexcept
 Convert uint64 to ustring.
 
static ustring to_ustring (uint64 value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_ustring (xtd::ulong value) noexcept
 Convert slong to ustring.
 
static ustring to_ustring (xtd::ulong value, xtd::byte from_base)
 Convert string to ustring.
 
static ustring to_ustring (const xtd::ustring &value)
 Convert string to ustring.
 
template<typename type_t >
static ustring to_ustring (type_t value) noexcept
 Convert type_t to ustring.
 

Member Function Documentation

◆ to_any() [1/22]

static std::any xtd::convert::to_any ( bool  value)
staticnoexcept

Convert bool to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
bool value = true;
any result = convert::to_any(value);
static std::any to_any(std::any value) noexcept
Convert std::any to std::any.
@ any
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...

◆ to_any() [2/22]

static std::any xtd::convert::to_any ( char  value)
staticnoexcept

Convert char to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
char value = 'a';
any result = convert::to_any(value);

◆ to_any() [3/22]

static std::any xtd::convert::to_any ( char16  value)
staticnoexcept

Convert char16 to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
char16 value = u'a';
any result = convert::to_any(value);
char16_t char16
Represents a 16-bit unicode character.
Definition types.h:76
@ u
The U key.

◆ to_any() [4/22]

static std::any xtd::convert::to_any ( char32  value)
staticnoexcept

Convert char32 to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
char32 value = U'a';
any result = convert::to_any(value);
char32_t char32
Represents a 32-bit unicode character.
Definition types.h:87

◆ to_any() [5/22]

static std::any xtd::convert::to_any ( char8  value)
static

Convert char8 to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Examples
char8 value = u8'a';
any result = convert::to_any(value);
char8_t char8
Represents a 8-bit unicode character.
Definition types.h:64

◆ to_any() [6/22]

static std::any xtd::convert::to_any ( const xtd::ustring value)
staticnoexcept

Convert string to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
ustring value = "42";
any result = convert::to_any(value);
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47

◆ to_any() [7/22]

static std::any xtd::convert::to_any ( decimal  value)
staticnoexcept

Convert decimal to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
decimal value = 42.50l;
any result = convert::to_any(value);
long double decimal
Represents a decimal-precision floating-point number.
Definition types.h:98

◆ to_any() [8/22]

static std::any xtd::convert::to_any ( double  value)
staticnoexcept

Convert double to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
double value = 42.50;
any result = convert::to_any(value);

◆ to_any() [9/22]

static std::any xtd::convert::to_any ( float  value)
staticnoexcept

Convert float to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.

Convert double to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
float value = 42.50f;
any result = convert::to_any(value);

◆ to_any() [10/22]

static std::any xtd::convert::to_any ( int16  value)
staticnoexcept

Convert int16 to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
int16 value = 42;
any result = convert::to_any(value);
int_least16_t int16
Represents a 16-bit signed integer.
Definition types.h:120

◆ to_any() [11/22]

static std::any xtd::convert::to_any ( int32  value)
staticnoexcept

Convert int32 to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
int32 value = 42;
any result = convert::to_any(value);
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131

◆ to_any() [12/22]

static std::any xtd::convert::to_any ( int64  value)
staticnoexcept

Convert int64 to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
int6_4t value = 42l;
any result = convert::to_any(value);

◆ to_any() [13/22]

static std::any xtd::convert::to_any ( sbyte  value)
staticnoexcept

Convert sbyte to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
sbyte value = 42;
any result = convert::to_any(value);
int_least8_t sbyte
Represents a 8-bit signed integer.
Definition types.h:175

◆ to_any() [14/22]

static std::any xtd::convert::to_any ( slong  value)
staticnoexcept

Convert slong to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
slong value = 42ll;
any result = convert::to_any(value);
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition types.h:208

◆ to_any() [15/22]

static std::any xtd::convert::to_any ( std::any  value)
staticnoexcept

Convert std::any to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
std::any value = true;
any result = convert::to_any(value);

◆ to_any() [16/22]

template<typename type_t >
static std::any xtd::convert::to_any ( type_t  value)
inlinestatic

Convert type_t to bool.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
address_family value = address_family::inter_network;
any result = convert::to_any(value);

◆ to_any() [17/22]

static std::any xtd::convert::to_any ( uint16  value)
staticnoexcept

Convert uint16 to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
uint16 value = 42u;
any result = convert::to_any(value);
uint_least16_t uint16
Represents a 16-bit unsigned integer.
Definition types.h:230

◆ to_any() [18/22]

static std::any xtd::convert::to_any ( uint32  value)
staticnoexcept

Convert uint32 to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
uint32 value = 42u;
any result = convert::to_any(value);
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition types.h:241

◆ to_any() [19/22]

static std::any xtd::convert::to_any ( uint64  value)
staticnoexcept

Convert uint64 to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
uint64 value = 42ul;
any result = convert::to_any(value);
uint_least64_t uint64
Represents a 64-bit unsigned integer.
Definition types.h:252

◆ to_any() [20/22]

static std::any xtd::convert::to_any ( wchar  value)
staticnoexcept

Convert wchar to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
wchar value = L'a';
any result = convert::to_any(value);
wchar_t wchar
Represents a wide character.
Definition types.h:286

◆ to_any() [21/22]

static std::any xtd::convert::to_any ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
xtd::byte value = 42;
any result = convert::to_any(value);
uint_least8_t byte
Represents a 8-bit unsigned integer.
Definition types.h:41

◆ to_any() [22/22]

static std::any xtd::convert::to_any ( xtd::ulong  value)
staticnoexcept

Convert slong to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
xtd::ulong value = 42ull;
any result = convert::to_any(value);
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition types.h:274

◆ to_boolean() [1/22]

static bool xtd::convert::to_boolean ( bool  value)
staticnoexcept

Convert bool to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
bool value = true;
bool result = convert::to_boolean(value);
static bool to_boolean(std::any value)
Convert std::any to bool.

◆ to_boolean() [2/22]

static bool xtd::convert::to_boolean ( char  value)
static

Convert char to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Examples
char value = 'a';
bool result = convert::to_boolean(value);

◆ to_boolean() [3/22]

static bool xtd::convert::to_boolean ( char16  value)
static

Convert char16 to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Examples
char16 value = u'a';
bool result = convert::to_boolean(value);

◆ to_boolean() [4/22]

static bool xtd::convert::to_boolean ( char32  value)
static

Convert char32 to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Examples
char32 value = U'a';
bool result = convert::to_boolean(value);

◆ to_boolean() [5/22]

static bool xtd::convert::to_boolean ( char8  value)
static

Convert char8 to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Examples
char8 value = u8'a';
bool result = convert::to_boolean(value);

◆ to_boolean() [6/22]

static bool xtd::convert::to_boolean ( const xtd::ustring value)
static

Convert string to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a bool.
Examples
ustring value = "42";
bool result = convert::to_boolean(value);

◆ to_boolean() [7/22]

static bool xtd::convert::to_boolean ( decimal  value)
staticnoexcept

Convert decimal to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
decimal value = 42.50l;
bool result = convert::to_boolean(value);

◆ to_boolean() [8/22]

static bool xtd::convert::to_boolean ( double  value)
staticnoexcept

Convert double to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
double value = 42.50;
bool result = convert::to_boolean(value);

◆ to_boolean() [9/22]

static bool xtd::convert::to_boolean ( float  value)
staticnoexcept

Convert float to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.

Convert double to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
float value = 42.50f;
bool result = convert::to_boolean(value);

◆ to_boolean() [10/22]

static bool xtd::convert::to_boolean ( int16  value)
staticnoexcept

Convert int16 to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
int16 value = 42;
bool result = convert::to_boolean(value);

◆ to_boolean() [11/22]

static bool xtd::convert::to_boolean ( int32  value)
staticnoexcept

Convert int32 to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
int32 value = 42;
bool result = convert::to_boolean(value);

◆ to_boolean() [12/22]

static bool xtd::convert::to_boolean ( int64  value)
staticnoexcept

Convert int64 to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
int6_4t value = 42l;
bool result = convert::to_boolean(value);

◆ to_boolean() [13/22]

static bool xtd::convert::to_boolean ( sbyte  value)
staticnoexcept

Convert sbyte to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
sbyte value = 42;
bool result = convert::to_boolean(value);

◆ to_boolean() [14/22]

static bool xtd::convert::to_boolean ( slong  value)
staticnoexcept

Convert slong to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
slong value = 42ll;
bool result = convert::to_boolean(value);

◆ to_boolean() [15/22]

static bool xtd::convert::to_boolean ( std::any  value)
static

Convert std::any to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Examples
std::any value = true;
bool result = convert::to_boolean(value);

◆ to_boolean() [16/22]

template<typename type_t >
static bool xtd::convert::to_boolean ( type_t  value)
inlinestaticnoexcept

Convert type_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
address_family value = address_family::inter_network;
bool result = convert::to_boolean(value);

◆ to_boolean() [17/22]

static bool xtd::convert::to_boolean ( uint16  value)
staticnoexcept

Convert uint16 to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
uint16 value = 42u;
bool result = convert::to_boolean(value);

◆ to_boolean() [18/22]

static bool xtd::convert::to_boolean ( uint32  value)
staticnoexcept

Convert uint32 to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
uint32 value = 42u;
bool result = convert::to_boolean(value);

◆ to_boolean() [19/22]

static bool xtd::convert::to_boolean ( uint64  value)
staticnoexcept

Convert uint64 to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
uint64 value = 42ul;
bool result = convert::to_boolean(value);

◆ to_boolean() [20/22]

static bool xtd::convert::to_boolean ( wchar  value)
static

Convert wchar to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Examples
wchar value = L'a';
bool result = convert::to_boolean(value);

◆ to_boolean() [21/22]

static bool xtd::convert::to_boolean ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
xtd::byte value = 42;
bool result = convert::to_boolean(value);

◆ to_boolean() [22/22]

static bool xtd::convert::to_boolean ( xtd::ulong  value)
staticnoexcept

Convert slong to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
xtd::ulong value = 42ull;
bool result = convert::to_boolean(value);

◆ to_byte() [1/23]

static xtd::byte xtd::convert::to_byte ( bool  value)
staticnoexcept

Convert bool to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Examples
bool value = true;
xtd::byte result = convert::to_byte(value);
static xtd::byte to_byte(std::any value)
Convert std::any to byte.

◆ to_byte() [2/23]

static xtd::byte xtd::convert::to_byte ( char  value)
staticnoexcept

Convert char to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Examples
char value = 'a';
xtd::byte result = convert::to_byte(value);

◆ to_byte() [3/23]

static xtd::byte xtd::convert::to_byte ( char16  value)
static

Convert char16 to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char16 value = u'a';
xtd::byte result = convert::to_byte(value);

◆ to_byte() [4/23]

static xtd::byte xtd::convert::to_byte ( char32  value)
static

Convert char32 to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char32 value = U'a';
xtd::byte result = convert::to_byte(value);

◆ to_byte() [5/23]

static xtd::byte xtd::convert::to_byte ( char8  value)
staticnoexcept

Convert char8 to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Examples
char8 value = u8'a';
xtd::byte result = convert::to_byte(value);

◆ to_byte() [6/23]

static xtd::byte xtd::convert::to_byte ( const xtd::ustring value)
static

Convert string to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
xtd::byte result = convert::to_byte(value);

◆ to_byte() [7/23]

static xtd::byte xtd::convert::to_byte ( const xtd::ustring value,
xtd::byte  from_base 
)
static

Convert string to byte.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
xtd::byte result = convert::to_byte(value);

◆ to_byte() [8/23]

static xtd::byte xtd::convert::to_byte ( decimal  value)
static

Convert decimal to byte.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Returns
A new xtd::byte object converted from value.
Examples
decimal value = 42.50l;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [9/23]

static xtd::byte xtd::convert::to_byte ( double  value)
static

Convert double to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [10/23]

static xtd::byte xtd::convert::to_byte ( float  value)
static

Convert float to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
float value = 42.50f;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [11/23]

static xtd::byte xtd::convert::to_byte ( int16  value)
static

Convert int16 to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int16 value = 42;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [12/23]

static xtd::byte xtd::convert::to_byte ( int32  value)
static

Convert int32 to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [13/23]

static xtd::byte xtd::convert::to_byte ( int64  value)
static

Convert int64 to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
xtd::byte result = convert::to_byte(value);
int_least64_t int64
Represents a 64-bit signed integer.
Definition types.h:142

◆ to_byte() [14/23]

static xtd::byte xtd::convert::to_byte ( sbyte  value)
static

Convert sbyte to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte value = 42;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [15/23]

static xtd::byte xtd::convert::to_byte ( slong  value)
static

Convert slong to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [16/23]

static xtd::byte xtd::convert::to_byte ( std::any  value)
static

Convert std::any to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Examples
std::any value = 42;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [17/23]

template<typename type_t >
static xtd::byte xtd::convert::to_byte ( type_t  value)
inlinestaticnoexcept

Convert type_t to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Examples
address_family value = address_family::inter_network;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [18/23]

static xtd::byte xtd::convert::to_byte ( uint16  value)
static

Convert uint16 to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint16 value = 42u;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [19/23]

static xtd::byte xtd::convert::to_byte ( uint32  value)
static

Convert uint32 to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint32 value = 42u;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [20/23]

static xtd::byte xtd::convert::to_byte ( uint64  value)
static

Convert uint64 to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [21/23]

static xtd::byte xtd::convert::to_byte ( wchar  value)
static

Convert char32 to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
wchar value = L'a';
xtd::byte result = convert::to_byte(value);

◆ to_byte() [22/23]

static xtd::byte xtd::convert::to_byte ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Examples
xtd::byte value = 42;
xtd::byte result = convert::to_byte(value);

◆ to_byte() [23/23]

static xtd::byte xtd::convert::to_byte ( xtd::ulong  value)
static

Convert slong to byte.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
xtd::byte result = convert::to_byte(value);

◆ to_char() [1/22]

static char xtd::convert::to_char ( bool  value)
static

Convert bool to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
bool value = true;
char result = convert::to_char(value);
static char to_char(std::any value)
Convert std::any to char.

◆ to_char() [2/22]

static char xtd::convert::to_char ( char  value)
staticnoexcept

Convert char to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
char value = 'a';
char result = convert::to_char(value);

◆ to_char() [3/22]

static char xtd::convert::to_char ( char16  value)
static

Convert char16 to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char16 value = u'a';
char result = convert::to_char(value);

◆ to_char() [4/22]

static char xtd::convert::to_char ( char32  value)
static

Convert char32 to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char32 value = U'a';
char result = convert::to_char(value);

◆ to_char() [5/22]

static char xtd::convert::to_char ( char8  value)
staticnoexcept

Convert char8 to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
char8 value = u8'a';
char result = convert::to_char(value);

◆ to_char() [6/22]

static char xtd::convert::to_char ( const xtd::ustring value)
static

Convert string to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
char result = convert::to_char(value);

◆ to_char() [7/22]

static char xtd::convert::to_char ( decimal  value)
static

Convert decimal to char.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new char object converted from value.
Examples
decimal value = 42.50l;
char result = convert::to_char(value);

◆ to_char() [8/22]

static char xtd::convert::to_char ( double  value)
static

Convert double to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
char result = convert::to_char(value);

◆ to_char() [9/22]

static char xtd::convert::to_char ( float  value)
static

Convert float to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
float value = 42.50f;
char result = convert::to_char(value);

◆ to_char() [10/22]

static char xtd::convert::to_char ( int16  value)
static

Convert int16 to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int16 value = 42;
char result = convert::to_char(value);

◆ to_char() [11/22]

static char xtd::convert::to_char ( int32  value)
static

Convert int32 to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
char result = convert::to_char(value);

◆ to_char() [12/22]

static char xtd::convert::to_char ( int64  value)
static

Convert int64 to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
char result = convert::to_char(value);

◆ to_char() [13/22]

static char xtd::convert::to_char ( sbyte  value)
static

Convert sbyte to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte value = 42;
char result = convert::to_char(value);

◆ to_char() [14/22]

static char xtd::convert::to_char ( slong  value)
static

Convert slong to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
char result = convert::to_char(value);

◆ to_char() [15/22]

static char xtd::convert::to_char ( std::any  value)
static

Convert std::any to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
std::any value = 42;
char result = convert::to_char(value);

◆ to_char() [16/22]

template<typename type_t >
static char xtd::convert::to_char ( type_t  value)
inlinestaticnoexcept

Convert type_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
address_family value = address_family::inter_network;
char result = convert::to_char(value);

◆ to_char() [17/22]

static char xtd::convert::to_char ( uint16  value)
static

Convert uint16 to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint16 value = 42u;
char result = convert::to_char(value);

◆ to_char() [18/22]

static char xtd::convert::to_char ( uint32  value)
static

Convert uint32 to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint32 value = 42u;
char result = convert::to_char(value);

◆ to_char() [19/22]

static char xtd::convert::to_char ( uint64  value)
static

Convert uint64 to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
char result = convert::to_char(value);

◆ to_char() [20/22]

static char xtd::convert::to_char ( wchar  value)
static

Convert char32 to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
wchar value = L'a';
char result = convert::to_char(value);

◆ to_char() [21/22]

static char xtd::convert::to_char ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
xtd::byte value = 42;
char result = convert::to_char(value);

◆ to_char() [22/22]

static char xtd::convert::to_char ( xtd::ulong  value)
static

Convert slong to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
char result = convert::to_char(value);

◆ to_char16() [1/22]

static char16 xtd::convert::to_char16 ( bool  value)
static

Convert bool to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Examples
bool value = true;
char16 result = convert::to_char16(value);
static char16 to_char16(std::any value)
Convert std::any to char16.

◆ to_char16() [2/22]

static char16 xtd::convert::to_char16 ( char  value)
staticnoexcept

Convert char to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Examples
char value = 'a';
char16 result = convert::to_char16(value);

◆ to_char16() [3/22]

static char16 xtd::convert::to_char16 ( char16  value)
staticnoexcept

Convert char16 to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Examples
char16 value = u'a';
char16 result = convert::to_char16(value);

◆ to_char16() [4/22]

static char16 xtd::convert::to_char16 ( char32  value)
static

Convert char32 to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char32 value = U'a';
char16 result = convert::to_char16(value);

◆ to_char16() [5/22]

static char16 xtd::convert::to_char16 ( char8  value)
staticnoexcept

Convert char8 to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Examples
char8 value = u8'a';
char16 result = convert::to_char16(value);

◆ to_char16() [6/22]

static char16 xtd::convert::to_char16 ( const xtd::ustring value)
static

Convert string to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
char16 result = convert::to_char16(value);

◆ to_char16() [7/22]

static char16 xtd::convert::to_char16 ( decimal  value)
static

Convert decimal to char16.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new char16 object converted from value.
Examples
decimal value = 42.50l;
char16 result = convert::to_char16(value);

◆ to_char16() [8/22]

static char16 xtd::convert::to_char16 ( double  value)
static

Convert double to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
char16 result = convert::to_char16(value);

◆ to_char16() [9/22]

static char16 xtd::convert::to_char16 ( float  value)
static

Convert float to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
float value = 42.50f;
char16 result = convert::to_char16(value);

◆ to_char16() [10/22]

static char16 xtd::convert::to_char16 ( int16  value)
static

Convert int16 to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int16 value = 42;
char16 result = convert::to_char16(value);

◆ to_char16() [11/22]

static char16 xtd::convert::to_char16 ( int32  value)
static

Convert int32 to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
char16 result = convert::to_char16(value);

◆ to_char16() [12/22]

static char16 xtd::convert::to_char16 ( int64  value)
static

Convert int64 to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
char16 result = convert::to_char16(value);

◆ to_char16() [13/22]

static char16 xtd::convert::to_char16 ( sbyte  value)
static

Convert sbyte to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte value = 42;
char16 result = convert::to_char16(value);

◆ to_char16() [14/22]

static char16 xtd::convert::to_char16 ( slong  value)
static

Convert slong to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
char16 result = convert::to_char16(value);

◆ to_char16() [15/22]

static char16 xtd::convert::to_char16 ( std::any  value)
static

Convert std::any to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Examples
std::any value = 42;
char16 result = convert::to_char16(value);

◆ to_char16() [16/22]

template<typename type_t >
static char16 xtd::convert::to_char16 ( type_t  value)
inlinestaticnoexcept

Convert type_t to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Examples
address_family value = address_family::inter_network;
char16 result = convert::to_char16(value);

◆ to_char16() [17/22]

static char16 xtd::convert::to_char16 ( uint16  value)
staticnoexcept

Convert uint16 to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Examples
uint16 value = 42u;
char16 result = convert::to_char16(value);

◆ to_char16() [18/22]

static char16 xtd::convert::to_char16 ( uint32  value)
static

Convert uint32 to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint32 value = 42u;
char16 result = convert::to_char16(value);

◆ to_char16() [19/22]

static char16 xtd::convert::to_char16 ( uint64  value)
static

Convert uint64 to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
char16 result = convert::to_char16(value);

◆ to_char16() [20/22]

static char16 xtd::convert::to_char16 ( wchar  value)
staticnoexcept

Convert char32 to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Examples
wchar value = L'a';
char16 result = convert::to_char16(value);

◆ to_char16() [21/22]

static char16 xtd::convert::to_char16 ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Examples
xtd::byte value = 42;
char16 result = convert::to_char16(value);

◆ to_char16() [22/22]

static char16 xtd::convert::to_char16 ( xtd::ulong  value)
static

Convert slong to char16.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
char16 result = convert::to_char16(value);

◆ to_char32() [1/22]

static char32 xtd::convert::to_char32 ( bool  value)
static

Convert bool to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
bool value = true;
char32 result = convert::to_char32(value);
static char32 to_char32(std::any value)
Convert std::any to char32.

◆ to_char32() [2/22]

static char32 xtd::convert::to_char32 ( char  value)
staticnoexcept

Convert char to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
char value = 'a';
char32 result = convert::to_char32(value);

◆ to_char32() [3/22]

static char32 xtd::convert::to_char32 ( char16  value)
staticnoexcept

Convert char16 to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
char16 value = u'a';
char32 result = convert::to_char32(value);

◆ to_char32() [4/22]

static char32 xtd::convert::to_char32 ( char32  value)
staticnoexcept

Convert char32 to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
char32 value = U'a';
char32 result = convert::to_char32(value);

◆ to_char32() [5/22]

static char32 xtd::convert::to_char32 ( char8  value)
staticnoexcept

Convert char8 to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
char8 value = u8'a';
char32 result = convert::to_char32(value);

◆ to_char32() [6/22]

static char32 xtd::convert::to_char32 ( const xtd::ustring value)
static

Convert string to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
char32 result = convert::to_char32(value);

◆ to_char32() [7/22]

static char32 xtd::convert::to_char32 ( decimal  value)
static

Convert decimal to char32.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new char32 object converted from value.
Examples
decimal value = 42.50l;
char32 result = convert::to_char32(value);

◆ to_char32() [8/22]

static char32 xtd::convert::to_char32 ( double  value)
static

Convert double to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
char32 result = convert::to_char32(value);

◆ to_char32() [9/22]

static char32 xtd::convert::to_char32 ( float  value)
static

Convert float to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
float value = 42.50f;
char32 result = convert::to_char32(value);

◆ to_char32() [10/22]

static char32 xtd::convert::to_char32 ( int16  value)
static

Convert int16 to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int16 value = 42;
char32 result = convert::to_char32(value);

◆ to_char32() [11/22]

static char32 xtd::convert::to_char32 ( int32  value)
static

Convert int32 to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
char32 result = convert::to_char32(value);

◆ to_char32() [12/22]

static char32 xtd::convert::to_char32 ( int64  value)
static

Convert int64 to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
char32 result = convert::to_char32(value);

◆ to_char32() [13/22]

static char32 xtd::convert::to_char32 ( sbyte  value)
static

Convert sbyte to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte value = 42;
char32 result = convert::to_char32(value);

◆ to_char32() [14/22]

static char32 xtd::convert::to_char32 ( slong  value)
static

Convert slong to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
char32 result = convert::to_char32(value);

◆ to_char32() [15/22]

static char32 xtd::convert::to_char32 ( std::any  value)
static

Convert std::any to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
std::any value = 42;
char32 result = convert::to_char32(value);

◆ to_char32() [16/22]

template<typename type_t >
static char32 xtd::convert::to_char32 ( type_t  value)
inlinestaticnoexcept

Convert type_t to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
address_family value = address_family::inter_network;
char32 result = convert::to_char32(value);

◆ to_char32() [17/22]

static char32 xtd::convert::to_char32 ( uint16  value)
staticnoexcept

Convert uint16 to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
uint16 value = 42u;
char32 result = convert::to_char32(value);

◆ to_char32() [18/22]

static char32 xtd::convert::to_char32 ( uint32  value)
staticnoexcept

Convert uint32 to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
uint32 value = 42u;
char32 result = convert::to_char32(value);

◆ to_char32() [19/22]

static char32 xtd::convert::to_char32 ( uint64  value)
static

Convert uint64 to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
char32 result = convert::to_char32(value);

◆ to_char32() [20/22]

static char32 xtd::convert::to_char32 ( wchar  value)
staticnoexcept

Convert char32 to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
wchar value = L'a';
char32 result = convert::to_char32(value);

◆ to_char32() [21/22]

static char32 xtd::convert::to_char32 ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Examples
xtd::byte value = 42;
char32 result = convert::to_char32(value);

◆ to_char32() [22/22]

static char32 xtd::convert::to_char32 ( xtd::ulong  value)
static

Convert slong to char32.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
char32 result = convert::to_char32(value);

◆ to_char8() [1/22]

static char8 xtd::convert::to_char8 ( bool  value)
static

Convert bool to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Examples
bool value = true;
char8 result = convert::to_char8(value);
static char8 to_char8(std::any value)
Convert std::any to char8.

◆ to_char8() [2/22]

static char8 xtd::convert::to_char8 ( char  value)
staticnoexcept

Convert char to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Examples
char value = 'a';
char8 result = convert::to_char8(value);

◆ to_char8() [3/22]

static char8 xtd::convert::to_char8 ( char16  value)
static

Convert char16 to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char16 value = u'a';
char8 result = convert::to_char8(value);

◆ to_char8() [4/22]

static char8 xtd::convert::to_char8 ( char32  value)
static

Convert char32 to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char32 value = U'a';
char8 result = convert::to_char8(value);

◆ to_char8() [5/22]

static char8 xtd::convert::to_char8 ( char8  value)
staticnoexcept

Convert char8 to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Examples
char8 value = u8'a';
char8 result = convert::to_char8(value);

◆ to_char8() [6/22]

static char8 xtd::convert::to_char8 ( const xtd::ustring value)
static

Convert string to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
char8 result = convert::to_char8(value);

◆ to_char8() [7/22]

static char8 xtd::convert::to_char8 ( decimal  value)
static

Convert decimal to char8.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new char8 object converted from value.
Examples
decimal value = 42.50l;
char8 result = convert::to_char8(value);

◆ to_char8() [8/22]

static char8 xtd::convert::to_char8 ( double  value)
static

Convert double to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
char8 result = convert::to_char8(value);

◆ to_char8() [9/22]

static char8 xtd::convert::to_char8 ( float  value)
static

Convert float to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
float value = 42.50f;
char8 result = convert::to_char8(value);

◆ to_char8() [10/22]

static char8 xtd::convert::to_char8 ( int16  value)
static

Convert int16 to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int16 value = 42;
char8 result = convert::to_char8(value);

◆ to_char8() [11/22]

static char8 xtd::convert::to_char8 ( int32  value)
static

Convert int32 to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
char8 result = convert::to_char8(value);

◆ to_char8() [12/22]

static char8 xtd::convert::to_char8 ( int64  value)
static

Convert int64 to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
char8 result = convert::to_char8(value);

◆ to_char8() [13/22]

static char8 xtd::convert::to_char8 ( sbyte  value)
static

Convert sbyte to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte value = 42;
char8 result = convert::to_char8(value);

◆ to_char8() [14/22]

static char8 xtd::convert::to_char8 ( slong  value)
static

Convert slong to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
char8 result = convert::to_char8(value);

◆ to_char8() [15/22]

static char8 xtd::convert::to_char8 ( std::any  value)
static

Convert std::any to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Examples
std::any value = 42;
char8 result = convert::to_char8(value);

◆ to_char8() [16/22]

template<typename type_t >
static char8 xtd::convert::to_char8 ( type_t  value)
inlinestaticnoexcept

Convert type_t to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Examples
address_family value = address_family::inter_network;
char8 result = convert::to_char8(value);

◆ to_char8() [17/22]

static char8 xtd::convert::to_char8 ( uint16  value)
static

Convert uint16 to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint16 value = 42u;
char8 result = convert::to_char8(value);

◆ to_char8() [18/22]

static char8 xtd::convert::to_char8 ( uint32  value)
static

Convert uint32 to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint32 value = 42u;
char8 result = convert::to_char8(value);

◆ to_char8() [19/22]

static char8 xtd::convert::to_char8 ( uint64  value)
static

Convert uint64 to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
char8 result = convert::to_char8(value);

◆ to_char8() [20/22]

static char8 xtd::convert::to_char8 ( wchar  value)
static

Convert char32 to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
wchar value = L'a';
char8 result = convert::to_char8(value);

◆ to_char8() [21/22]

static char8 xtd::convert::to_char8 ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Examples
xtd::byte value = 42;
char8 result = convert::to_char8(value);

◆ to_char8() [22/22]

static char8 xtd::convert::to_char8 ( xtd::ulong  value)
static

Convert slong to char8.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
char8 result = convert::to_char8(value);

◆ to_decimal() [1/22]

static decimal xtd::convert::to_decimal ( bool  value)
staticnoexcept

Convert bool to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
bool value = true;
decimal result = convert::to_decimal(value);
static decimal to_decimal(std::any value)
Convert std::any to decimal.

◆ to_decimal() [2/22]

static decimal xtd::convert::to_decimal ( char  value)
staticnoexcept

Convert char to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
char value = 'a';
decimal result = convert::to_decimal(value);

◆ to_decimal() [3/22]

static decimal xtd::convert::to_decimal ( char16  value)
staticnoexcept

Convert char16 to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
char16 value = u'a';
decimal result = convert::to_decimal(value);

◆ to_decimal() [4/22]

static decimal xtd::convert::to_decimal ( char32  value)
staticnoexcept

Convert char32 to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
char32 value = U'a';
decimal result = convert::to_decimal(value);

◆ to_decimal() [5/22]

static decimal xtd::convert::to_decimal ( char8  value)
staticnoexcept

Convert char8 to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
char8 value = u8'a';
decimal result = convert::to_decimal(value);

◆ to_decimal() [6/22]

static decimal xtd::convert::to_decimal ( const xtd::ustring value)
static

Convert string to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
decimal result = convert::to_decimal(value);

◆ to_decimal() [7/22]

static decimal xtd::convert::to_decimal ( decimal  value)
staticnoexcept

Convert decimal to decimal.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new decimal object converted from value.
Examples
decimal value = 42.50l;
decimal result = convert::to_decimal(value);

◆ to_decimal() [8/22]

static decimal xtd::convert::to_decimal ( double  value)
staticnoexcept

Convert double to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Remarks
The result is rounded.
Examples
double value = 42.50;
decimal result = convert::to_decimal(value);

◆ to_decimal() [9/22]

static decimal xtd::convert::to_decimal ( float  value)
staticnoexcept

Convert float to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
decimal result = convert::to_decimal(value);

◆ to_decimal() [10/22]

static decimal xtd::convert::to_decimal ( int16  value)
staticnoexcept

Convert int16 to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
int16 value = 42;
decimal result = convert::to_decimal(value);

◆ to_decimal() [11/22]

static decimal xtd::convert::to_decimal ( int32  value)
staticnoexcept

Convert int32 to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
int32 value = 42;
decimal result = convert::to_decimal(value);

◆ to_decimal() [12/22]

static decimal xtd::convert::to_decimal ( int64  value)
staticnoexcept

Convert int64 to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
int64 value = 42l;
decimal result = convert::to_decimal(value);

◆ to_decimal() [13/22]

static decimal xtd::convert::to_decimal ( sbyte  value)
staticnoexcept

Convert sbyte to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
sbyte value = 42;
decimal result = convert::to_decimal(value);

◆ to_decimal() [14/22]

static decimal xtd::convert::to_decimal ( slong  value)
staticnoexcept

Convert slong to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
slong value = 42ll;
decimal result = convert::to_decimal(value);

◆ to_decimal() [15/22]

static decimal xtd::convert::to_decimal ( std::any  value)
static

Convert std::any to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
std::any value = 42;
decimal result = convert::to_decimal(value);

◆ to_decimal() [16/22]

template<typename type_t >
static decimal xtd::convert::to_decimal ( type_t  value)
inlinestaticnoexcept

Convert type_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
address_family value = address_family::inter_network;
decimal result = convert::to_decimal(value);

◆ to_decimal() [17/22]

static decimal xtd::convert::to_decimal ( uint16  value)
staticnoexcept

Convert uint16 to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
uint16 value = 42u;
decimal result = convert::to_decimal(value);

◆ to_decimal() [18/22]

static decimal xtd::convert::to_decimal ( uint32  value)
staticnoexcept

Convert uint32 to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
uint32 value = 42u;
decimal result = convert::to_decimal(value);

◆ to_decimal() [19/22]

static decimal xtd::convert::to_decimal ( uint64  value)
staticnoexcept

Convert uint64 to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
uint64t value = 42ul;
decimal result = convert::to_decimal(value);

◆ to_decimal() [20/22]

static decimal xtd::convert::to_decimal ( wchar  value)
staticnoexcept

Convert char32 to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
wchar value = L'a';
decimal result = convert::to_decimal(value);

◆ to_decimal() [21/22]

static decimal xtd::convert::to_decimal ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
xtd::byte value = 42;
decimal result = convert::to_decimal(value);

◆ to_decimal() [22/22]

static decimal xtd::convert::to_decimal ( xtd::ulong  value)
staticnoexcept

Convert slong to decimal.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Examples
xtd::ulong value = 42ull;
decimal result = convert::to_decimal(value);

◆ to_double() [1/22]

static double xtd::convert::to_double ( bool  value)
staticnoexcept

Convert bool to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
bool value = true;
double result = convert::to_double(value);
static double to_double(std::any value)
Convert std::any to double.

◆ to_double() [2/22]

static double xtd::convert::to_double ( char  value)
staticnoexcept

Convert char to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
char value = 'a';
double result = convert::to_double(value);

◆ to_double() [3/22]

static double xtd::convert::to_double ( char16  value)
staticnoexcept

Convert char16 to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
char16 value = u'a';
double result = convert::to_double(value);

◆ to_double() [4/22]

static double xtd::convert::to_double ( char32  value)
staticnoexcept

Convert char32 to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
char32 value = U'a';
double result = convert::to_double(value);

◆ to_double() [5/22]

static double xtd::convert::to_double ( char8  value)
staticnoexcept

Convert char8 to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
char8 value = u8'a';
double result = convert::to_double(value);

◆ to_double() [6/22]

static double xtd::convert::to_double ( const xtd::ustring value)
static

Convert string to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
double result = convert::to_double(value);

◆ to_double() [7/22]

static double xtd::convert::to_double ( decimal  value)
staticnoexcept

Convert decimal to double.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new double object converted from value.
Examples
decimal value = 42.50l;
double result = convert::to_double(value);

◆ to_double() [8/22]

static double xtd::convert::to_double ( double  value)
staticnoexcept

Convert double to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Remarks
The result is rounded.
Examples
double value = 42.50;
double result = convert::to_double(value);

◆ to_double() [9/22]

static double xtd::convert::to_double ( float  value)
staticnoexcept

Convert float to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
double result = convert::to_double(value);

◆ to_double() [10/22]

static double xtd::convert::to_double ( int16  value)
staticnoexcept

Convert int16 to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
int16 value = 42;
double result = convert::to_double(value);

◆ to_double() [11/22]

static double xtd::convert::to_double ( int32  value)
staticnoexcept

Convert int32 to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
int32 value = 42;
double result = convert::to_double(value);

◆ to_double() [12/22]

static double xtd::convert::to_double ( int64  value)
staticnoexcept

Convert int64 to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
int64 value = 42l;
double result = convert::to_double(value);

◆ to_double() [13/22]

static double xtd::convert::to_double ( sbyte  value)
staticnoexcept

Convert sbyte to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
sbyte value = 42;
double result = convert::to_double(value);

◆ to_double() [14/22]

static double xtd::convert::to_double ( slong  value)
staticnoexcept

Convert slong to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
slong value = 42ll;
double result = convert::to_double(value);

◆ to_double() [15/22]

static double xtd::convert::to_double ( std::any  value)
static

Convert std::any to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
std::any value = 42;
double result = convert::to_double(value);

◆ to_double() [16/22]

template<typename type_t >
static double xtd::convert::to_double ( type_t  value)
inlinestaticnoexcept

Convert type_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
address_family value = address_family::inter_network;
double result = convert::to_double(value);

◆ to_double() [17/22]

static double xtd::convert::to_double ( uint16  value)
staticnoexcept

Convert uint16 to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
uint16 value = 42u;
double result = convert::to_double(value);

◆ to_double() [18/22]

static double xtd::convert::to_double ( uint32  value)
staticnoexcept

Convert uint32 to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
uint32 value = 42u;
double result = convert::to_double(value);

◆ to_double() [19/22]

static double xtd::convert::to_double ( uint64  value)
staticnoexcept

Convert uint64 to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
uint64t value = 42ul;
double result = convert::to_double(value);

◆ to_double() [20/22]

static double xtd::convert::to_double ( wchar  value)
staticnoexcept

Convert char32 to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
wchar value = L'a';
double result = convert::to_double(value);

◆ to_double() [21/22]

static double xtd::convert::to_double ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
xtd::byte value = 42;
double result = convert::to_double(value);

◆ to_double() [22/22]

static double xtd::convert::to_double ( xtd::ulong  value)
staticnoexcept

Convert slong to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
xtd::ulong value = 42ull;
double result = convert::to_double(value);

◆ to_int16() [1/23]

static int16 xtd::convert::to_int16 ( bool  value)
staticnoexcept

Convert bool to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Examples
bool value = true;
int16 result = convert::to_int16(value);
static int16 to_int16(std::any value)
Convert std::any to int16.

◆ to_int16() [2/23]

static int16 xtd::convert::to_int16 ( char  value)
staticnoexcept

Convert char to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Examples
char value = 'a';
int16 result = convert::to_int16(value);

◆ to_int16() [3/23]

static int16 xtd::convert::to_int16 ( char16  value)
staticnoexcept

Convert char16 to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Examples
char16 value = u'a';
int16 result = convert::to_int16(value);

◆ to_int16() [4/23]

static int16 xtd::convert::to_int16 ( char32  value)
static

Convert char32 to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char32 value = U'a';
int16 result = convert::to_int16(value);

◆ to_int16() [5/23]

static int16 xtd::convert::to_int16 ( char8  value)
staticnoexcept

Convert char8 to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Examples
char8 value = u8'a';
int16 result = convert::to_int16(value);

◆ to_int16() [6/23]

static int16 xtd::convert::to_int16 ( const xtd::ustring value)
static

Convert string to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
int16 result = convert::to_int16(value);

◆ to_int16() [7/23]

static int16 xtd::convert::to_int16 ( const xtd::ustring value,
xtd::byte  from_base 
)
static

Convert string to int16.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new intt16_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a int16.
Examples
ustring value = "42";
int16 result = convert::to_int16(value);

◆ to_int16() [8/23]

static int16 xtd::convert::to_int16 ( decimal  value)
static

Convert decimal to int16.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Returns
A new int16 object converted from value.
Examples
decimal value = 42.50l;
int16 result = convert::to_int16(value);

◆ to_int16() [9/23]

static int16 xtd::convert::to_int16 ( double  value)
static

Convert double to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
int16 result = convert::to_int16(value);

◆ to_int16() [10/23]

static int16 xtd::convert::to_int16 ( float  value)
static

Convert float to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
float value = 42.50f;
int16 result = convert::to_int16(value);

◆ to_int16() [11/23]

static int16 xtd::convert::to_int16 ( int16  value)
staticnoexcept

Convert int16 to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Examples
int16 value = 42;
int16 result = convert::to_int16(value);

◆ to_int16() [12/23]

static int16 xtd::convert::to_int16 ( int32  value)
static

Convert int32 to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
int16 result = convert::to_int16(value);

◆ to_int16() [13/23]

static int16 xtd::convert::to_int16 ( int64  value)
static

Convert int64 to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
int16 result = convert::to_int16(value);

◆ to_int16() [14/23]

static int16 xtd::convert::to_int16 ( sbyte  value)
staticnoexcept

Convert sbyte to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Examples
sbyte value = 42;
int16 result = convert::to_int16(value);

◆ to_int16() [15/23]

static int16 xtd::convert::to_int16 ( slong  value)
static

Convert slong to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
int16 result = convert::to_int16(value);

◆ to_int16() [16/23]

static int16 xtd::convert::to_int16 ( std::any  value)
static

Convert std::any to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Examples
std::any value = 42;
int16 result = convert::to_int16(value);

◆ to_int16() [17/23]

template<typename type_t >
static int16 xtd::convert::to_int16 ( type_t  value)
inlinestaticnoexcept

Convert type_t to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Examples
address_family value = address_family::inter_network;
int16 result = convert::to_int16(value);

◆ to_int16() [18/23]

static int16 xtd::convert::to_int16 ( uint16  value)
static

Convert uint16 to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint16 value = 42u;
int16 result = convert::to_int16(value);

◆ to_int16() [19/23]

static int16 xtd::convert::to_int16 ( uint32  value)
static

Convert uint32 to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint32 value = 42u;
int16 result = convert::to_int16(value);

◆ to_int16() [20/23]

static int16 xtd::convert::to_int16 ( uint64  value)
static

Convert uint64 to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
int16 result = convert::to_int16(value);

◆ to_int16() [21/23]

static int16 xtd::convert::to_int16 ( wchar  value)
staticnoexcept

Convert char32 to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Examples
wchar value = L'a';
int16 result = convert::to_int16(value);

◆ to_int16() [22/23]

static int16 xtd::convert::to_int16 ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Examples
xtd::byte value = 42;
int16 result = convert::to_int16(value);

◆ to_int16() [23/23]

static int16 xtd::convert::to_int16 ( xtd::ulong  value)
static

Convert slong to int16.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
int16 result = convert::to_int16(value);

◆ to_int32() [1/23]

static int32 xtd::convert::to_int32 ( bool  value)
staticnoexcept

Convert bool to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
bool value = true;
int32 result = convert::to_int32(value);
static int32 to_int32(std::any value)
Convert std::any to int32.

◆ to_int32() [2/23]

static int32 xtd::convert::to_int32 ( char  value)
staticnoexcept

Convert char to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
char value = 'a';
int32 result = convert::to_int32(value);

◆ to_int32() [3/23]

static int32 xtd::convert::to_int32 ( char16  value)
staticnoexcept

Convert char16 to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
char16 value = u'a';
int32 result = convert::to_int32(value);

◆ to_int32() [4/23]

static int32 xtd::convert::to_int32 ( char32  value)
staticnoexcept

Convert char32 to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
char32 value = U'a';
int32 result = convert::to_int32(value);

◆ to_int32() [5/23]

static int32 xtd::convert::to_int32 ( char8  value)
staticnoexcept

Convert char8 to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
char8 value = u8'a';
int32 result = convert::to_int32(value);

◆ to_int32() [6/23]

static int32 xtd::convert::to_int32 ( const xtd::ustring value)
static

Convert string to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
int32 result = convert::to_int32(value);

◆ to_int32() [7/23]

static int32 xtd::convert::to_int32 ( const xtd::ustring value,
xtd::byte  from_base 
)
static

Convert string to int32.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new intt32_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a int32.
Examples
ustring value = "42";
int32 result = convert::to_int32(value);

◆ to_int32() [8/23]

static int32 xtd::convert::to_int32 ( decimal  value)
static

Convert decimal to int32.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Returns
A new int32 object converted from value.
Examples
decimal value = 42.50l;
int32 result = convert::to_int32(value);

◆ to_int32() [9/23]

static int32 xtd::convert::to_int32 ( double  value)
static

Convert double to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
int32 result = convert::to_int32(value);

◆ to_int32() [10/23]

static int32 xtd::convert::to_int32 ( float  value)
staticnoexcept

Convert float to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
int32 result = convert::to_int32(value);

◆ to_int32() [11/23]

static int32 xtd::convert::to_int32 ( int16  value)
staticnoexcept

Convert int16 to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
int16 value = 42;
int32 result = convert::to_int32(value);

◆ to_int32() [12/23]

static int32 xtd::convert::to_int32 ( int32  value)
staticnoexcept

Convert int32 to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
int32 result = convert::to_int32(value);

◆ to_int32() [13/23]

static int32 xtd::convert::to_int32 ( int64  value)
static

Convert int64 to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
int64 value = 42l;
int32 result = convert::to_int32(value);

◆ to_int32() [14/23]

static int32 xtd::convert::to_int32 ( sbyte  value)
staticnoexcept

Convert sbyte to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
sbyte value = 42;
int32 result = convert::to_int32(value);

◆ to_int32() [15/23]

static int32 xtd::convert::to_int32 ( slong  value)
static

Convert slong to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
int32 result = convert::to_int32(value);

◆ to_int32() [16/23]

static int32 xtd::convert::to_int32 ( std::any  value)
static

Convert std::any to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
std::any value = 42;
int32 result = convert::to_int32(value);

◆ to_int32() [17/23]

template<typename type_t >
static int32 xtd::convert::to_int32 ( type_t  value)
inlinestaticnoexcept

Convert type_t to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
address_family value = address_family::inter_network;
int32 result = convert::to_int32(value);

◆ to_int32() [18/23]

static int32 xtd::convert::to_int32 ( uint16  value)
staticnoexcept

Convert uint16 to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
uint16 value = 42u;
int32 result = convert::to_int32(value);

◆ to_int32() [19/23]

static int32 xtd::convert::to_int32 ( uint32  value)
static

Convert uint32 to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint32 value = 42u;
int32 result = convert::to_int32(value);

◆ to_int32() [20/23]

static int32 xtd::convert::to_int32 ( uint64  value)
static

Convert uint64 to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
int32 result = convert::to_int32(value);

◆ to_int32() [21/23]

static int32 xtd::convert::to_int32 ( wchar  value)
staticnoexcept

Convert char32 to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
wchar value = L'a';
int32 result = convert::to_int32(value);

◆ to_int32() [22/23]

static int32 xtd::convert::to_int32 ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Examples
xtd::byte value = 42;
int32 result = convert::to_int32(value);

◆ to_int32() [23/23]

static int32 xtd::convert::to_int32 ( xtd::ulong  value)
static

Convert slong to int32.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
int32 result = convert::to_int32(value);

◆ to_int64() [1/23]

static int64 xtd::convert::to_int64 ( bool  value)
staticnoexcept

Convert bool to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
bool value = true;
int64 result = convert::to_int64(value);
static int64 to_int64(std::any value)
Convert std::any to int64.

◆ to_int64() [2/23]

static int64 xtd::convert::to_int64 ( char  value)
staticnoexcept

Convert char to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
char value = 'a';
int64 result = convert::to_int64(value);

◆ to_int64() [3/23]

static int64 xtd::convert::to_int64 ( char16  value)
staticnoexcept

Convert char16 to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
char16 value = u'a';
int64 result = convert::to_int64(value);

◆ to_int64() [4/23]

static int64 xtd::convert::to_int64 ( char32  value)
staticnoexcept

Convert char32 to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
char32 value = U'a';
int64 result = convert::to_int64(value);

◆ to_int64() [5/23]

static int64 xtd::convert::to_int64 ( char8  value)
staticnoexcept

Convert char8 to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
char8 value = u8'a';
int64 result = convert::to_int64(value);

◆ to_int64() [6/23]

static int64 xtd::convert::to_int64 ( const xtd::ustring value)
static

Convert string to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
int64 result = convert::to_int64(value);

◆ to_int64() [7/23]

static int64 xtd::convert::to_int64 ( const xtd::ustring value,
xtd::byte  from_base 
)
static

Convert string to int64.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new intt64_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a int64.
Examples
ustring value = "42";
int16 result = convert::to_int16(value);

◆ to_int64() [8/23]

static int64 xtd::convert::to_int64 ( decimal  value)
staticnoexcept

Convert decimal to int64.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new int64 object converted from value.
Examples
decimal value = 42.50l;
int64 result = convert::to_int64(value);

◆ to_int64() [9/23]

static int64 xtd::convert::to_int64 ( double  value)
staticnoexcept

Convert double to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Remarks
The result is rounded.
Examples
double value = 42.50;
int64 result = convert::to_int64(value);

◆ to_int64() [10/23]

static int64 xtd::convert::to_int64 ( float  value)
staticnoexcept

Convert float to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
int64 result = convert::to_int64(value);

◆ to_int64() [11/23]

static int64 xtd::convert::to_int64 ( int16  value)
staticnoexcept

Convert int16 to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
int16 value = 42;
int64 result = convert::to_int64(value);

◆ to_int64() [12/23]

static int64 xtd::convert::to_int64 ( int32  value)
staticnoexcept

Convert int32 to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
int32 value = 42;
int64 result = convert::to_int64(value);

◆ to_int64() [13/23]

static int64 xtd::convert::to_int64 ( int64  value)
staticnoexcept

Convert int64 to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
int64 value = 42l;
int64 result = convert::to_int64(value);

◆ to_int64() [14/23]

static int64 xtd::convert::to_int64 ( sbyte  value)
staticnoexcept

Convert sbyte to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
sbyte value = 42;
int64 result = convert::to_int64(value);

◆ to_int64() [15/23]

static int64 xtd::convert::to_int64 ( slong  value)
staticnoexcept

Convert slong to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
slong value = 42ll;
int64 result = convert::to_int64(value);

◆ to_int64() [16/23]

static int64 xtd::convert::to_int64 ( std::any  value)
static

Convert std::any to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
std::any value = 42;
int64 result = convert::to_int64(value);

◆ to_int64() [17/23]

template<typename type_t >
static int64 xtd::convert::to_int64 ( type_t  value)
inlinestaticnoexcept

Convert type_t to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
address_family value = address_family::inter_network;
int64 result = convert::to_int64(value);

◆ to_int64() [18/23]

static int64 xtd::convert::to_int64 ( uint16  value)
staticnoexcept

Convert uint16 to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
uint16 value = 42u;
int64 result = convert::to_int64(value);

◆ to_int64() [19/23]

static int64 xtd::convert::to_int64 ( uint32  value)
staticnoexcept

Convert uint32 to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
uint32 value = 42u;
int64 result = convert::to_int64(value);

◆ to_int64() [20/23]

static int64 xtd::convert::to_int64 ( uint64  value)
static

Convert uint64 to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
int64 result = convert::to_int64(value);

◆ to_int64() [21/23]

static int64 xtd::convert::to_int64 ( wchar  value)
staticnoexcept

Convert char32 to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
wchar value = L'a';
int64 result = convert::to_int64(value);

◆ to_int64() [22/23]

static int64 xtd::convert::to_int64 ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Examples
xtd::byte value = 42;
int64 result = convert::to_int64(value);

◆ to_int64() [23/23]

static int64 xtd::convert::to_int64 ( xtd::ulong  value)
static

Convert slong to int64.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
int64 result = convert::to_int64(value);

◆ to_llong() [1/23]

static slong xtd::convert::to_llong ( bool  value)
staticnoexcept

Convert bool to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
bool value = true;
slong result = convert::to_llong(value);
static slong to_llong(std::any value)
Convert std::any to slong.

◆ to_llong() [2/23]

static slong xtd::convert::to_llong ( char  value)
staticnoexcept

Convert char to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
char value = 'a';
slong result = convert::to_llong(value);

◆ to_llong() [3/23]

static slong xtd::convert::to_llong ( char16  value)
staticnoexcept

Convert char16 to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
char16 value = u'a';
slong result = convert::to_llong(value);

◆ to_llong() [4/23]

static slong xtd::convert::to_llong ( char32  value)
staticnoexcept

Convert char32 to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
char32 value = U'a';
slong result = convert::to_llong(value);

◆ to_llong() [5/23]

static slong xtd::convert::to_llong ( char8  value)
staticnoexcept

Convert char8 to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
char8 value = u8'a';
slong result = convert::to_llong(value);

◆ to_llong() [6/23]

static slong xtd::convert::to_llong ( const xtd::ustring value)
static

Convert string to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
slong result = convert::to_llong(value);

◆ to_llong() [7/23]

static slong xtd::convert::to_llong ( const xtd::ustring value,
xtd::byte  from_base 
)
static

Convert string to slong.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new slong object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a slong.
Examples
ustring value = "42";
slong result = convert::to_llong(value);

◆ to_llong() [8/23]

static slong xtd::convert::to_llong ( decimal  value)
staticnoexcept

Convert decimal to slong.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new slong object converted from value.
Examples
decimal value = 42.50l;
slong result = convert::to_llong(value);

◆ to_llong() [9/23]

static slong xtd::convert::to_llong ( double  value)
staticnoexcept

Convert double to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Remarks
The result is rounded.
Examples
double value = 42.50;
slong result = convert::to_llong(value);

◆ to_llong() [10/23]

static slong xtd::convert::to_llong ( float  value)
staticnoexcept

Convert float to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
slong result = convert::to_llong(value);

◆ to_llong() [11/23]

static slong xtd::convert::to_llong ( int16  value)
staticnoexcept

Convert int16 to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
int16 value = 42;
slong result = convert::to_llong(value);

◆ to_llong() [12/23]

static slong xtd::convert::to_llong ( int32  value)
staticnoexcept

Convert int32 to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
int32 value = 42;
slong result = convert::to_llong(value);

◆ to_llong() [13/23]

static slong xtd::convert::to_llong ( int64  value)
staticnoexcept

Convert int64 to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
int64 value = 42l;
slong result = convert::to_llong(value);

◆ to_llong() [14/23]

static slong xtd::convert::to_llong ( sbyte  value)
staticnoexcept

Convert sbyte to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
sbyte value = 42;
slong result = convert::to_llong(value);

◆ to_llong() [15/23]

static slong xtd::convert::to_llong ( slong  value)
staticnoexcept

Convert slong to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
slong value = 42ll;
slong result = convert::to_llong(value);

◆ to_llong() [16/23]

static slong xtd::convert::to_llong ( std::any  value)
static

Convert std::any to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
std::any value = 42;
slong result = convert::to_llong(value);

◆ to_llong() [17/23]

template<typename type_t >
static slong xtd::convert::to_llong ( type_t  value)
inlinestaticnoexcept

Convert type_t to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
address_family value = address_family::inter_network;
slong result = convert::to_llong(value);

◆ to_llong() [18/23]

static slong xtd::convert::to_llong ( uint16  value)
staticnoexcept

Convert uint16 to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
uint16 value = 42u;
slong result = convert::to_llong(value);

◆ to_llong() [19/23]

static slong xtd::convert::to_llong ( uint32  value)
staticnoexcept

Convert uint32 to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
uint32 value = 42u;
slong result = convert::to_llong(value);

◆ to_llong() [20/23]

static slong xtd::convert::to_llong ( uint64  value)
static

Convert uint64 to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
slong result = convert::to_llong(value);

◆ to_llong() [21/23]

static slong xtd::convert::to_llong ( wchar  value)
staticnoexcept

Convert char32 to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
wchar value = L'a';
slong result = convert::to_llong(value);

◆ to_llong() [22/23]

static slong xtd::convert::to_llong ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Examples
xtd::byte value = 42;
slong result = convert::to_llong(value);

◆ to_llong() [23/23]

static slong xtd::convert::to_llong ( xtd::ulong  value)
static

Convert slong to slong.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
slong result = convert::to_llong(value);

◆ to_sbyte() [1/23]

static sbyte xtd::convert::to_sbyte ( bool  value)
staticnoexcept

Convert bool to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Examples
bool value = true;
sbyte result = convert::to_sbyte(value);
static sbyte to_sbyte(std::any value)
Convert std::any to sbyte.

◆ to_sbyte() [2/23]

static sbyte xtd::convert::to_sbyte ( char  value)
staticnoexcept

Convert char to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Examples
char value = 'a';
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [3/23]

static sbyte xtd::convert::to_sbyte ( char16  value)
static

Convert char16 to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char16 value = u'a';
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [4/23]

static sbyte xtd::convert::to_sbyte ( char32  value)
static

Convert char32 to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char32 value = U'a';
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [5/23]

static sbyte xtd::convert::to_sbyte ( char8  value)
staticnoexcept

Convert char8 to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Examples
char8 value = u8'a';
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [6/23]

static sbyte xtd::convert::to_sbyte ( const xtd::ustring value)
static

Convert string to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [7/23]

static sbyte xtd::convert::to_sbyte ( const xtd::ustring value,
xtd::byte  from_base 
)
static

Convert string to sbyte.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new sbyte object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a sbyte.
Examples
ustring value = "42";
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [8/23]

static sbyte xtd::convert::to_sbyte ( decimal  value)
static

Convert decimal to sbyte.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Returns
A new sbyte object converted from value.
Examples
decimal value = 42.50l;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [9/23]

static sbyte xtd::convert::to_sbyte ( double  value)
static

Convert double to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [10/23]

static sbyte xtd::convert::to_sbyte ( float  value)
static

Convert float to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
float value = 42.50f;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [11/23]

static sbyte xtd::convert::to_sbyte ( int16  value)
static

Convert int16 to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int16 value = 42;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [12/23]

static sbyte xtd::convert::to_sbyte ( int32  value)
static

Convert int32 to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [13/23]

static sbyte xtd::convert::to_sbyte ( int64  value)
static

Convert int64 to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [14/23]

static sbyte xtd::convert::to_sbyte ( sbyte  value)
static

Convert sbyte to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte value = 42;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [15/23]

static sbyte xtd::convert::to_sbyte ( slong  value)
static

Convert slong to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [16/23]

static sbyte xtd::convert::to_sbyte ( std::any  value)
static

Convert std::any to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Examples
std::any value = 42;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [17/23]

template<typename type_t >
static sbyte xtd::convert::to_sbyte ( type_t  value)
inlinestaticnoexcept

Convert type_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Examples
address_family value = address_family::inter_network;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [18/23]

static sbyte xtd::convert::to_sbyte ( uint16  value)
static

Convert uint16 to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint16 value = 42u;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [19/23]

static sbyte xtd::convert::to_sbyte ( uint32  value)
static

Convert uint32 to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint32 value = 42u;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [20/23]

static sbyte xtd::convert::to_sbyte ( uint64  value)
static

Convert uint64 to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [21/23]

static sbyte xtd::convert::to_sbyte ( wchar  value)
static

Convert char32 to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
wchar value = L'a';
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [22/23]

static sbyte xtd::convert::to_sbyte ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Examples
xtd::byte value = 42;
sbyte result = convert::to_sbyte(value);

◆ to_sbyte() [23/23]

static sbyte xtd::convert::to_sbyte ( xtd::ulong  value)
static

Convert slong to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
sbyte result = convert::to_sbyte(value);

◆ to_single() [1/22]

static float xtd::convert::to_single ( bool  value)
staticnoexcept

Convert bool to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
bool value = true;
float result = convert::to_single(value);
static float to_single(std::any value)
Convert std::any to single.

◆ to_single() [2/22]

static float xtd::convert::to_single ( char  value)
staticnoexcept

Convert char to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
char value = 'a';
float result = convert::to_single(value);

◆ to_single() [3/22]

static float xtd::convert::to_single ( char16  value)
staticnoexcept

Convert char16 to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
char16 value = u'a';
float result = convert::to_single(value);

◆ to_single() [4/22]

static float xtd::convert::to_single ( char32  value)
staticnoexcept

Convert char32 to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
char32 value = U'a';
float result = convert::to_single(value);

◆ to_single() [5/22]

static float xtd::convert::to_single ( char8  value)
staticnoexcept

Convert char8 to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
char8 value = u8'a';
float result = convert::to_single(value);

◆ to_single() [6/22]

static float xtd::convert::to_single ( const xtd::ustring value)
static

Convert string to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
float result = convert::to_single(value);

◆ to_single() [7/22]

static float xtd::convert::to_single ( decimal  value)
staticnoexcept

Convert decimal to single.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new float object converted from value.
Examples
decimal value = 42.50l;
float result = convert::to_single(value);

◆ to_single() [8/22]

static float xtd::convert::to_single ( double  value)
staticnoexcept

Convert double to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Remarks
The result is rounded.
Examples
double value = 42.50;
float result = convert::to_single(value);

◆ to_single() [9/22]

static float xtd::convert::to_single ( float  value)
staticnoexcept

Convert float to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
float result = convert::to_single(value);

◆ to_single() [10/22]

static float xtd::convert::to_single ( int16  value)
staticnoexcept

Convert int16 to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
int16 value = 42;
float result = convert::to_single(value);

◆ to_single() [11/22]

static float xtd::convert::to_single ( int32  value)
staticnoexcept

Convert int32 to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
int32 value = 42;
float result = convert::to_single(value);

◆ to_single() [12/22]

static float xtd::convert::to_single ( int64  value)
staticnoexcept

Convert int64 to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
int64 value = 42l;
float result = convert::to_single(value);

◆ to_single() [13/22]

static float xtd::convert::to_single ( sbyte  value)
staticnoexcept

Convert sbyte to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
sbyte value = 42;
float result = convert::to_single(value);

◆ to_single() [14/22]

static float xtd::convert::to_single ( slong  value)
staticnoexcept

Convert slong to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
slong value = 42ll;
float result = convert::to_single(value);

◆ to_single() [15/22]

static float xtd::convert::to_single ( std::any  value)
static

Convert std::any to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
std::any value = 42;
float result = convert::to_single(value);

◆ to_single() [16/22]

template<typename type_t >
static float xtd::convert::to_single ( type_t  value)
inlinestaticnoexcept

Convert type_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
address_family value = address_family::inter_network;
float result = convert::to_single(value);

◆ to_single() [17/22]

static float xtd::convert::to_single ( uint16  value)
staticnoexcept

Convert uint16 to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
uint16 value = 42u;
float result = convert::to_single(value);

◆ to_single() [18/22]

static float xtd::convert::to_single ( uint32  value)
staticnoexcept

Convert uint32 to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
uint32 value = 42u;
float result = convert::to_single(value);

◆ to_single() [19/22]

static float xtd::convert::to_single ( uint64  value)
staticnoexcept

Convert uint64 to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
uint64t value = 42ul;
float result = convert::to_single(value);

◆ to_single() [20/22]

static float xtd::convert::to_single ( wchar  value)
staticnoexcept

Convert char32 to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
wchar value = L'a';
float result = convert::to_single(value);

◆ to_single() [21/22]

static float xtd::convert::to_single ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
xtd::byte value = 42;
float result = convert::to_single(value);

◆ to_single() [22/22]

static float xtd::convert::to_single ( xtd::ulong  value)
staticnoexcept

Convert slong to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
xtd::ulong value = 42ull;
float result = convert::to_single(value);

◆ to_string() [1/32]

static ustring xtd::convert::to_string ( bool  value)
staticnoexcept

Convert bool to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
bool value = true;
ustring result = convert::to_string(value);
static ustring to_string(std::any value)
Convert std::any to ustring.

◆ to_string() [2/32]

static ustring xtd::convert::to_string ( char  value)
staticnoexcept

Convert char to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char value = 'a';
ustring result = convert::to_string(value);

◆ to_string() [3/32]

static ustring xtd::convert::to_string ( char16  value)
staticnoexcept

Convert char16 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char16 value = u'a';
ustring result = convert::to_string(value);

◆ to_string() [4/32]

static ustring xtd::convert::to_string ( char32  value)
staticnoexcept

Convert char32 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char32 value = U'a';
ustring result = convert::to_string(value);

◆ to_string() [5/32]

static ustring xtd::convert::to_string ( char8  value)
staticnoexcept

Convert char8 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char8 value = u8'a';
ustring result = convert::to_string(value);

◆ to_string() [6/32]

static ustring xtd::convert::to_string ( const xtd::ustring value)
static

Convert string to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
ustring value = "42";
ustring result = convert::to_string(value);

◆ to_string() [7/32]

static ustring xtd::convert::to_string ( decimal  value)
static

Convert decimal to ustring.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Returns
A new ustring object converted from value.
Examples
decimal value = 42.50l;
ustring result = convert::to_string(value);

◆ to_string() [8/32]

static ustring xtd::convert::to_string ( double  value)
static

Convert double to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
ustring result = convert::to_string(value);

◆ to_string() [9/32]

static ustring xtd::convert::to_string ( float  value)
static

Convert float to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Remarks
The result is rounded.
Examples
float value = 42.50f;
ustring result = convert::to_string(value);

◆ to_string() [10/32]

static ustring xtd::convert::to_string ( int16  value)
static

Convert int16 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
int16 value = 42;
ustring result = convert::to_string(value);

◆ to_string() [11/32]

static ustring xtd::convert::to_string ( int16  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int16 value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [12/32]

static ustring xtd::convert::to_string ( int32  value)
static

Convert int32 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
ustring result = convert::to_string(value);

◆ to_string() [13/32]

static ustring xtd::convert::to_string ( int32  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int32 value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [14/32]

static ustring xtd::convert::to_string ( int64  value)
static

Convert int64 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
ustring result = convert::to_string(value);

◆ to_string() [15/32]

static ustring xtd::convert::to_string ( int64  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int64 value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [16/32]

static ustring xtd::convert::to_string ( sbyte  value)
static

Convert sbyte to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
sbyte value = 42;
ustring result = convert::to_string(value);

◆ to_string() [17/32]

static ustring xtd::convert::to_string ( sbyte  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
sbyte value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [18/32]

static ustring xtd::convert::to_string ( slong  value)
static

Convert slong to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
ustring result = convert::to_string(value);

◆ to_string() [19/32]

static ustring xtd::convert::to_string ( slong  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
slong value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [20/32]

static ustring xtd::convert::to_string ( std::any  value)
static

Convert std::any to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
std::any value = 42;
ustring result = convert::to_string(value);

◆ to_string() [21/32]

template<typename type_t >
static ustring xtd::convert::to_string ( type_t  value)
inlinestaticnoexcept

Convert type_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
address_family value = address_family::inter_network;
ustring result = convert::to_string(value);

◆ to_string() [22/32]

static ustring xtd::convert::to_string ( uint16  value)
staticnoexcept

Convert uint16 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
uint16 value = 42u;
ustring result = convert::to_string(value);

◆ to_string() [23/32]

static ustring xtd::convert::to_string ( uint16  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint16 value = 42u;
ustring result = convert::to_string(value, 16);

◆ to_string() [24/32]

static ustring xtd::convert::to_string ( uint32  value)
staticnoexcept

Convert uint32 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
uint32 value = 42u;
ustring result = convert::to_string(value);

◆ to_string() [25/32]

static ustring xtd::convert::to_string ( uint32  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint32 value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [26/32]

static ustring xtd::convert::to_string ( uint64  value)
staticnoexcept

Convert uint64 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42u;
ustring result = convert::to_string(value);

◆ to_string() [27/32]

static ustring xtd::convert::to_string ( uint64  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint64 value = 42ul;
ustring result = convert::to_string(value, 16);

◆ to_string() [28/32]

static ustring xtd::convert::to_string ( wchar  value)
staticnoexcept

Convert char32 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
wchar value = L'a';
ustring result = convert::to_string(value);

◆ to_string() [29/32]

static ustring xtd::convert::to_string ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
xtd::byte value = 42;
ustring result = convert::to_string(value);

◆ to_string() [30/32]

static ustring xtd::convert::to_string ( xtd::byte  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
xtd::byte value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [31/32]

static ustring xtd::convert::to_string ( xtd::ulong  value)
staticnoexcept

Convert slong to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
xtd::ulong value = 42ull;
ustring result = convert::to_string(value);

◆ to_string() [32/32]

static ustring xtd::convert::to_string ( xtd::ulong  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
xtd::ulong value = 42ull;
ustring result = convert::to_string(value, 16);

◆ to_uint16() [1/23]

static uint16 xtd::convert::to_uint16 ( bool  value)
staticnoexcept

Convert bool to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Examples
bool value = true;
uint16 result = convert::to_uint16(value);
static uint16 to_uint16(std::any value)
Convert std::any to uint16.

◆ to_uint16() [2/23]

static uint16 xtd::convert::to_uint16 ( char  value)
staticnoexcept

Convert char to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Examples
char value = 'a';
uint16 result = convert::to_uint16(value);

◆ to_uint16() [3/23]

static uint16 xtd::convert::to_uint16 ( char16  value)
staticnoexcept

Convert char16 to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Examples
char16 value = u'a';
uint16 result = convert::to_uint16(value);

◆ to_uint16() [4/23]

static uint16 xtd::convert::to_uint16 ( char32  value)
static

Convert char32 to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char32 value = U'a';
uint16 result = convert::to_uint16(value);

◆ to_uint16() [5/23]

static uint16 xtd::convert::to_uint16 ( char8  value)
staticnoexcept

Convert char8 to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Examples
char8 value = u8'a';
uint16 result = convert::to_uint16(value);

◆ to_uint16() [6/23]

static uint16 xtd::convert::to_uint16 ( const xtd::ustring value)
static

Convert string to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
uint16 result = convert::to_uint16(value);

◆ to_uint16() [7/23]

static uint16 xtd::convert::to_uint16 ( const xtd::ustring value,
xtd::byte  from_base 
)
static

Convert string to uint16.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new intt16_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a uint16.
Examples
ustring value = "42";
uint16 result = convert::to_uuint16(value);

◆ to_uint16() [8/23]

static uint16 xtd::convert::to_uint16 ( decimal  value)
static

Convert decimal to uint16.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Returns
A new uint16 object converted from value.
Examples
decimal value = 42.50l;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [9/23]

static uint16 xtd::convert::to_uint16 ( double  value)
static

Convert double to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [10/23]

static uint16 xtd::convert::to_uint16 ( float  value)
static

Convert float to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
float value = 42.50f;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [11/23]

static uint16 xtd::convert::to_uint16 ( int16  value)
static

Convert int16 to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
int16 value = 42;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [12/23]

static uint16 xtd::convert::to_uint16 ( int32  value)
static

Convert int32 to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [13/23]

static uint16 xtd::convert::to_uint16 ( int64  value)
static

Convert int64 to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [14/23]

static uint16 xtd::convert::to_uint16 ( sbyte  value)
static

Convert sbyte to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
sbyte value = 42;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [15/23]

static uint16 xtd::convert::to_uint16 ( slong  value)
static

Convert slong to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [16/23]

static uint16 xtd::convert::to_uint16 ( std::any  value)
static

Convert std::any to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Examples
std::any value = 42;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [17/23]

template<typename type_t >
static uint16 xtd::convert::to_uint16 ( type_t  value)
inlinestaticnoexcept

Convert type_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Examples
address_family value = address_family::inter_network;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [18/23]

static uint16 xtd::convert::to_uint16 ( uint16  value)
staticnoexcept

Convert uint16 to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Examples
uint16 value = 42u;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [19/23]

static uint16 xtd::convert::to_uint16 ( uint32  value)
static

Convert uint32 to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint32 value = 42u;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [20/23]

static uint16 xtd::convert::to_uint16 ( uint64  value)
static

Convert uint64 to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [21/23]

static uint16 xtd::convert::to_uint16 ( wchar  value)
staticnoexcept

Convert char32 to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Examples
wchar value = L'a';
uint16 result = convert::to_uint16(value);

◆ to_uint16() [22/23]

static uint16 xtd::convert::to_uint16 ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Examples
xtd::byte value = 42;
uint16 result = convert::to_uint16(value);

◆ to_uint16() [23/23]

static uint16 xtd::convert::to_uint16 ( xtd::ulong  value)
static

Convert slong to uint16.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
uint16 result = convert::to_uint16(value);

◆ to_uint32() [1/23]

static uint32 xtd::convert::to_uint32 ( bool  value)
staticnoexcept

Convert bool to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
bool value = true;
uint32 result = convert::to_uint32(value);
static uint32 to_uint32(std::any value)
Convert std::any to uint32.

◆ to_uint32() [2/23]

static uint32 xtd::convert::to_uint32 ( char  value)
staticnoexcept

Convert char to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
char value = 'a';
uint32 result = convert::to_uint32(value);

◆ to_uint32() [3/23]

static uint32 xtd::convert::to_uint32 ( char16  value)
staticnoexcept

Convert char16 to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
char16 value = u'a';
uint32 result = convert::to_uint32(value);

◆ to_uint32() [4/23]

static uint32 xtd::convert::to_uint32 ( char32  value)
staticnoexcept

Convert char32 to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
char32 value = U'a';
uint32 result = convert::to_uint32(value);

◆ to_uint32() [5/23]

static uint32 xtd::convert::to_uint32 ( char8  value)
staticnoexcept

Convert char8 to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
char8 value = u8'a';
uint32 result = convert::to_uint32(value);

◆ to_uint32() [6/23]

static uint32 xtd::convert::to_uint32 ( const xtd::ustring value)
static

Convert string to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
uint32 result = convert::to_uint32(value);

◆ to_uint32() [7/23]

static uint32 xtd::convert::to_uint32 ( const xtd::ustring value,
xtd::byte  from_base 
)
static

Convert string to uint32.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new uintt32_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
uint32 result = convert::to_uint32(value);

◆ to_uint32() [8/23]

static uint32 xtd::convert::to_uint32 ( decimal  value)
static

Convert decimal to uint32.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Returns
A new uint32 object converted from value.
Examples
decimal value = 42.50l;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [9/23]

static uint32 xtd::convert::to_uint32 ( double  value)
static

Convert double to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [10/23]

static uint32 xtd::convert::to_uint32 ( float  value)
static

Convert float to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Remarks
The result is rounded.
Examples
float value = 42.50f;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [11/23]

static uint32 xtd::convert::to_uint32 ( int16  value)
static

Convert int16 to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
int16 value = 42;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [12/23]

static uint32 xtd::convert::to_uint32 ( int32  value)
static

Convert int32 to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [13/23]

static uint32 xtd::convert::to_uint32 ( int64  value)
static

Convert int64 to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [14/23]

static uint32 xtd::convert::to_uint32 ( sbyte  value)
static

Convert sbyte to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
sbyte value = 42;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [15/23]

static uint32 xtd::convert::to_uint32 ( slong  value)
static

Convert slong to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [16/23]

static uint32 xtd::convert::to_uint32 ( std::any  value)
static

Convert std::any to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
std::any value = 42;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [17/23]

template<typename type_t >
static uint32 xtd::convert::to_uint32 ( type_t  value)
inlinestaticnoexcept

Convert type_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
address_family value = address_family::inter_network;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [18/23]

static uint32 xtd::convert::to_uint32 ( uint16  value)
staticnoexcept

Convert uint16 to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
uint16 value = 42u;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [19/23]

static uint32 xtd::convert::to_uint32 ( uint32  value)
staticnoexcept

Convert uint32 to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
uint32 value = 42u;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [20/23]

static uint32 xtd::convert::to_uint32 ( uint64  value)
static

Convert uint64 to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [21/23]

static uint32 xtd::convert::to_uint32 ( wchar  value)
staticnoexcept

Convert char32 to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
wchar value = L'a';
uint32 result = convert::to_uint32(value);

◆ to_uint32() [22/23]

static uint32 xtd::convert::to_uint32 ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Examples
xtd::byte value = 42;
uint32 result = convert::to_uint32(value);

◆ to_uint32() [23/23]

static uint32 xtd::convert::to_uint32 ( xtd::ulong  value)
static

Convert slong to uint32.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
uint32 result = convert::to_uint32(value);

◆ to_uint64() [1/23]

static uint64 xtd::convert::to_uint64 ( bool  value)
staticnoexcept

Convert bool to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
bool value = true;
uint64 result = convert::to_uint64(value);
static uint64 to_uint64(std::any value)
Convert std::any to uint64.

◆ to_uint64() [2/23]

static uint64 xtd::convert::to_uint64 ( char  value)
staticnoexcept

Convert char to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
char value = 'a';
uint64 result = convert::to_uint64(value);

◆ to_uint64() [3/23]

static uint64 xtd::convert::to_uint64 ( char16  value)
staticnoexcept

Convert char16 to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
char16 value = u'a';
uint64 result = convert::to_uint64(value);

◆ to_uint64() [4/23]

static uint64 xtd::convert::to_uint64 ( char32  value)
staticnoexcept

Convert char32 to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
char32 value = U'a';
uint64 result = convert::to_uint64(value);

◆ to_uint64() [5/23]

static uint64 xtd::convert::to_uint64 ( char8  value)
staticnoexcept

Convert char8 to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
char8 value = u8'a';
uint64 result = convert::to_uint64(value);

◆ to_uint64() [6/23]

static uint64 xtd::convert::to_uint64 ( const xtd::ustring value)
static

Convert string to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
ustring value = "42";
uint64 result = convert::to_uint64(value);

◆ to_uint64() [7/23]

static uint64 xtd::convert::to_uint64 ( const xtd::ustring value,
xtd::byte  from_base 
)
static

Convert string to uint64.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new intt16_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a uint64.
Examples
ustring value = "42";
uuint64 result = convert::to_uint64(value);

◆ to_uint64() [8/23]

static uint64 xtd::convert::to_uint64 ( decimal  value)
static

Convert decimal to uint64.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Returns
A new uint64 object converted from value.
Examples
decimal value = 42.50l;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [9/23]

static uint64 xtd::convert::to_uint64 ( double  value)
static

Convert double to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [10/23]

static uint64 xtd::convert::to_uint64 ( float  value)
static

Convert float to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Remarks
The result is rounded.
Examples
float value = 42.50f;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [11/23]

static uint64 xtd::convert::to_uint64 ( int16  value)
static

Convert int16 to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
int16 value = 42;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [12/23]

static uint64 xtd::convert::to_uint64 ( int32  value)
static

Convert int32 to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [13/23]

static uint64 xtd::convert::to_uint64 ( int64  value)
static

Convert int64 to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [14/23]

static uint64 xtd::convert::to_uint64 ( sbyte  value)
static

Convert sbyte to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
sbyte value = 42;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [15/23]

static uint64 xtd::convert::to_uint64 ( slong  value)
static

Convert slong to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [16/23]

static uint64 xtd::convert::to_uint64 ( std::any  value)
static

Convert std::any to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
std::any value = 42;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [17/23]

template<typename type_t >
static uint64 xtd::convert::to_uint64 ( type_t  value)
inlinestaticnoexcept

Convert type_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
address_family value = address_family::inter_network;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [18/23]

static uint64 xtd::convert::to_uint64 ( uint16  value)
staticnoexcept

Convert uint16 to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
uint16 value = 42u;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [19/23]

static uint64 xtd::convert::to_uint64 ( uint32  value)
staticnoexcept

Convert uint32 to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
uint32 value = 42u;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [20/23]

static uint64 xtd::convert::to_uint64 ( uint64  value)
staticnoexcept

Convert uint64 to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [21/23]

static uint64 xtd::convert::to_uint64 ( wchar  value)
staticnoexcept

Convert char32 to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
wchar value = L'a';
uint64 result = convert::to_uint64(value);

◆ to_uint64() [22/23]

static uint64 xtd::convert::to_uint64 ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
xtd::byte value = 42;
uint64 result = convert::to_uint64(value);

◆ to_uint64() [23/23]

static uint64 xtd::convert::to_uint64 ( xtd::ulong  value)
staticnoexcept

Convert slong to uint64.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Examples
xtd::ulong value = 42ull;
uint64 result = convert::to_uint64(value);

◆ to_ullong() [1/23]

static xtd::ulong xtd::convert::to_ullong ( bool  value)
staticnoexcept

Convert bool to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
bool value = true;
static xtd::ulong to_ullong(std::any value)
Convert std::any to xtd::ulong.

◆ to_ullong() [2/23]

static xtd::ulong xtd::convert::to_ullong ( char  value)
staticnoexcept

Convert char to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
char value = 'a';

◆ to_ullong() [3/23]

static xtd::ulong xtd::convert::to_ullong ( char16  value)
staticnoexcept

Convert char16 to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
char16 value = u'a';

◆ to_ullong() [4/23]

static xtd::ulong xtd::convert::to_ullong ( char32  value)
staticnoexcept

Convert char32 to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
char32 value = U'a';

◆ to_ullong() [5/23]

static xtd::ulong xtd::convert::to_ullong ( char8  value)
staticnoexcept

Convert char8 to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
char8 value = u8'a';

◆ to_ullong() [6/23]

static xtd::ulong xtd::convert::to_ullong ( const xtd::ustring value)
static

Convert string to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
ustring value = "42";

◆ to_ullong() [7/23]

static xtd::ulong xtd::convert::to_ullong ( const xtd::ustring value,
xtd::byte  from_base 
)
static

Convert string to xtd::ulong.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a xtd::ulong.
Examples
ustring value = "42";

◆ to_ullong() [8/23]

static xtd::ulong xtd::convert::to_ullong ( decimal  value)
static

Convert decimal to xtd::ulong.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Returns
A new xtd::ulong object converted from value.
Examples
decimal value = 42.50l;

◆ to_ullong() [9/23]

static xtd::ulong xtd::convert::to_ullong ( double  value)
static

Convert double to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;

◆ to_ullong() [10/23]

static xtd::ulong xtd::convert::to_ullong ( float  value)
static

Convert float to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Remarks
The result is rounded.
Examples
float value = 42.50f;

◆ to_ullong() [11/23]

static xtd::ulong xtd::convert::to_ullong ( int16  value)
static

Convert int16 to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
int16 value = 42;

◆ to_ullong() [12/23]

static xtd::ulong xtd::convert::to_ullong ( int32  value)
static

Convert int32 to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;

◆ to_ullong() [13/23]

static xtd::ulong xtd::convert::to_ullong ( int64  value)
static

Convert int64 to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;

◆ to_ullong() [14/23]

static xtd::ulong xtd::convert::to_ullong ( sbyte  value)
static

Convert sbyte to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
sbyte value = 42;

◆ to_ullong() [15/23]

static xtd::ulong xtd::convert::to_ullong ( slong  value)
static

Convert slong to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;

◆ to_ullong() [16/23]

static xtd::ulong xtd::convert::to_ullong ( std::any  value)
static

Convert std::any to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
std::any value = 42;

◆ to_ullong() [17/23]

template<typename type_t >
static xtd::ulong xtd::convert::to_ullong ( type_t  value)
inlinestaticnoexcept

Convert type_t to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
address_family value = address_family::inter_network;

◆ to_ullong() [18/23]

static xtd::ulong xtd::convert::to_ullong ( uint16  value)
staticnoexcept

Convert uint16 to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
uint16 value = 42u;

◆ to_ullong() [19/23]

static xtd::ulong xtd::convert::to_ullong ( uint32  value)
staticnoexcept

Convert uint32 to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
uint32 value = 42u;

◆ to_ullong() [20/23]

static xtd::ulong xtd::convert::to_ullong ( uint64  value)
staticnoexcept

Convert uint64 to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;

◆ to_ullong() [21/23]

static xtd::ulong xtd::convert::to_ullong ( wchar  value)
staticnoexcept

Convert char32 to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
wchar value = L'a';

◆ to_ullong() [22/23]

static xtd::ulong xtd::convert::to_ullong ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
xtd::byte value = 42;

◆ to_ullong() [23/23]

static xtd::ulong xtd::convert::to_ullong ( xtd::ulong  value)
staticnoexcept

Convert slong to xtd::ulong.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Examples
xtd::ulong value = 42ull;

◆ to_ustring() [1/32]

static ustring xtd::convert::to_ustring ( bool  value)
staticnoexcept

Convert bool to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
bool value = true;
ustring result = convert::to_ustring(value);
static ustring to_ustring(std::any value)
Convert std::any to ustring.

◆ to_ustring() [2/32]

static ustring xtd::convert::to_ustring ( char  value)
staticnoexcept

Convert char to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char value = 'a';
ustring result = convert::to_ustring(value);

◆ to_ustring() [3/32]

static ustring xtd::convert::to_ustring ( char16  value)
staticnoexcept

Convert char16 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char16 value = u'a';
ustring result = convert::to_ustring(value);

◆ to_ustring() [4/32]

static ustring xtd::convert::to_ustring ( char32  value)
staticnoexcept

Convert char32 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char32 value = U'a';
ustring result = convert::to_ustring(value);

◆ to_ustring() [5/32]

static ustring xtd::convert::to_ustring ( char8  value)
staticnoexcept

Convert char8 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char8 value = u8'a';
ustring result = convert::to_ustring(value);

◆ to_ustring() [6/32]

static ustring xtd::convert::to_ustring ( const xtd::ustring value)
static

Convert string to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
ustring value = "42";
ustring result = convert::to_ustring(value);

◆ to_ustring() [7/32]

static ustring xtd::convert::to_ustring ( decimal  value)
static

Convert decimal to ustring.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Returns
A new ustring object converted from value.
Examples
decimal value = 42.50l;
ustring result = convert::to_ustring(value);

◆ to_ustring() [8/32]

static ustring xtd::convert::to_ustring ( double  value)
static

Convert double to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
ustring result = convert::to_ustring(value);

◆ to_ustring() [9/32]

static ustring xtd::convert::to_ustring ( float  value)
static

Convert float to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Remarks
The result is rounded.
Examples
float value = 42.50f;
ustring result = convert::to_ustring(value);

◆ to_ustring() [10/32]

static ustring xtd::convert::to_ustring ( int16  value)
static

Convert int16 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
int16 value = 42;
ustring result = convert::to_ustring(value);

◆ to_ustring() [11/32]

static ustring xtd::convert::to_ustring ( int16  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int16 value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [12/32]

static ustring xtd::convert::to_ustring ( int32  value)
static

Convert int32 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
ustring result = convert::to_ustring(value);

◆ to_ustring() [13/32]

static ustring xtd::convert::to_ustring ( int32  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int32 value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [14/32]

static ustring xtd::convert::to_ustring ( int64  value)
static

Convert int64 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
ustring result = convert::to_ustring(value);

◆ to_ustring() [15/32]

static ustring xtd::convert::to_ustring ( int64  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int64 value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [16/32]

static ustring xtd::convert::to_ustring ( sbyte  value)
static

Convert sbyte to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
sbyte value = 42;
ustring result = convert::to_ustring(value);

◆ to_ustring() [17/32]

static ustring xtd::convert::to_ustring ( sbyte  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
sbyte value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [18/32]

static ustring xtd::convert::to_ustring ( slong  value)
static

Convert slong to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
ustring result = convert::to_ustring(value);

◆ to_ustring() [19/32]

static ustring xtd::convert::to_ustring ( slong  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
slong value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [20/32]

static ustring xtd::convert::to_ustring ( std::any  value)
static

Convert std::any to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
std::any value = 42;
ustring result = convert::to_string(value);

◆ to_ustring() [21/32]

template<typename type_t >
static ustring xtd::convert::to_ustring ( type_t  value)
inlinestaticnoexcept

Convert type_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
address_family value = address_family::inter_network;
ustring result = convert::to_ustring(value);

◆ to_ustring() [22/32]

static ustring xtd::convert::to_ustring ( uint16  value)
staticnoexcept

Convert uint16 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
uint16 value = 42u;
ustring result = convert::to_ustring(value);

◆ to_ustring() [23/32]

static ustring xtd::convert::to_ustring ( uint16  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint16 value = 42u;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [24/32]

static ustring xtd::convert::to_ustring ( uint32  value)
staticnoexcept

Convert uint32 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
uint32 value = 42u;
ustring result = convert::to_ustring(value);

◆ to_ustring() [25/32]

static ustring xtd::convert::to_ustring ( uint32  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint32 value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [26/32]

static ustring xtd::convert::to_ustring ( uint64  value)
staticnoexcept

Convert uint64 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42u;
ustring result = convert::to_ustring(value);

◆ to_ustring() [27/32]

static ustring xtd::convert::to_ustring ( uint64  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint64 value = 42ul;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [28/32]

static ustring xtd::convert::to_ustring ( wchar  value)
staticnoexcept

Convert char32 to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
wchar value = L'a';
ustring result = convert::to_ustring(value);

◆ to_ustring() [29/32]

static ustring xtd::convert::to_ustring ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
xtd::byte value = 42;
ustring result = convert::to_ustring(value);

◆ to_ustring() [30/32]

static ustring xtd::convert::to_ustring ( xtd::byte  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
xtd::byte value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [31/32]

static ustring xtd::convert::to_ustring ( xtd::ulong  value)
staticnoexcept

Convert slong to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
xtd::ulong value = 42ull;
ustring result = convert::to_ustring(value);

◆ to_ustring() [32/32]

static ustring xtd::convert::to_ustring ( xtd::ulong  value,
xtd::byte  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
xtd::ulong value = 42ull;
ustring result = convert::to_ustring(value, 16);

◆ to_wchar() [1/22]

static wchar xtd::convert::to_wchar ( bool  value)
static

Convert bool to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Examples
bool value = true;
wchar result = convert::to_wchar(value);
static wchar to_wchar(std::any value)
Convert std::any to wchar.

◆ to_wchar() [2/22]

static wchar xtd::convert::to_wchar ( char  value)
staticnoexcept

Convert char to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Examples
char value = 'a';
wchar result = convert::to_wchar(value);

◆ to_wchar() [3/22]

static wchar xtd::convert::to_wchar ( char16  value)
staticnoexcept

Convert char16 to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Examples
char16 value = u'a';
wchar result = convert::to_wchar(value);

◆ to_wchar() [4/22]

static wchar xtd::convert::to_wchar ( char32  value)
static

Convert char32 to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
char32 value = U'a';
wchar result = convert::to_wchar(value);

◆ to_wchar() [5/22]

static wchar xtd::convert::to_wchar ( char8  value)
staticnoexcept

Convert char8 to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Examples
char8 value = u8'a';
wchar result = convert::to_wchar(value);

◆ to_wchar() [6/22]

static wchar xtd::convert::to_wchar ( const xtd::ustring value)
static

Convert string to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
wchar result = convert::to_wchar(value);

◆ to_wchar() [7/22]

static wchar xtd::convert::to_wchar ( decimal  value)
static

Convert decimal to wchar.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new wchar object converted from value.
Examples
decimal value = 42.50l;
wchar result = convert::to_wchar(value);

◆ to_wchar() [8/22]

static wchar xtd::convert::to_wchar ( double  value)
static

Convert double to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
double value = 42.50;
wchar result = convert::to_wchar(value);

◆ to_wchar() [9/22]

static wchar xtd::convert::to_wchar ( float  value)
static

Convert float to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
float value = 42.50f;
wchar result = convert::to_wchar(value);

◆ to_wchar() [10/22]

static wchar xtd::convert::to_wchar ( int16  value)
static

Convert int16 to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int16 value = 42;
wchar result = convert::to_wchar(value);

◆ to_wchar() [11/22]

static wchar xtd::convert::to_wchar ( int32  value)
static

Convert int32 to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int32 value = 42;
wchar result = convert::to_wchar(value);

◆ to_wchar() [12/22]

static wchar xtd::convert::to_wchar ( int64  value)
static

Convert int64 to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
int64 value = 42l;
wchar result = convert::to_wchar(value);

◆ to_wchar() [13/22]

static wchar xtd::convert::to_wchar ( sbyte  value)
static

Convert sbyte to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte value = 42;
wchar result = convert::to_wchar(value);

◆ to_wchar() [14/22]

static wchar xtd::convert::to_wchar ( slong  value)
static

Convert slong to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max() or is less than 0.
Examples
slong value = 42ll;
wchar result = convert::to_wchar(value);

◆ to_wchar() [15/22]

static wchar xtd::convert::to_wchar ( std::any  value)
static

Convert std::any to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Examples
std::any value = 42;
wchar result = convert::to_wchar(value);

◆ to_wchar() [16/22]

template<typename type_t >
static wchar xtd::convert::to_wchar ( type_t  value)
inlinestaticnoexcept

Convert type_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Examples
address_family value = address_family::inter_network;
wchar result = convert::to_wchar(value);

◆ to_wchar() [17/22]

static wchar xtd::convert::to_wchar ( uint16  value)
staticnoexcept

Convert uint16 to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Examples
uint16 value = 42u;
wchar result = convert::to_wchar(value);

◆ to_wchar() [18/22]

static wchar xtd::convert::to_wchar ( uint32  value)
static

Convert uint32 to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint32 value = 42u;
wchar result = convert::to_wchar(value);

◆ to_wchar() [19/22]

static wchar xtd::convert::to_wchar ( uint64  value)
static

Convert uint64 to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
uint64t value = 42ul;
wchar result = convert::to_wchar(value);

◆ to_wchar() [20/22]

static wchar xtd::convert::to_wchar ( wchar  value)
staticnoexcept

Convert char32 to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Examples
wchar value = L'a';
wchar result = convert::to_wchar(value);

◆ to_wchar() [21/22]

static wchar xtd::convert::to_wchar ( xtd::byte  value)
staticnoexcept

Convert xtd::byte to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Examples
xtd::byte value = 42;
wchar result = convert::to_wchar(value);

◆ to_wchar() [22/22]

static wchar xtd::convert::to_wchar ( xtd::ulong  value)
static

Convert slong to wchar.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<xtd::byte>::max().
Examples
xtd::ulong value = 42ull;
wchar result = convert::to_wchar(value);

The documentation for this class was generated from the following file: