5#include "system/object.h"
6#include "system/shared_ptr.h"
8#include "system/primitive_types.h"
9#include "system/math.h"
10#include "system/exceptions.h"
11#include "system/array.h"
12#include "system/char.h"
13#include "system/decimal.h"
14#include "system/date_time.h"
15#include "system/globalization/number_styles.h"
16#include "system/iformatprovider.h"
17#include "system/type_code.h"
18#include "system/boolean.h"
25namespace Globalization {
27 class DateTimeFormatInfo;
28 class NumberFormatInfo;
56 std::enable_if_t<!IsSmartPtr<T>::value,
bool>
59 throw NotImplementedException(ASPOSE_CURRENT_FUNCTION);
67 return value ==
nullptr;
135 static constexpr bool ToBoolean(
bool value) {
return value; }
137 static constexpr bool ToBoolean(uint8_t value) {
return value != 0; }
139 static constexpr bool ToBoolean(int8_t value) {
return value != 0; }
141 static constexpr bool ToBoolean(uint16_t value) {
return value != 0; }
143 static constexpr bool ToBoolean(int16_t value) {
return value != 0; }
145 static constexpr bool ToBoolean(uint32_t value) {
return value != 0; }
147 static constexpr bool ToBoolean(int32_t value) {
return value != 0; }
149 static constexpr bool ToBoolean(uint64_t value) {
return value != 0; }
151 static constexpr bool ToBoolean(int64_t value) {
return value != 0; }
153 static constexpr bool ToBoolean(
float value) {
return value != 0; }
155 static constexpr bool ToBoolean(
double value) {
return value != 0; }
159 static ASPOSECPP_SHARED_API
bool ToBoolean(char_t value);
165 static constexpr bool ToBoolean(std::nullptr_t) {
return false; }
188 static constexpr uint8_t
ToByte(
bool value) {
return value ? 1 : 0; }
190 static constexpr uint8_t
ToByte(uint8_t value) {
return value; }
192 static ASPOSECPP_SHARED_API uint8_t
ToByte(int8_t value);
194 static ASPOSECPP_SHARED_API uint8_t
ToByte(uint16_t value);
196 static ASPOSECPP_SHARED_API uint8_t
ToByte(int16_t value);
198 static ASPOSECPP_SHARED_API uint8_t
ToByte(uint32_t value);
200 static ASPOSECPP_SHARED_API uint8_t
ToByte(int32_t value);
202 static ASPOSECPP_SHARED_API uint8_t
ToByte(uint64_t value);
204 static ASPOSECPP_SHARED_API uint8_t
ToByte(int64_t value);
206 static ASPOSECPP_SHARED_API uint8_t
ToByte(
float value);
208 static ASPOSECPP_SHARED_API uint8_t
ToByte(
double value);
212 static ASPOSECPP_SHARED_API uint8_t
ToByte(char_t value);
218 static constexpr uint8_t
ToByte(std::nullptr_t) {
return 0; }
240 static ASPOSECPP_SHARED_API uint8_t
ToByte(
const String& value,
int from_base);
270 static constexpr int8_t
ToSByte(
bool value) {
return value ? 1 : 0; }
272 static ASPOSECPP_SHARED_API int8_t
ToSByte(uint8_t value);
274 static constexpr int8_t
ToSByte(int8_t value) {
return value; }
276 static ASPOSECPP_SHARED_API int8_t
ToSByte(uint16_t value);
278 static ASPOSECPP_SHARED_API int8_t
ToSByte(int16_t value);
280 static ASPOSECPP_SHARED_API int8_t
ToSByte(uint32_t value);
282 static ASPOSECPP_SHARED_API int8_t
ToSByte(int32_t value);
284 static ASPOSECPP_SHARED_API int8_t
ToSByte(uint64_t value);
286 static ASPOSECPP_SHARED_API int8_t
ToSByte(int64_t value);
288 static ASPOSECPP_SHARED_API int8_t
ToSByte(
float value);
290 static ASPOSECPP_SHARED_API int8_t
ToSByte(
double value);
294 static ASPOSECPP_SHARED_API int8_t
ToSByte(char_t value);
300 static constexpr int8_t
ToSByte(std::nullptr_t) {
return 0; }
322 static ASPOSECPP_SHARED_API int8_t
ToSByte(
const String& value,
int from_base);
352 static ASPOSECPP_SHARED_API char_t
ToChar(
bool value);
354 static constexpr char_t
ToChar(uint8_t value) {
return value; }
356 static ASPOSECPP_SHARED_API char_t
ToChar(int8_t value);
358 static constexpr char_t
ToChar(uint16_t value) {
return value; }
360 static ASPOSECPP_SHARED_API char_t
ToChar(int16_t value);
362 static ASPOSECPP_SHARED_API char_t
ToChar(uint32_t value);
364 static ASPOSECPP_SHARED_API char_t
ToChar(int32_t value);
366 static ASPOSECPP_SHARED_API char_t
ToChar(uint64_t value);
368 static ASPOSECPP_SHARED_API char_t
ToChar(int64_t value);
370 static ASPOSECPP_SHARED_API char_t
ToChar(
float value);
372 static ASPOSECPP_SHARED_API char_t
ToChar(
double value);
376 static constexpr char_t
ToChar(char_t value) {
return value; }
383 static ASPOSECPP_SHARED_API char_t
ToChar(
const char_t* value);
398 static constexpr int16_t
ToInt16(
bool value) {
return value ? 1 : 0; }
400 static constexpr int16_t
ToInt16(uint8_t value) {
return value; }
402 static constexpr int16_t
ToInt16(int8_t value) {
return value; }
404 static ASPOSECPP_SHARED_API int16_t
ToInt16(uint16_t value);
406 static constexpr int16_t
ToInt16(int16_t value) {
return value; }
408 static ASPOSECPP_SHARED_API int16_t
ToInt16(uint32_t value);
410 static ASPOSECPP_SHARED_API int16_t
ToInt16(int32_t value);
412 static ASPOSECPP_SHARED_API int16_t
ToInt16(uint64_t value);
414 static ASPOSECPP_SHARED_API int16_t
ToInt16(int64_t value);
416 static ASPOSECPP_SHARED_API int16_t
ToInt16(
float value);
418 static ASPOSECPP_SHARED_API int16_t
ToInt16(
double value);
422 static ASPOSECPP_SHARED_API int16_t
ToInt16(char_t value);
428 static constexpr int16_t
ToInt16(std::nullptr_t) {
return 0; }
450 static ASPOSECPP_SHARED_API int16_t
ToInt16(
const String& value,
int from_base);
480 static constexpr uint16_t
ToUInt16(
bool value) {
return value ? 1 : 0; }
482 static constexpr uint16_t
ToUInt16(uint8_t value) {
return value; }
484 static ASPOSECPP_SHARED_API uint16_t
ToUInt16(int8_t value);
486 static constexpr uint16_t
ToUInt16(uint16_t value) {
return value; }
488 static ASPOSECPP_SHARED_API uint16_t
ToUInt16(int16_t value);
490 static ASPOSECPP_SHARED_API uint16_t
ToUInt16(uint32_t value);
492 static ASPOSECPP_SHARED_API uint16_t
ToUInt16(int32_t value);
494 static ASPOSECPP_SHARED_API uint16_t
ToUInt16(uint64_t value);
496 static ASPOSECPP_SHARED_API uint16_t
ToUInt16(int64_t value);
498 static ASPOSECPP_SHARED_API uint16_t
ToUInt16(
float value);
500 static ASPOSECPP_SHARED_API uint16_t
ToUInt16(
double value);
504 static constexpr uint16_t
ToUInt16(char_t value) {
return value; }
510 static constexpr uint16_t
ToUInt16(std::nullptr_t) {
return 0; }
532 static ASPOSECPP_SHARED_API uint16_t
ToUInt16(
const String& value,
int from_base);
562 static constexpr int ToInt32(
bool value) {
return value ? 1 : 0; }
564 static constexpr int ToInt32(uint8_t value) {
return value; }
566 static constexpr int ToInt32(int8_t value) {
return value; }
568 static constexpr int ToInt32(uint16_t value) {
return value; }
570 static constexpr int ToInt32(int16_t value) {
return value; }
572 static ASPOSECPP_SHARED_API
int ToInt32(uint32_t value);
574 static constexpr int ToInt32(int32_t value) {
return value; }
576 static ASPOSECPP_SHARED_API
int ToInt32(uint64_t value);
578 static ASPOSECPP_SHARED_API
int ToInt32(int64_t value);
580 static ASPOSECPP_SHARED_API
int ToInt32(
float value);
582 static ASPOSECPP_SHARED_API
int ToInt32(
double value);
586 static constexpr int ToInt32(char_t value) {
return value; }
592 static constexpr int ToInt32(std::nullptr_t) {
return 0; }
614 static ASPOSECPP_SHARED_API
int ToInt32(
const String& value,
int from_base);
644 static constexpr uint32_t
ToUInt32(
bool value) {
return value ? 1 : 0; }
646 static constexpr uint32_t
ToUInt32(uint8_t value) {
return value; }
648 static ASPOSECPP_SHARED_API uint32_t
ToUInt32(int8_t value);
650 static constexpr uint32_t
ToUInt32(uint16_t value) {
return value; }
652 static ASPOSECPP_SHARED_API uint32_t
ToUInt32(int16_t value);
654 static constexpr uint32_t
ToUInt32(uint32_t value) {
return value; }
656 static ASPOSECPP_SHARED_API uint32_t
ToUInt32(int32_t value);
658 static ASPOSECPP_SHARED_API uint32_t
ToUInt32(uint64_t value);
660 static ASPOSECPP_SHARED_API uint32_t
ToUInt32(int64_t value);
662 static ASPOSECPP_SHARED_API uint32_t
ToUInt32(
float value);
664 static ASPOSECPP_SHARED_API uint32_t
ToUInt32(
double value);
668 static constexpr uint32_t
ToUInt32(char_t value) {
return value; }
674 static constexpr uint32_t
ToUInt32(std::nullptr_t) {
return 0; }
696 static ASPOSECPP_SHARED_API uint32_t
ToUInt32(
const String& value,
int from_base);
726 static constexpr int64_t
ToInt64(
bool value) {
return value ? 1 : 0; }
728 static constexpr int64_t
ToInt64(uint8_t value) {
return value; }
730 static constexpr int64_t
ToInt64(int8_t value) {
return value; }
732 static constexpr int64_t
ToInt64(uint16_t value) {
return value; }
734 static constexpr int64_t
ToInt64(int16_t value) {
return value; }
736 static constexpr int64_t
ToInt64(uint32_t value) {
return value; }
738 static constexpr int64_t
ToInt64(int32_t value) {
return value; }
740 static ASPOSECPP_SHARED_API int64_t
ToInt64(uint64_t value);
742 static constexpr int64_t
ToInt64(int64_t value) {
return value; }
744 static ASPOSECPP_SHARED_API int64_t
ToInt64(
float value);
746 static ASPOSECPP_SHARED_API int64_t
ToInt64(
double value);
750 static constexpr int64_t
ToInt64(char_t value) {
return value; }
756 static constexpr int64_t
ToInt64(std::nullptr_t) {
return 0; }
778 static ASPOSECPP_SHARED_API int64_t
ToInt64(
const String& value,
int from_base);
808 static constexpr uint64_t
ToUInt64(
bool value) {
return value ? 1 : 0; }
810 static constexpr uint64_t
ToUInt64(uint8_t value) {
return value; }
812 static ASPOSECPP_SHARED_API uint64_t
ToUInt64(int8_t value);
814 static constexpr uint64_t
ToUInt64(uint16_t value) {
return value; }
816 static ASPOSECPP_SHARED_API uint64_t
ToUInt64(int16_t value);
818 static constexpr uint64_t
ToUInt64(uint32_t value) {
return value; }
820 static ASPOSECPP_SHARED_API uint64_t
ToUInt64(int32_t value);
822 static constexpr uint64_t
ToUInt64(uint64_t value) {
return value; }
824 static ASPOSECPP_SHARED_API uint64_t
ToUInt64(int64_t value);
826 static ASPOSECPP_SHARED_API uint64_t
ToUInt64(
float value);
828 static ASPOSECPP_SHARED_API uint64_t
ToUInt64(
double value);
832 static constexpr uint64_t
ToUInt64(char_t value) {
return value; }
838 static constexpr uint64_t
ToUInt64(std::nullptr_t) {
return 0; }
860 static ASPOSECPP_SHARED_API uint64_t
ToUInt64(
const String& value,
int from_base);
890 static constexpr float ToSingle(
bool value) {
return value ? 1.f : 0.f; }
892 static constexpr float ToSingle(uint8_t value) {
return static_cast<float>(value); }
894 static constexpr float ToSingle(int8_t value) {
return static_cast<float>(value); }
896 static constexpr float ToSingle(uint16_t value) {
return static_cast<float>(value); }
898 static constexpr float ToSingle(int16_t value) {
return static_cast<float>(value); }
900 static constexpr float ToSingle(uint32_t value) {
return static_cast<float>(value); }
902 static constexpr float ToSingle(int32_t value) {
return static_cast<float>(value); }
904 static constexpr float ToSingle(uint64_t value) {
return static_cast<float>(value); }
906 static constexpr float ToSingle(int64_t value) {
return static_cast<float>(value); }
908 static constexpr float ToSingle(
float value) {
return value; }
910 static constexpr float ToSingle(
double value) {
return static_cast<float>(value); }
914 static ASPOSECPP_SHARED_API
float ToSingle(char_t value);
920 static constexpr float ToSingle(std::nullptr_t) {
return 0; }
956 static constexpr double ToDouble(
bool value) {
return value ? 1 : 0; }
958 static constexpr double ToDouble(uint8_t value) {
return static_cast<double>(value); }
960 static constexpr double ToDouble(int8_t value) {
return static_cast<double>(value); }
962 static constexpr double ToDouble(uint16_t value) {
return static_cast<double>(value); }
964 static constexpr double ToDouble(int16_t value) {
return static_cast<double>(value); }
966 static constexpr double ToDouble(uint32_t value) {
return static_cast<double>(value); }
968 static constexpr double ToDouble(int32_t value) {
return static_cast<double>(value); }
970 static constexpr double ToDouble(uint64_t value) {
return static_cast<double>(value); }
972 static constexpr double ToDouble(int64_t value) {
return static_cast<double>(value); }
974 static constexpr double ToDouble(
float value) {
return value; }
976 static constexpr double ToDouble(
double value) {
return value; }
980 static ASPOSECPP_SHARED_API
double ToDouble(char_t value);
986 static constexpr double ToDouble(std::nullptr_t) {
return 0; }
1456 return String(value, N - 1);
1465 return String(value, N - 1);
1470 return String(value, N - 1);
1606 template <typename Enum, typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
1609 return ToByte(
static_cast<typename std::underlying_type<Enum>::type
>(value));
1612 template <typename Enum, typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
1615 return ToSByte(
static_cast<typename std::underlying_type<Enum>::type
>(value));
1618 template <typename Enum, typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
1621 return ToUInt16(
static_cast<typename std::underlying_type<Enum>::type
>(value));
1624 template <typename Enum, typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
1627 return ToInt16(
static_cast<typename std::underlying_type<Enum>::type
>(value));
1630 template <typename Enum, typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
1633 return ToUInt32(
static_cast<typename std::underlying_type<Enum>::type
>(value));
1636 template <typename Enum, typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
1639 return ToInt32(
static_cast<typename std::underlying_type<Enum>::type
>(value));
1642 template <typename Enum, typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
1645 return ToUInt64(
static_cast<typename std::underlying_type<Enum>::type
>(value));
1648 template <typename Enum, typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
1651 return ToInt64(
static_cast<typename std::underlying_type<Enum>::type
>(value));
1754 template <
typename Source,
typename Target>
1755 static Target
To(
const Source& value);
static const String TrueString
String representation of 'true' boolean value.
Definition: boolean.h:48
static const String FalseString
String representation of 'false' boolean value.
Definition: boolean.h:50
static char_t Parse(const String &value)
Converts the first and the only character of the specified string to a char_t value.
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
Represents a decimal number. This type should be allocated on stack and passed to functions by value ...
Definition: decimal.h:107
static const Decimal Zero
Represents number 0.
Definition: decimal.h:123
Represents a Globally Unique IDentifier This type should be allocated on stack and passed to function...
Definition: guid.h:34
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Represents a particular type and provides information about it.
Definition: type_info.h:109
NumberStyles
Number style allowed when parsing.
Definition: number_styles.h:12
Definition: db_command.h:9
TypeCode
Represents the type of an object.
Definition: type_code.h:19
Base64FormattingOptions
Enumeration containing values that represent different formats of base-64 encoded data.
Definition: convert.h:33
@ InsertLineBreaks
Insert line breaks after every 76th character.
The structure that contains methods performing conversion of values of one type to the values of anot...
Definition: convert.h:44
static uint8_t ToByte(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static DateTime ToDateTime(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent DateTime value.
static int8_t ToSByte(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent 8-bit signed integer.
static double ToDouble(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
static int64_t ToInt64(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static DateTime ToDateTime(uint8_t value)
Conversion is not supported. Always throws InvalidCastException.
static char_t ToChar(int32_t value)
Converts the specified 32-bit signed integer to an equivalent unicode character.
static int ToInt32(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static uint8_t ToByte(double value)
Converts the specified double number to an equivalent 8-bit unsigned integer.
static constexpr int ToInt32(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent 32-bit signed integer.
Definition: convert.h:568
static uint16_t ToUInt16(double value)
Converts the specified double number to an equivalent 16-bit unsigned integer.
static String ToString(bool value, const String &, const SharedPtr< Globalization::CultureInfo > &)
Converts the specified value to its string representation.
Definition: convert.h:1563
static DateTime ToDateTime(const String &value)
Converts the specified string to an instance of DateTime class.
static constexpr bool ToBoolean(float value)
Converts the specified float number to an equivalent boolean value.
Definition: convert.h:153
static DateTime ToDateTime(float value)
Conversion is not supported. Always throws InvalidCastException.
static int ToInt32(double value)
Converts the specified double number to an equivalent 32-bit signed integer.
static String ToBase64String(const ArrayPtr< uint8_t > &in_array, Base64FormattingOptions options)
Base-64 encodes elements in the specified byte array and returns the encoded data as a string.
static Decimal ToDecimal(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent Decimal value.
static constexpr double ToDouble(int8_t value)
Converts the specified 8-bit signed integer to an equivalent double-precision floating-point number.
Definition: convert.h:960
static String ToString(float value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static String ToString(const Decimal &value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static int ToInt32(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent 32-b...
static int ToInt32(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static double ToDouble(char_t value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(int8_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static int8_t ToSByte(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent 8-bit signed integer.
static String ToString(int8_t value, const SharedPtr< Globalization::CultureInfo > &culture)
static uint32_t ToUInt32(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static bool ToBoolean(const char_t *value)
Converts the specified c-string to the value of bool type.
Definition: convert.h:171
static String ToString(uint16_t value, const String &format, std::nullptr_t=nullptr)
static String ToString(uint16_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static String ToString(const String &value, const SharedPtr< IFormatProvider > &)
Returns the specified value; no conversion is performed.
Definition: convert.h:1479
static int32_t ToInt32(Enum value)
Definition: convert.h:1637
static char_t ToChar(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent unicode character.
static constexpr int16_t ToInt16(bool value)
Converts the specified boolean value to an equivalent 16-bit signed integer.
Definition: convert.h:398
static uint16_t ToUInt16(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent 16-bit unsigned integer.
static constexpr double ToDouble(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent double-precision floating-point numbe...
Definition: convert.h:966
static DateTime ToDateTime(const Decimal &value)
Conversion is not supported. Always throws InvalidCastException.
static DateTime ToDateTime(const String &value, const SharedPtr< Globalization::DateTimeFormatInfo > &dtfi)
static constexpr uint32_t ToUInt32(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent 32-bit unsigned integer.
Definition: convert.h:646
static DateTime ToDateTime(const String &value, const SharedPtr< IFormatProvider > &fp)
Converts the specified string to an instance of DateTime class using the provided formatting informat...
static int16_t ToInt16(const String &value, int from_base)
Converts the specified string containing the string representation of a number in the specified base ...
static uint16_t ToUInt16(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(double value, std::nullptr_t)
Definition: convert.h:1272
static constexpr int ToInt32(int16_t value)
Converts the specified 16-bit signed integer to an equivalent 32-bit signed integer.
Definition: convert.h:570
static String ToString(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to its string representation. If the type of boxed value is String...
static String ToString(int8_t value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static String ToString(int8_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static String ToString(uint16_t value, const SharedPtr< Globalization::CultureInfo > &culture)
static DateTime ToDateTime(int8_t value)
Conversion is not supported. Always throws InvalidCastException.
static constexpr uint32_t ToUInt32(uint32_t value)
Returns the specified 32-bit unsigned integer.
Definition: convert.h:654
static constexpr uint32_t ToUInt32(std::nullptr_t)
Converts the specified null-string to the equivalent unsigned 32-bit integer value.
Definition: convert.h:674
static constexpr bool ToBoolean(double value)
Converts the specified double number to an equivalent boolean value.
Definition: convert.h:155
static uint16_t ToUInt16(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
static int ToInt32(int64_t value)
Converts the specified 64-bit signed integer to an equivalent 32-bit signed integer.
static constexpr char_t ToChar(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent unicode character.
Definition: convert.h:354
static String ToString(const Decimal &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static constexpr float ToSingle(int64_t value)
Converts the specified 64-bit signed integer to an equivalent single-precision floating-point number.
Definition: convert.h:906
static constexpr int8_t ToSByte(int8_t value)
Returns the specified 8-bit signed integer.
Definition: convert.h:274
static constexpr int ToInt32(int8_t value)
Converts the specified 8-bit signed integer to an equivalent 32-bit signed integer.
Definition: convert.h:566
static constexpr double ToDouble(int16_t value)
Converts the specified 16-bit signed integer to an equivalent double-precision floating-point number.
Definition: convert.h:964
static int64_t ToInt64(const String &value, int from_base)
Converts the specified string containing the string representation of a number in the specified base ...
static String ToString(uint8_t value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static constexpr bool ToBoolean(bool value)
Returns the specified boolean value.
Definition: convert.h:135
static constexpr int64_t ToInt64(int8_t value)
Converts the specified 8-bit signed integer to an equivalent 64-bit signed integer.
Definition: convert.h:730
static String ToString(int16_t value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static int ToInt32(const String &value)
Converts the specified string containing the string representation of a number to the equivalent 32-b...
static constexpr float ToSingle(float value)
Returns the specified float number.
Definition: convert.h:908
static String ToString(uint64_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static uint16_t ToUInt16(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static uint64_t ToUInt64(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static bool ToBoolean(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static constexpr int16_t ToInt16(int16_t value)
Returns the specified 16-bit signed integer.
Definition: convert.h:406
static String ToString(float value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static uint8_t ToByte(int64_t value)
Converts the specified 64-bit signed integer to an equivalent 8-bit unsigned integer.
static double ToDouble(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent doub...
static int64_t ToInt64(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static float ToSingle(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static String ToBase64String(const ArrayPtr< uint8_t > &in_array, int offset_in, int length, Base64FormattingOptions options)
Base-64 encodes a range of elements in the specified byte array and returns the encoded data as a str...
static String ToString(const Decimal &value, std::nullptr_t)
Definition: convert.h:1282
static constexpr uint32_t ToUInt32(bool value)
Converts the specified boolean value to an equivalent 32-bit unsigned integer.
Definition: convert.h:644
static ArrayPtr< uint8_t > FromBase64CharArray(const ArrayPtr< char_t > &in_array, int offset, int length)
Decodes base-64 encoded data represented as a range in the array of Unicode characters.
static uint8_t ToByte(const String &value, std::nullptr_t)
Definition: convert.h:252
static bool ToBoolean(const Decimal &value)
Converts the specified decimal number to an equivalent boolean value.
Definition: convert.h:157
static String ToString(DateTime value)
Converts the specified value to its string representation.
static String ToString(int8_t value, int to_base)
Converts the specified integer value to its string representation in the specified base.
static constexpr float ToSingle(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent single-precision floating-point numbe...
Definition: convert.h:904
static uint64_t ToUInt64(const String &value, std::nullptr_t)
Definition: convert.h:872
static String ToString(uint64_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static int8_t ToSByte(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
static uint8_t ToByte(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent 8-bit unsigned integer.
static String ToBase64String(const ArrayPtr< uint8_t > &in_array, bool insert_line_breaks=false)
Base-64 encodes elements in the specified byte array and returns the encoded data as a string.
static constexpr float ToSingle(std::nullptr_t)
Converts the specified null-string to the equivalent single-precision floating-point value.
Definition: convert.h:920
static uint32_t ToUInt32(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static constexpr float ToSingle(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent single-precision floating-point numbe...
Definition: convert.h:900
static int16_t ToInt16(Enum value)
Definition: convert.h:1625
static String ToString(uint32_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static constexpr double ToDouble(double value)
Returns the specified double number.
Definition: convert.h:976
static char_t ToChar(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent unicode character.
static constexpr uint8_t ToByte(std::nullptr_t)
Converts the specified null-string to the equivalent unsigned 8-bit integer value.
Definition: convert.h:218
static String ToBase64String(const ArrayPtr< uint8_t > &in_array, int offset_in, int length, bool insert_line_breaks=false)
Base-64 encodes a range of elements in the specified byte array and returns the encoded data as a str...
static uint8_t ToByte(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(int8_t value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static uint8_t ToByte(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
static constexpr bool ToBoolean(int32_t value)
Converts the specified 32-bit signed integer to an equivalent boolean value.
Definition: convert.h:147
static uint64_t ToUInt64(int64_t value)
Converts the specified 64-bit signed integer to an equivalent 64-bit unsigned integer.
static String ToString(const char_t(&value)[N], std::nullptr_t=nullptr)
Converts the specified array of unicode characters to string.
Definition: convert.h:1454
static String ToString(float value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static uint8_t ToByte(const String &value)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static uint64_t ToUInt64(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(uint32_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static uint8_t ToByte(char_t value)
Converts the specified unicode character to an equivalent 8-bit unsigned integer.
static constexpr bool ToBoolean(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent boolean value.
Definition: convert.h:145
static int8_t ToSByte(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static constexpr int64_t ToInt64(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent 64-bit signed integer.
Definition: convert.h:736
static uint64_t ToUInt64(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(int32_t value, const SharedPtr< Globalization::CultureInfo > &culture)
static bool ToBoolean(const String &value)
Converts the specified string to the value of bool type.
static constexpr double ToDouble(int64_t value)
Converts the specified 64-bit signed integer to an equivalent double-precision floating-point number.
Definition: convert.h:972
static constexpr uint16_t ToUInt16(char_t value)
Converts the specified unicode character to an equivalent 16-bit unsigned integer.
Definition: convert.h:504
static int8_t ToSByte(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(int32_t value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static int64_t ToInt64(Enum value)
Definition: convert.h:1649
static String ToString(uint32_t value)
Converts the specified value to its string representation.
static String ToString(bool value, const SharedPtr< Globalization::CultureInfo > &)
Converts the specified value to its string representation.
Definition: convert.h:1542
static String ToString(int16_t value, const String &format, std::nullptr_t=nullptr)
static String ToString(uint32_t value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static String ToString(float value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static double ToDouble(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent doub...
static int ToBase64CharArray(const ArrayPtr< uint8_t > &in_array, int offset_in, int length, const ArrayPtr< char_t > &out_array, int offset_out, Base64FormattingOptions options)
Base-64 encodes a range of elements in the specified byte array and stores the encoded data as an arr...
static uint32_t ToUInt32(int64_t value)
Converts the specified 64-bit signed integer to an equivalent 32-bit unsigned integer.
static String ToString(bool value, const SharedPtr< IFormatProvider > &)
Converts the specified value to its string representation.
Definition: convert.h:1535
static constexpr uint64_t ToUInt64(uint64_t value)
Returns the specified 64-bit unsigned integer.
Definition: convert.h:822
static SharedPtr< Object > ChangeType(const SharedPtr< Object > &value, const TypeInfo &conversion_type)
NOT IMPLEMENTED.
static String ToString(int8_t value, std::nullptr_t)
Definition: convert.h:1182
static String ToString(float value, std::nullptr_t)
Definition: convert.h:1262
static int8_t ToSByte(double value)
Converts the specified double number to an equivalent 8-bit signed integer.
static uint64_t ToUInt64(float value)
Converts the specified float number to an equivalent 64-bit unsigned integer.
static int8_t ToSByte(int64_t value)
Converts the specified 64-bit signed integer to an equivalent 8-bit signed integer.
static uint64_t ToUInt64(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static int8_t ToSByte(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent 8-bi...
static constexpr uint8_t ToByte(bool value)
Converts the specified boolean value to an equivalent 8-bit unsigned integer.
Definition: convert.h:188
static String ToString(char_t value, const String &, std::nullptr_t)
Returns the specified value; no conversion is performed.
Definition: convert.h:1520
static Decimal ToDecimal(int32_t value)
Converts the specified 32-bit signed integer to an equivalent decimal number.
Definition: convert.h:1034
static String ToString(float value, const String &format, std::nullptr_t=nullptr)
static uint8_t ToByte(int16_t value)
Converts the specified 16-bit signed integer to an equivalent 8-bit unsigned integer.
static uint16_t ToUInt16(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent unsigned 16-bit integer value.
static uint64_t ToUInt64(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static bool ToBoolean(const String &value, const SharedPtr< IFormatProvider > &)
Converts the specified string to the value of bool type.
Definition: convert.h:183
static int ToInt32(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static uint32_t ToUInt32(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent un...
Definition: convert.h:681
static Decimal ToDecimal(const Decimal &value)
Returns the specified decimal number.
Definition: convert.h:1044
static String ToString(int32_t value, const String &format, std::nullptr_t=nullptr)
static int ToBase64CharArray(const ArrayPtr< uint8_t > &in_array, int offset_in, int length, const ArrayPtr< char16_t > &out_array, int offset_out, bool insert_line_breaks=false)
Base-64 encodes a range of elements in the specified byte array and stores the encoded data as an arr...
static int8_t ToSByte(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
static uint16_t ToUInt16(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static constexpr double ToDouble(int32_t value)
Converts the specified 32-bit signed integer to an equivalent double-precision floating-point number.
Definition: convert.h:968
static String ToString(DateTime value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static int ToInt32(const String &value, int from_base)
Converts the specified string containing the string representation of a number in the specified base ...
static String ToString(const char_t(&value)[N], const SharedPtr< Globalization::CultureInfo > &)
Definition: convert.h:1468
static double ToDouble(const String &value)
Converts the specified string containing the string representation of a number to the equivalent doub...
static double ToDouble(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static DateTime ToDateTime(uint16_t value)
Conversion is not supported. Always throws InvalidCastException.
static int16_t ToInt16(const String &value)
Converts the specified string containing the string representation of a number to the equivalent 16-b...
static int16_t ToInt16(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent 16-b...
static uint32_t ToUInt32(Enum value)
Definition: convert.h:1631
static uint32_t ToUInt32(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static int64_t ToInt64(const String &value)
Converts the specified string containing the string representation of a number to the equivalent 64-b...
static uint64_t ToUInt64(const String &value)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static int64_t ToInt64(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static uint16_t ToUInt16(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
static String ToString(int64_t value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static uint32_t ToUInt32(int32_t value)
Converts the specified 32-bit signed integer to an equivalent 32-bit unsigned integer.
static uint64_t ToUInt64(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent un...
Definition: convert.h:845
static String ToString(int64_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static int8_t ToSByte(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static double ToDouble(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static int ToInt32(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent 32-b...
static String ToString(double value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(uint8_t value, int to_base)
Definition: convert.h:1600
static constexpr bool ToBoolean(int64_t value)
Converts the specified 64-bit signed integer to an equivalent boolean value.
Definition: convert.h:151
static std::enable_if_t<!IsSmartPtr< T >::value, bool > IsDBNull(const T &)
NOT IMPLEMENTED.
Definition: convert.h:57
static bool IsDBNull(const SharedPtr< T > &value)
NOT IMPLEMENTED Fake implementation, checks if value is nullptr.
Definition: convert.h:65
static int8_t ToSByte(float value)
Converts the specified float number to an equivalent 8-bit signed integer.
static constexpr int ToInt32(bool value)
Converts the specified boolean value to an equivalent 32-bit signed integer.
Definition: convert.h:562
static int64_t ToInt64(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent 64-bit integer value.
static String ToString(int64_t value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static String ToString(uint8_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static uint32_t ToUInt32(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static String ToString(const char_t(&value)[N], const SharedPtr< IFormatProvider > &)
Converts the specified array of unicode characters to string using the specified culture-specific for...
Definition: convert.h:1463
static String ToString(const Decimal &value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static int16_t ToInt16(int32_t value)
Converts the specified 32-bit signed integer to an equivalent 16-bit signed integer.
static double ToDouble(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static uint8_t ToByte(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent un...
Definition: convert.h:225
static String ToString(double value, const String &format, std::nullptr_t=nullptr)
static Decimal ToDecimal(float value)
Converts the specified float number to an equivalent decimal number.
Definition: convert.h:1040
static constexpr bool ToBoolean(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent boolean value.
Definition: convert.h:137
static int ToInt32(const Decimal &value)
Converts the specified decimal number to an equivalent 32-bit signed integer.
static String ToString(char_t value, const String &, const SharedPtr< IFormatProvider > &)
Returns the specified value; no conversion is performed.
Definition: convert.h:1510
static uint64_t ToUInt64(int16_t value)
Converts the specified 16-bit signed integer to an equivalent 64-bit unsigned integer.
static int64_t ToInt64(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent 64...
Definition: convert.h:763
static int16_t ToInt16(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static Decimal ToDecimal(char_t value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(int64_t value, int to_base)
Converts the specified integer value to its string representation in the specified base.
static String ToString(const Guid &value)
Converts the specified value to string.
static constexpr double ToDouble(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent double-precision floating-point numbe...
Definition: convert.h:970
static constexpr uint64_t ToUInt64(bool value)
Converts the specified boolean value to an equivalent 64-bit unsigned integer.
Definition: convert.h:808
static TypeCode GetTypeCode(const SharedPtr< Object > &obj)
Returns a TypeCode value representing the type of the specified boxed value.
static uint16_t ToUInt16(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent un...
Definition: convert.h:517
static uint8_t ToByte(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static DateTime ToDateTime(const String &value, std::nullptr_t)
Definition: convert.h:1121
static uint8_t ToByte(int8_t value)
Converts the specified 8-bit signed integer to an equivalent 8-bit unsigned integer.
static SharedPtr< Object > ChangeType(const SharedPtr< Object > &value, const TypeInfo &conversion_type, const SharedPtr< IFormatProvider > &provider)
static String ToString(int8_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static uint16_t ToUInt16(const Decimal &value)
Converts the specified decimal number to an equivalent 16-bit unsigned integer.
static int8_t ToSByte(const String &value, std::nullptr_t)
Definition: convert.h:334
static int8_t ToSByte(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent 8-...
Definition: convert.h:307
static String ToString(int32_t value, std::nullptr_t)
Definition: convert.h:1222
static char_t ToChar(float value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(uint64_t value, std::nullptr_t)
Definition: convert.h:1252
static uint16_t ToUInt16(int8_t value)
Converts the specified 8-bit signed integer to an equivalent 16-bit unsigned integer.
static float ToSingle(char_t value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(DateTime value, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(uint64_t value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static int ToInt32(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent 32-bit signed integer.
static int64_t ToInt64(double value)
Converts the specified double number to an equivalent 64-bit signed integer.
static int16_t ToInt16(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(uint16_t value)
Converts the specified value to its string representation.
static uint16_t ToUInt16(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static String ToString(const String &value, std::nullptr_t=nullptr)
Returns the specified value; no conversion is performed.
Definition: convert.h:1474
static char_t ToChar(const Decimal &value)
Conversion is not supported. Always throws InvalidCastException.
static uint64_t ToUInt64(Enum value)
Definition: convert.h:1643
static int16_t ToInt16(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent 16-bit signed integer.
static String ToString(int32_t value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static String ToString(uint8_t value, const String &format, std::nullptr_t=nullptr)
static uint64_t ToUInt64(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
static constexpr uint64_t ToUInt64(std::nullptr_t)
Converts the specified null-string to the equivalent unsigned 64-bit integer value.
Definition: convert.h:838
static Target To(const Source &value)
static uint8_t ToByte(float value)
Converts the specified float number to an equivalent 8-bit unsigned integer.
static String ToString(uint8_t value, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(int16_t value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static String ToString(DateTime value, std::nullptr_t)
Definition: convert.h:1292
static constexpr int64_t ToInt64(bool value)
Converts the specified boolean value to an equivalent 64-bit signed integer.
Definition: convert.h:726
static int8_t ToSByte(int16_t value)
Converts the specified 16-bit signed integer to an equivalent 8-bit signed integer.
static int64_t ToInt64(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static DateTime ToDateTime(char_t value)
Conversion is not supported. Always throws InvalidCastException.
static DateTime ToDateTime(double value)
Conversion is not supported. Always throws InvalidCastException.
static uint32_t ToUInt32(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static int64_t ToInt64(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent 64-b...
static constexpr int64_t ToInt64(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent 64-bit signed integer.
Definition: convert.h:732
static String ToString(uint32_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static String ToString(char_t value, std::nullptr_t=nullptr)
Returns the specified value; no conversion is performed.
Definition: convert.h:1495
static String ToString(int32_t value, int to_base)
Converts the specified integer value to its string representation in the specified base.
static Decimal ToDecimal(int8_t value)
Converts the specified 8-bit signed integer to an equivalent decimal number.
Definition: convert.h:1026
static String ToString(DateTime value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static constexpr int64_t ToInt64(int32_t value)
Converts the specified 32-bit signed integer to an equivalent 64-bit signed integer.
Definition: convert.h:738
static String ToString(uint8_t value)
Converts the specified value to its string representation.
static constexpr double ToDouble(float value)
Converts the specified single-precision number to an equivalent double-precision floating-point numbe...
Definition: convert.h:974
static String ToString(DateTime value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static int16_t ToInt16(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(DateTime value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(const Decimal &value)
Converts the specified value to its string representation.
static constexpr float ToSingle(double value)
Converts the specified double-precision number to an equivalent single-precision floating-point numbe...
Definition: convert.h:910
static DateTime ToDateTime(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static uint16_t ToUInt16(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static constexpr uint8_t ToByte(uint8_t value)
Returns the specified 8-bit unsigned integer.
Definition: convert.h:190
static float ToSingle(const Decimal &value)
Converts the specified decimal number to an equivalent single-precision floating-point number.
Definition: convert.h:912
static constexpr bool ToBoolean(int16_t value)
Converts the specified 16-bit signed integer to an equivalent boolean value.
Definition: convert.h:143
static Decimal ToDecimal(bool value)
Converts the specified boolean value to an equivalent decimal number.
Definition: convert.h:1022
static double ToDouble(const Decimal &value)
Converts the specified decimal number to an equivalent double-precision floating-point number.
Definition: convert.h:978
static constexpr char_t ToChar(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent unicode character.
Definition: convert.h:358
static int16_t ToInt16(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent 16-b...
static int8_t ToSByte(char_t value)
Converts the specified unicode character to an equivalent 8-bit signed integer.
static DateTime ToDateTime(int16_t value)
Conversion is not supported. Always throws InvalidCastException.
static float ToSingle(const String &value, std::nullptr_t)
Definition: convert.h:940
static char_t ToChar(const char_t *value)
Converts the first and the only character of the specified c-string to a char_t value.
static DateTime ToDateTime(bool value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(char_t value, const SharedPtr< IFormatProvider > &)
Returns the specified value; no conversion is performed.
Definition: convert.h:1500
static uint32_t ToUInt32(double value)
Converts the specified double number to an equivalent 32-bit unsigned integer.
static Decimal ToDecimal(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent decimal number.
Definition: convert.h:1024
static constexpr int ToInt32(std::nullptr_t)
Converts the specified null-string to the equivalent 32-bit integer value.
Definition: convert.h:592
static uint32_t ToUInt32(float value)
Converts the specified float number to an equivalent 32-bit unsigned integer.
static uint64_t ToUInt64(int8_t value)
Converts the specified 8-bit signed integer to an equivalent 64-bit unsigned integer.
static String ToString(int16_t value, const SharedPtr< Globalization::CultureInfo > &culture)
static char_t ToChar(int8_t value)
Converts the specified 8-bit signed integer to an equivalent unicode character.
static String ToString(int8_t value)
Converts the specified value to its string representation.
static constexpr bool ToBoolean(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent boolean value.
Definition: convert.h:149
static String ToString(int32_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static DateTime ToDateTime(uint64_t value)
Conversion is not supported. Always throws InvalidCastException.
static int ToInt32(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static int8_t ToSByte(const String &value)
Converts the specified string containing the string representation of a number to the equivalent 8-bi...
static uint8_t ToByte(int32_t value)
Converts the specified 32-bit signed integer to an equivalent 8-bit unsigned integer.
static String ToString(uint64_t value)
Converts the specified value to its string representation.
static int ToInt32(const String &value, std::nullptr_t)
Definition: convert.h:626
static int16_t ToInt16(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent 16-bit signed integer.
static char_t ToChar(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static uint16_t ToUInt16(const String &value, std::nullptr_t)
Definition: convert.h:544
static String ToString(uint32_t value, int to_base)
Definition: convert.h:1602
static uint64_t ToUInt64(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static uint64_t ToUInt64(const String &value, int from_base)
Converts the specified string containing the string representation of a number in the specified base ...
static constexpr double ToDouble(bool value)
Converts the specified boolean value to an equivalent double-precision floating-point number.
Definition: convert.h:956
static constexpr float ToSingle(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent single-precision floating-point number...
Definition: convert.h:892
static DateTime ToDateTime(int32_t value)
Conversion is not supported. Always throws InvalidCastException.
static constexpr uint16_t ToUInt16(std::nullptr_t)
Converts the specified null-string to the equivalent unsigned 16-bit integer value.
Definition: convert.h:510
static uint32_t ToUInt32(int8_t value)
Converts the specified 8-bit signed integer to an equivalent 32-bit unsigned integer.
static String ToString(const Decimal &value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static constexpr int ToInt32(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent 32-bit signed integer.
Definition: convert.h:564
static constexpr bool ToBoolean(std::nullptr_t)
Converts the specified null-string to the equivalent boolean value.
Definition: convert.h:165
static constexpr int ToInt32(int32_t value)
Returns the specified 32-bit signed integer.
Definition: convert.h:574
static String ToString(double value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static double ToDouble(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent do...
Definition: convert.h:991
static DateTime ToDateTime(int64_t value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(int16_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static int ToInt32(float value)
Converts the specified float number to an equivalent 32-bit signed integer.
static uint16_t ToUInt16(const String &value, int from_base)
Converts the specified string containing the string representation of a number in the specified base ...
static int8_t ToSByte(Enum value)
Definition: convert.h:1613
static float ToSingle(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent sing...
static int16_t ToInt16(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent 16-bit signed integer.
static String ToString(uint16_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static uint16_t ToUInt16(int64_t value)
Converts the specified 64-bit signed integer to an equivalent 16-bit unsigned integer.
static String ToString(int64_t value, std::nullptr_t)
Definition: convert.h:1242
static float ToSingle(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to single-precision floating-point value.
static constexpr float ToSingle(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent single-precision floating-point numbe...
Definition: convert.h:896
static constexpr DateTime ToDateTime(DateTime value)
Returns the specified date and time.
Definition: convert.h:1106
static int16_t ToInt16(double value)
Converts the specified double number to an equivalent 16-bit signed integer.
static int64_t ToInt64(float value)
Converts the specified float number to an equivalent 64-bit signed integer.
static uint32_t ToUInt32(const String &value)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static float ToSingle(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
static String ToString(uint32_t value, std::nullptr_t)
Definition: convert.h:1232
static Decimal ToDecimal(const String &value)
Converts the specified string containing the string representation of a number to the equivalent Deci...
static uint8_t ToByte(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
static int ToInt32(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent 32-bit signed integer.
static int64_t ToInt64(const Decimal &value)
Converts the specified decimal number to an equivalent 64-bit signed integer.
static String ToString(int64_t value, const String &format, std::nullptr_t=nullptr)
static String ToString(uint32_t value, const String &format, std::nullptr_t=nullptr)
static int64_t ToInt64(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent 64-bit signed integer.
static float ToSingle(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent si...
Definition: convert.h:925
static String ToString(uint8_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static uint8_t ToByte(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static String ToString(uint16_t value, int to_base)
Definition: convert.h:1601
static constexpr float ToSingle(int8_t value)
Converts the specified 8-bit signed integer to an equivalent single-precision floating-point number.
Definition: convert.h:894
static float ToSingle(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
static constexpr uint16_t ToUInt16(uint16_t value)
Returns the specified 16-bit unsigned integer.
Definition: convert.h:486
static Decimal ToDecimal(std::nullptr_t)
Converts the specified null-string to the equivalent Decimal value.
Definition: convert.h:1052
static int8_t ToSByte(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent 8-bit signed integer.
static constexpr int64_t ToInt64(int64_t value)
Returns the specified 64-bit signed integer.
Definition: convert.h:742
static String ToString(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &)
Returns the specified value; no conversion is performed.
Definition: convert.h:1489
static uint32_t ToUInt32(const String &value, std::nullptr_t)
Definition: convert.h:708
static String ToString(uint8_t value, std::nullptr_t)
Definition: convert.h:1192
static int64_t ToInt64(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
static uint16_t ToUInt16(const String &value)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static uint16_t ToUInt16(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static constexpr bool ToBoolean(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent boolean value.
Definition: convert.h:141
static String ToString(int64_t value)
Converts the specified value to its string representation.
static String ToString(uint32_t value, const SharedPtr< Globalization::CultureInfo > &culture)
static float ToSingle(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static uint64_t ToUInt64(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent unsi...
static String ToString(DateTime value, const SharedPtr< Globalization::DateTimeFormatInfo > &dtfi)
static String ToString(int16_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static String ToString(double value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static constexpr double ToDouble(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent double-precision floating-point numbe...
Definition: convert.h:962
static int16_t ToInt16(int64_t value)
Converts the specified 64-bit signed integer to an equivalent 16-bit signed integer.
static String ToString(uint64_t value, const String &format, std::nullptr_t=nullptr)
static Decimal ToDecimal(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent Deci...
static uint16_t ToUInt16(int32_t value)
Converts the specified 32-bit signed integer to an equivalent 16-bit unsigned integer.
static constexpr int64_t ToInt64(std::nullptr_t)
Converts the specified null-string to the equivalent int 64-bit integer value.
Definition: convert.h:756
static uint64_t ToUInt64(int32_t value)
Converts the specified 32-bit signed integer to an equivalent 64-bit unsigned integer.
static String ToString(uint16_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static constexpr int64_t ToInt64(int16_t value)
Converts the specified 16-bit signed integer to an equivalent 64-bit signed integer.
Definition: convert.h:734
static String ToString(uint64_t value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static char_t ToChar(bool value)
Conversion is not supported. Always throws InvalidCastException.
static uint64_t ToUInt64(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent unsigned 64-bit integer value.
static uint64_t ToUInt64(double value)
Converts the specified double number to an equivalent 64-bit unsigned integer.
static uint8_t ToByte(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent 8-bit unsigned integer.
static uint64_t ToUInt64(const Decimal &value)
Converts the specified decimal number to an equivalent 64-bit unsigned integer.
static Decimal ToDecimal(const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent Deci...
static String ToString(double value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static uint8_t ToByte(const Decimal &value)
Converts the specified decimal number to an equivalent 8-bit unsigned integer.
static Decimal ToDecimal(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent decimal number.
Definition: convert.h:1028
static String ToString(int16_t value, std::nullptr_t)
Definition: convert.h:1202
static int16_t ToInt16(const Decimal &value)
Converts the specified decimal number to an equivalent 16-bit signed integer.
static int ToInt32(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent 32-bit integer value.
static String ToString(uint8_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static int16_t ToInt16(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
static int16_t ToInt16(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent 16-bit integer value.
static int16_t ToInt16(float value)
Converts the specified float number to an equivalent 16-bit signed integer.
static int8_t ToSByte(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static String ToString(char_t value, const String &, const SharedPtr< Globalization::CultureInfo > &)
Returns the specified value; no conversion is performed.
Definition: convert.h:1515
static int ToInt32(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
static int64_t ToInt64(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
static constexpr uint16_t ToUInt16(bool value)
Converts the specified boolean value to an equivalent 16-bit unsigned integer.
Definition: convert.h:480
static String ToString(uint8_t value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static uint8_t ToByte(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent unsigned 8-bit integer value.
static uint8_t ToByte(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(int32_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static String ToString(int8_t value, const String &format, std::nullptr_t=nullptr)
static uint16_t ToUInt16(int16_t value)
Converts the specified 16-bit signed integer to an equivalent 16-bit unsigned integer.
static String ToString(const Guid &value, const String &format)
Converts the specified value to string using the specified string format.
static constexpr int16_t ToInt16(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent 16-bit signed integer.
Definition: convert.h:400
static int64_t ToInt64(const String &value, std::nullptr_t)
Definition: convert.h:790
static constexpr uint32_t ToUInt32(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent 32-bit unsigned integer.
Definition: convert.h:650
static int8_t ToSByte(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent 8-bit integer value.
static uint8_t ToByte(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static int ToInt32(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
static Decimal ToDecimal(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent decimal number.
Definition: convert.h:1032
static String ToString(float value, const SharedPtr< Globalization::CultureInfo > &culture)
static constexpr int8_t ToSByte(bool value)
Converts the specified boolean value to an equivalent 8-bit signed integer.
Definition: convert.h:270
static bool ToBoolean(char_t value)
Conversion is not supported. Always throws InvalidCastException.
static constexpr bool ToBoolean(int8_t value)
Converts the specified 8-bit signed integer to an equivalent boolean value.
Definition: convert.h:139
static constexpr float ToSingle(int32_t value)
Converts the specified 32-bit signed integer to an equivalent single-precision floating-point number.
Definition: convert.h:902
static constexpr double ToDouble(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent double-precision floating-point number...
Definition: convert.h:958
static bool ToBoolean(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent boolean value.
static String ToString(char_t value, const SharedPtr< Globalization::CultureInfo > &)
Returns the specified value; no conversion is performed.
Definition: convert.h:1505
static int ToInt32(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent 32...
Definition: convert.h:599
static uint16_t ToUInt16(Enum value)
Definition: convert.h:1619
static char_t ToChar(const String &value)
Converts the first and the only character of the specified string to a char_t value.
Definition: convert.h:388
static String ToString(const String &value, const SharedPtr< Globalization::CultureInfo > &)
Returns the specified value; no conversion is performed.
Definition: convert.h:1484
static uint32_t ToUInt32(int16_t value)
Converts the specified 16-bit signed integer to an equivalent 32-bit unsigned integer.
static Decimal ToDecimal(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent De...
Definition: convert.h:1057
static uint32_t ToUInt32(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
static int16_t ToInt16(const String &value, std::nullptr_t)
Definition: convert.h:462
static constexpr uint16_t ToUInt16(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent 16-bit unsigned integer.
Definition: convert.h:482
static String ToString(int16_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static int64_t ToInt64(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent 64-b...
static Decimal ToDecimal(double value)
Converts the specified double number to an equivalent decimal number.
Definition: convert.h:1042
static uint32_t ToUInt32(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(uint32_t value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static constexpr uint64_t ToUInt64(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent 64-bit unsigned integer.
Definition: convert.h:814
static uint8_t ToByte(const String &value, int from_base)
Converts the specified string containing the string representation of a number in the specified base ...
static String ToString(uint64_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static int8_t ToSByte(const Decimal &value)
Converts the specified decimal number to an equivalent 8-bit signed integer.
static String ToString(int32_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(const Decimal &value, const String &format, std::nullptr_t=nullptr)
static constexpr int8_t ToSByte(std::nullptr_t)
Converts the specified null-string to the equivalent 8-bit integer value.
Definition: convert.h:300
static String ToString(bool value, const SharedPtr< Globalization::NumberFormatInfo > &)
Converts the specified value to its string representation.
Definition: convert.h:1549
static constexpr float ToSingle(bool value)
Converts the specified boolean value to an equivalent single-precision floating-point number.
Definition: convert.h:890
static int16_t ToInt16(const char_t *value)
Converts the specified c-string containing the string representation of a number to the equivalent 16...
Definition: convert.h:435
static constexpr int16_t ToInt16(int8_t value)
Converts the specified 8-bit signed integer to an equivalent 16-bit signed integer.
Definition: convert.h:402
static String ToString(const Decimal &value, const SharedPtr< Globalization::CultureInfo > &culture)
static char_t ToChar(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent unicode character.
static int8_t ToSByte(int32_t value)
Converts the specified 32-bit signed integer to an equivalent 8-bit signed integer.
static String ToString(bool value, const String &, std::nullptr_t)
Converts the specified value to its string representation.
Definition: convert.h:1570
static uint32_t ToUInt32(const String &value, int from_base)
Converts the specified string containing the string representation of a number in the specified base ...
static constexpr char_t ToChar(char_t value)
Returns the specified unicode character.
Definition: convert.h:376
static int16_t ToInt16(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
static String ToString(int64_t value, const SharedPtr< Globalization::CultureInfo > &culture)
static double ToDouble(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to double-precision floating-point value. If the type of boxed val...
static uint16_t ToUInt16(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent 16-bit unsigned integer.
static uint32_t ToUInt32(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent 32-bit unsigned integer.
static char_t ToChar(const String &value, const SharedPtr< IFormatProvider > &)
Converts the first and the only character of the specified string to a char_t value.
Definition: convert.h:393
static String ToString(int64_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(uint16_t value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static String ToString(int16_t value, int to_base)
Converts the specified integer value to its string representation in the specified base.
static int16_t ToInt16(const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static int16_t ToInt16(char_t value)
Converts the specified unicode character to an equivalent 16-bit signed integer.
static Decimal ToDecimal(int64_t value)
Converts the specified 64-bit signed integer to an equivalent decimal number.
Definition: convert.h:1038
static String ToString(double value, const String &format, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to its string representation using the specified string format and cultu...
static constexpr double ToDouble(std::nullptr_t)
Converts the specified null-string to the equivalent double-precision floating-point value.
Definition: convert.h:986
static String ToString(DateTime value, const String &format, std::nullptr_t=nullptr)
static ArrayPtr< uint8_t > FromBase64String(const String &s)
Decodes base-64 encoded data represented as a string.
static String ToString(bool value, const String &, const SharedPtr< IFormatProvider > &)
Converts the specified value to its string representation.
Definition: convert.h:1556
static int8_t ToSByte(const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static constexpr int16_t ToInt16(std::nullptr_t)
Converts the specified null-string to the equivalent 16-bit integer value.
Definition: convert.h:428
static String ToString(bool value, std::nullptr_t=nullptr)
Converts the specified value to its string representation.
Definition: convert.h:1528
static float ToSingle(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(float value)
Converts the specified value to its string representation.
static float ToSingle(const String &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified string containing the string representation of a number to the equivalent sing...
static constexpr float ToSingle(int16_t value)
Converts the specified 16-bit signed integer to an equivalent single-precision floating-point number.
Definition: convert.h:898
static String ToString(double value)
Converts the specified value to its string representation.
static String ToString(int64_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
static char_t ToChar(int64_t value)
Converts the specified 64-bit signed integer to an equivalent unicode character.
static uint8_t ToByte(Enum value)
Definition: convert.h:1607
static float ToSingle(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static Decimal ToDecimal(int16_t value)
Converts the specified 16-bit signed integer to an equivalent decimal number.
Definition: convert.h:1030
static String ToString(uint16_t value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static char_t ToChar(double value)
Conversion is not supported. Always throws InvalidCastException.
static constexpr int64_t ToInt64(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent 64-bit signed integer.
Definition: convert.h:728
static float ToSingle(const String &value)
Converts the specified string containing the string representation of a number to the equivalent sing...
static uint32_t ToUInt32(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(const Decimal &value, const SharedPtr< IFormatProvider > &provider)
Converts the specified value to string using the culture-specific format information.
static String ToString(int16_t value)
Converts the specified value to its string representation.
static Decimal ToDecimal(DateTime value)
Conversion is not supported. Always throws InvalidCastException.
static String ToString(float value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
static String ToString(double value, const SharedPtr< Globalization::CultureInfo > &culture)
static constexpr uint64_t ToUInt64(char_t value)
Converts the specified unicode character to an equivalent 64-bit unsigned integer.
Definition: convert.h:832
static constexpr uint32_t ToUInt32(char_t value)
Converts the specified unicode character to an equivalent 32-bit unsigned integer.
Definition: convert.h:668
static double ToDouble(const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
static Decimal ToDecimal(uint64_t value)
Converts the specified 64-bit unsigned integer to an equivalent decimal number.
Definition: convert.h:1036
static int8_t ToSByte(uint16_t value)
Converts the specified 16-bit unsigned integer to an equivalent 8-bit signed integer.
static String ToString(uint64_t value, const SharedPtr< Globalization::CultureInfo > &culture)
static uint8_t ToByte(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent 8-bit unsigned integer.
static String ToString(uint16_t value, std::nullptr_t)
Definition: convert.h:1212
static constexpr uint64_t ToUInt64(uint8_t value)
Converts the specified 8-bit unsigned integer to an equivalent 64-bit unsigned integer.
Definition: convert.h:810
static uint32_t ToUInt32(const Decimal &value)
Converts the specified decimal number to an equivalent 32-bit unsigned integer.
static constexpr int64_t ToInt64(char_t value)
Converts the specified unicode character to an equivalent 64-bit signed integer.
Definition: convert.h:750
static uint16_t ToUInt16(float value)
Converts the specified float number to an equivalent 16-bit unsigned integer.
static uint32_t ToUInt32(const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
Converts the specified boxed value to equivalent unsigned 32-bit integer value.
static double ToDouble(const String &value, std::nullptr_t)
Definition: convert.h:1006
static DateTime ToDateTime(uint32_t value)
Conversion is not supported. Always throws InvalidCastException.
static constexpr uint64_t ToUInt64(uint32_t value)
Converts the specified 32-bit unsigned integer to an equivalent 64-bit unsigned integer.
Definition: convert.h:818
static char_t ToChar(int16_t value)
Converts the specified 16-bit signed integer to an equivalent unicode character.
static int8_t ToSByte(const String &value, int from_base)
Converts the specified string containing the string representation of a number in the specified base ...
static double ToDouble(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
static String ToString(int32_t value)
Converts the specified value to its string representation.
static constexpr int ToInt32(char_t value)
Converts the specified unicode character to an equivalent 32-bit signed integer.
Definition: convert.h:586
Provides methods that perform some operations on values of enum type. This is a static type with no i...
Definition: enum.h:158