System::Convert Struct Reference

The structure that contains methods performing conversion of values of one type to the values of another type. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type. More...

#include "convert.h"

Static Public Member Functions

static ASPOSECPP_SHARED_API SharedPtr< ObjectChangeType (const SharedPtr< Object > &value, const TypeInfo &conversion_type)
 NOT IMPLEMENTED. More...
 
template<typename T >
static std::enable_if_t<!IsSmartPtr< T >::value, bool > IsDBNull (const T &)
 NOT IMPLEMENTED. More...
 
template<typename T >
static bool IsDBNull (const SharedPtr< T > &value)
 NOT IMPLEMENTED Fake implementation, checks if value is nullptr. More...
 
static ASPOSECPP_SHARED_API 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 array of Unicode characters. More...
 
static ASPOSECPP_SHARED_API 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. More...
 
static ASPOSECPP_SHARED_API 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 string. More...
 
static ASPOSECPP_SHARED_API 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 array of Unicode characters. More...
 
static ASPOSECPP_SHARED_API 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. More...
 
static ASPOSECPP_SHARED_API 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 string. More...
 
static ASPOSECPP_SHARED_API 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. More...
 
static ASPOSECPP_SHARED_API ArrayPtr< uint8_t > FromBase64String (const String &s)
 Decodes base-64 encoded data represented as a string. More...
 
static constexpr bool ToBoolean (bool value)
 Returns the specified boolean value. More...
 
static constexpr bool ToBoolean (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent boolean value. More...
 
static constexpr bool ToBoolean (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent boolean value. More...
 
static constexpr bool ToBoolean (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent boolean value. More...
 
static constexpr bool ToBoolean (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent boolean value. More...
 
static constexpr bool ToBoolean (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent boolean value. More...
 
static constexpr bool ToBoolean (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent boolean value. More...
 
static constexpr bool ToBoolean (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent boolean value. More...
 
static constexpr bool ToBoolean (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent boolean value. More...
 
static constexpr bool ToBoolean (float value)
 Converts the specified float number to an equivalent boolean value. More...
 
static constexpr bool ToBoolean (double value)
 Converts the specified double number to an equivalent boolean value. More...
 
static bool ToBoolean (const Decimal &value)
 Converts the specified decimal number to an equivalent boolean value. More...
 
static ASPOSECPP_SHARED_API bool ToBoolean (char_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API bool ToBoolean (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr bool ToBoolean (std::nullptr_t)
 Converts the specified null-string to the equivalent boolean value. More...
 
static bool ToBoolean (const char_t *value)
 Converts the specified c-string to the value of bool type. More...
 
static ASPOSECPP_SHARED_API bool ToBoolean (const String &value)
 Converts the specified string to the value of bool type. More...
 
static bool ToBoolean (const String &value, const SharedPtr< IFormatProvider > &)
 Converts the specified string to the value of bool type. More...
 
static constexpr uint8_t ToByte (bool value)
 Converts the specified boolean value to an equivalent 8-bit unsigned integer. More...
 
static constexpr uint8_t ToByte (uint8_t value)
 Returns the specified 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (float value)
 Converts the specified float number to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (double value)
 Converts the specified double number to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (const Decimal &value)
 Converts the specified decimal number to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (char_t value)
 Converts the specified unicode character to an equivalent 8-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr uint8_t ToByte (std::nullptr_t)
 Converts the specified null-string to the equivalent unsigned 8-bit integer value. More...
 
static uint8_t ToByte (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent unsigned 8-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent unsigned 8-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (const String &value, int from_base)
 Converts the specified string containing the string representation of a number in the specified base to the equivalent unsigned 8-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent unsigned 8-bit integer value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API uint8_t ToByte (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static uint8_t ToByte (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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 unsigned 8-bit integer value using the provided formatting information and number style. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API uint8_t ToByte (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API uint8_t ToByte (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static constexpr int8_t ToSByte (bool value)
 Converts the specified boolean value to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent 8-bit signed integer. More...
 
static constexpr int8_t ToSByte (int8_t value)
 Returns the specified 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (float value)
 Converts the specified float number to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (double value)
 Converts the specified double number to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (const Decimal &value)
 Converts the specified decimal number to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (char_t value)
 Converts the specified unicode character to an equivalent 8-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr int8_t ToSByte (std::nullptr_t)
 Converts the specified null-string to the equivalent 8-bit integer value. More...
 
static int8_t ToSByte (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent 8-bit integer value. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent 8-bit integer value. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (const String &value, int from_base)
 Converts the specified string containing the string representation of a number in the specified base to the equivalent 8-bit integer value. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent unsigned 8-bit integer value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API int8_t ToSByte (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static int8_t ToSByte (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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-bit integer value using the provided formatting information and number style. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API int8_t ToSByte (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API int8_t ToSByte (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API char_t ToChar (bool value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr char_t ToChar (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent unicode character. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent unicode character. More...
 
static constexpr char_t ToChar (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent unicode character. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent unicode character. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent unicode character. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent unicode character. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent unicode character. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent unicode character. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (float value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (double value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (const Decimal &value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr char_t ToChar (char_t value)
 Returns the specified unicode character. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (const char_t *value)
 Converts the first and the only character of the specified c-string to a char_t value. More...
 
static char_t ToChar (const String &value)
 Converts the first and the only character of the specified string to a char_t value. More...
 
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. More...
 
static constexpr int16_t ToInt16 (bool value)
 Converts the specified boolean value to an equivalent 16-bit signed integer. More...
 
static constexpr int16_t ToInt16 (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent 16-bit signed integer. More...
 
static constexpr int16_t ToInt16 (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent 16-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent 16-bit signed integer. More...
 
static constexpr int16_t ToInt16 (int16_t value)
 Returns the specified 16-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent 16-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent 16-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent 16-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent 16-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (float value)
 Converts the specified float number to an equivalent 16-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (double value)
 Converts the specified double number to an equivalent 16-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (const Decimal &value)
 Converts the specified decimal number to an equivalent 16-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (char_t value)
 Converts the specified unicode character to an equivalent 16-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr int16_t ToInt16 (std::nullptr_t)
 Converts the specified null-string to the equivalent 16-bit integer value. More...
 
static int16_t ToInt16 (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent 16-bit integer value. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent 16-bit integer value. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (const String &value, int from_base)
 Converts the specified string containing the string representation of a number in the specified base to the equivalent 16-bit integer value. More...
 
static ASPOSECPP_SHARED_API 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-bit integer value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static int16_t ToInt16 (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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-bit integer value using the provided formatting information and number style. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (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. More...
 
static constexpr uint16_t ToUInt16 (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent 16-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent 16-bit unsigned integer. More...
 
static constexpr uint16_t ToUInt16 (uint16_t value)
 Returns the specified 16-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent 16-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent 16-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent 16-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent 16-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent 16-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (float value)
 Converts the specified float number to an equivalent 16-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (double value)
 Converts the specified double number to an equivalent 16-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const Decimal &value)
 Converts the specified decimal number to an equivalent 16-bit unsigned integer. More...
 
static constexpr uint16_t ToUInt16 (char_t value)
 Converts the specified unicode character to an equivalent 16-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr uint16_t ToUInt16 (std::nullptr_t)
 Converts the specified null-string to the equivalent unsigned 16-bit integer value. More...
 
static uint16_t ToUInt16 (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent unsigned 16-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent unsigned 16-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const String &value, int from_base)
 Converts the specified string containing the string representation of a number in the specified base to the equivalent unsigned 16-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent unsigned 16-bit integer value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static uint16_t ToUInt16 (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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 unsigned 16-bit integer value using the provided formatting information and number style. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static constexpr int ToInt32 (bool value)
 Converts the specified boolean value to an equivalent 32-bit signed integer. More...
 
static constexpr int ToInt32 (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent 32-bit signed integer. More...
 
static constexpr int ToInt32 (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent 32-bit signed integer. More...
 
static constexpr int ToInt32 (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent 32-bit signed integer. More...
 
static constexpr int ToInt32 (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent 32-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent 32-bit signed integer. More...
 
static constexpr int ToInt32 (int32_t value)
 Returns the specified 32-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent 32-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent 32-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (float value)
 Converts the specified float number to an equivalent 32-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (double value)
 Converts the specified double number to an equivalent 32-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (const Decimal &value)
 Converts the specified decimal number to an equivalent 32-bit signed integer. More...
 
static constexpr int ToInt32 (char_t value)
 Converts the specified unicode character to an equivalent 32-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr int ToInt32 (std::nullptr_t)
 Converts the specified null-string to the equivalent 32-bit integer value. More...
 
static int ToInt32 (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent 32-bit integer value. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent 32-bit integer value. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (const String &value, int from_base)
 Converts the specified string containing the string representation of a number in the specified base to the equivalent 32-bit integer value. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent 32-bit integer value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API int ToInt32 (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static int ToInt32 (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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-bit integer value using the provided formatting information and number style. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API int ToInt32 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API int ToInt32 (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static constexpr uint32_t ToUInt32 (bool value)
 Converts the specified boolean value to an equivalent 32-bit unsigned integer. More...
 
static constexpr uint32_t ToUInt32 (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent 32-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent 32-bit unsigned integer. More...
 
static constexpr uint32_t ToUInt32 (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent 32-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent 32-bit unsigned integer. More...
 
static constexpr uint32_t ToUInt32 (uint32_t value)
 Returns the specified 32-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent 32-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent 32-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent 32-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (float value)
 Converts the specified float number to an equivalent 32-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (double value)
 Converts the specified double number to an equivalent 32-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const Decimal &value)
 Converts the specified decimal number to an equivalent 32-bit unsigned integer. More...
 
static constexpr uint32_t ToUInt32 (char_t value)
 Converts the specified unicode character to an equivalent 32-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr uint32_t ToUInt32 (std::nullptr_t)
 Converts the specified null-string to the equivalent unsigned 32-bit integer value. More...
 
static uint32_t ToUInt32 (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent unsigned 32-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent unsigned 32-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const String &value, int from_base)
 Converts the specified string containing the string representation of a number in the specified base to the equivalent unsigned 32-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent unsigned 32-bit integer value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static uint32_t ToUInt32 (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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 unsigned 32-bit integer value using the provided formatting information and number style. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static constexpr int64_t ToInt64 (bool value)
 Converts the specified boolean value to an equivalent 64-bit signed integer. More...
 
static constexpr int64_t ToInt64 (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent 64-bit signed integer. More...
 
static constexpr int64_t ToInt64 (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent 64-bit signed integer. More...
 
static constexpr int64_t ToInt64 (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent 64-bit signed integer. More...
 
static constexpr int64_t ToInt64 (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent 64-bit signed integer. More...
 
static constexpr int64_t ToInt64 (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent 64-bit signed integer. More...
 
static constexpr int64_t ToInt64 (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent 64-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent 64-bit signed integer. More...
 
static constexpr int64_t ToInt64 (int64_t value)
 Returns the specified 64-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (float value)
 Converts the specified float number to an equivalent 64-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (double value)
 Converts the specified double number to an equivalent 64-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (const Decimal &value)
 Converts the specified decimal number to an equivalent 64-bit signed integer. More...
 
static constexpr int64_t ToInt64 (char_t value)
 Converts the specified unicode character to an equivalent 64-bit signed integer. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr int64_t ToInt64 (std::nullptr_t)
 Converts the specified null-string to the equivalent int 64-bit integer value. More...
 
static int64_t ToInt64 (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent 64-bit integer value. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent 64-bit integer value. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (const String &value, int from_base)
 Converts the specified string containing the string representation of a number in the specified base to the equivalent 64-bit integer value. More...
 
static ASPOSECPP_SHARED_API 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-bit integer value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static int64_t ToInt64 (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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-bit integer value using the provided formatting information and number style. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static constexpr uint64_t ToUInt64 (bool value)
 Converts the specified boolean value to an equivalent 64-bit unsigned integer. More...
 
static constexpr uint64_t ToUInt64 (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent 64-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent 64-bit unsigned integer. More...
 
static constexpr uint64_t ToUInt64 (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent 64-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent 64-bit unsigned integer. More...
 
static constexpr uint64_t ToUInt64 (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent 64-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent 64-bit unsigned integer. More...
 
static constexpr uint64_t ToUInt64 (uint64_t value)
 Returns the specified 64-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent 64-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (float value)
 Converts the specified float number to an equivalent 64-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (double value)
 Converts the specified double number to an equivalent 64-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const Decimal &value)
 Converts the specified decimal number to an equivalent 64-bit unsigned integer. More...
 
static constexpr uint64_t ToUInt64 (char_t value)
 Converts the specified unicode character to an equivalent 64-bit unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr uint64_t ToUInt64 (std::nullptr_t)
 Converts the specified null-string to the equivalent unsigned 64-bit integer value. More...
 
static uint64_t ToUInt64 (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent unsigned 64-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent unsigned 64-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const String &value, int from_base)
 Converts the specified string containing the string representation of a number in the specified base to the equivalent unsigned 64-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent unsigned 64-bit integer value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static uint64_t ToUInt64 (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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 unsigned 64-bit integer value using the provided formatting information and number style. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static constexpr float ToSingle (bool value)
 Converts the specified boolean value to an equivalent single-precision floating-point number. More...
 
static constexpr float ToSingle (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent single-precision floating-point number. More...
 
static constexpr float ToSingle (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent single-precision floating-point number. More...
 
static constexpr float ToSingle (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent single-precision floating-point number. More...
 
static constexpr float ToSingle (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent single-precision floating-point number. More...
 
static constexpr float ToSingle (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent single-precision floating-point number. More...
 
static constexpr float ToSingle (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent single-precision floating-point number. More...
 
static constexpr float ToSingle (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent single-precision floating-point number. More...
 
static constexpr float ToSingle (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent single-precision floating-point number. More...
 
static constexpr float ToSingle (float value)
 Returns the specified float number. More...
 
static constexpr float ToSingle (double value)
 Converts the specified double-precision number to an equivalent single-precision floating-point number. More...
 
static float ToSingle (const Decimal &value)
 Converts the specified decimal number to an equivalent single-precision floating-point number. More...
 
static ASPOSECPP_SHARED_API float ToSingle (char_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API float ToSingle (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr float ToSingle (std::nullptr_t)
 Converts the specified null-string to the equivalent single-precision floating-point value. More...
 
static float ToSingle (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent single-precision floating-point value. More...
 
static ASPOSECPP_SHARED_API float ToSingle (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value. More...
 
static ASPOSECPP_SHARED_API float ToSingle (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API float ToSingle (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API float ToSingle (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static float ToSingle (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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 single-precision floating-point value using the provided formatting information and number style. More...
 
static ASPOSECPP_SHARED_API float ToSingle (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API float ToSingle (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API float ToSingle (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static constexpr double ToDouble (bool value)
 Converts the specified boolean value to an equivalent double-precision floating-point number. More...
 
static constexpr double ToDouble (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent double-precision floating-point number. More...
 
static constexpr double ToDouble (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent double-precision floating-point number. More...
 
static constexpr double ToDouble (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent double-precision floating-point number. More...
 
static constexpr double ToDouble (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent double-precision floating-point number. More...
 
static constexpr double ToDouble (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent double-precision floating-point number. More...
 
static constexpr double ToDouble (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent double-precision floating-point number. More...
 
static constexpr double ToDouble (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent double-precision floating-point number. More...
 
static constexpr double ToDouble (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent double-precision floating-point number. More...
 
static constexpr double ToDouble (float value)
 Converts the specified single-precision number to an equivalent double-precision floating-point number. More...
 
static constexpr double ToDouble (double value)
 Returns the specified double number. More...
 
static double ToDouble (const Decimal &value)
 Converts the specified decimal number to an equivalent double-precision floating-point number. More...
 
static ASPOSECPP_SHARED_API double ToDouble (char_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API double ToDouble (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr double ToDouble (std::nullptr_t)
 Converts the specified null-string to the equivalent double-precision floating-point value. More...
 
static double ToDouble (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent double-precision floating-point value. More...
 
static ASPOSECPP_SHARED_API double ToDouble (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent double-precision floating-point value. More...
 
static ASPOSECPP_SHARED_API double ToDouble (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent double-precision floating-point value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API double ToDouble (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API double ToDouble (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static double ToDouble (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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 double-precision floating-point value using the provided formatting information and number style. More...
 
static ASPOSECPP_SHARED_API double ToDouble (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API double ToDouble (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API double ToDouble (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static Decimal ToDecimal (bool value)
 Converts the specified boolean value to an equivalent decimal number. More...
 
static Decimal ToDecimal (uint8_t value)
 Converts the specified 8-bit unsigned integer to an equivalent decimal number. More...
 
static Decimal ToDecimal (int8_t value)
 Converts the specified 8-bit signed integer to an equivalent decimal number. More...
 
static Decimal ToDecimal (uint16_t value)
 Converts the specified 16-bit unsigned integer to an equivalent decimal number. More...
 
static Decimal ToDecimal (int16_t value)
 Converts the specified 16-bit signed integer to an equivalent decimal number. More...
 
static Decimal ToDecimal (uint32_t value)
 Converts the specified 32-bit unsigned integer to an equivalent decimal number. More...
 
static Decimal ToDecimal (int32_t value)
 Converts the specified 32-bit signed integer to an equivalent decimal number. More...
 
static Decimal ToDecimal (uint64_t value)
 Converts the specified 64-bit unsigned integer to an equivalent decimal number. More...
 
static Decimal ToDecimal (int64_t value)
 Converts the specified 64-bit signed integer to an equivalent decimal number. More...
 
static Decimal ToDecimal (float value)
 Converts the specified float number to an equivalent decimal number. More...
 
static Decimal ToDecimal (double value)
 Converts the specified double number to an equivalent decimal number. More...
 
static Decimal ToDecimal (const Decimal &value)
 Returns the specified decimal number. More...
 
static ASPOSECPP_SHARED_API Decimal ToDecimal (char_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API Decimal ToDecimal (DateTime value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static Decimal ToDecimal (std::nullptr_t)
 Converts the specified null-string to the equivalent Decimal value. More...
 
static Decimal ToDecimal (const char_t *value)
 Converts the specified c-string containing the string representation of a number to the equivalent Decimal value. More...
 
static ASPOSECPP_SHARED_API Decimal ToDecimal (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent Decimal value. More...
 
static ASPOSECPP_SHARED_API Decimal ToDecimal (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent Decimal value using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API 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 Decimal value using the specified number styles and formatting information. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (bool value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (uint8_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (int8_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (uint16_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (int16_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (uint32_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (int32_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (uint64_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (int64_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (float value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (double value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (const Decimal &value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (char_t value)
 Conversion is not supported. Always throws InvalidCastException. More...
 
static constexpr DateTime ToDateTime (DateTime value)
 Returns the specified date and time. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (const String &value)
 Converts the specified string to an instance of DateTime class. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (const String &value, const SharedPtr< IFormatProvider > &fp)
 Converts the specified string to an instance of DateTime class using the provided formatting information. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (const String &value, const SharedPtr< Globalization::DateTimeFormatInfo > &dtfi)
 
static DateTime ToDateTime (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (int8_t value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (uint8_t value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (int16_t value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (uint16_t value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (int32_t value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (uint32_t value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (int64_t value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (uint64_t value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (float value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (double value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (const Decimal &value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (DateTime value)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (int8_t value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (int8_t value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (int8_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (int8_t value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (uint8_t value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (uint8_t value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (uint8_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (uint8_t value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (int16_t value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (int16_t value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (int16_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (int16_t value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (uint16_t value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (uint16_t value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (uint16_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (uint16_t value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (int32_t value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (int32_t value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (int32_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (int32_t value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (uint32_t value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (uint32_t value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (uint32_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (uint32_t value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (int64_t value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (int64_t value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (int64_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (int64_t value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (uint64_t value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (uint64_t value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (uint64_t value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (uint64_t value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (float value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (float value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (float value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (float value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (double value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (double value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (double value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (double value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (const Decimal &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (const Decimal &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (const Decimal &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static String ToString (const Decimal &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API String ToString (DateTime value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified value to string using the culture-specific format information. More...
 
static ASPOSECPP_SHARED_API String ToString (DateTime value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (DateTime value, const SharedPtr< Globalization::DateTimeFormatInfo > &dtfi)
 
static String ToString (DateTime value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (int8_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (int8_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (int8_t value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (uint8_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (uint8_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (uint8_t value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (int16_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (int16_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (int16_t value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (uint16_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (uint16_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (uint16_t value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (int32_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (int32_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (int32_t value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (uint32_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (uint32_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (uint32_t value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (int64_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (int64_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (int64_t value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (uint64_t value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (uint64_t value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (uint64_t value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (float value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (float value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (float value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (double value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (double value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (double value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (const Decimal &value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (const Decimal &value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (const Decimal &value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 culture-specific format information provided by the specified IFormatProvider object. More...
 
static ASPOSECPP_SHARED_API String ToString (DateTime value, const String &format, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API String ToString (DateTime value, const String &format, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API String ToString (DateTime value, const String &format, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API String ToString (const Guid &value)
 Converts the specified value to string. More...
 
static ASPOSECPP_SHARED_API String ToString (const Guid &value, const String &format)
 Converts the specified value to string using the specified string format. More...
 
template<size_t N>
static String ToString (const char_t(&value)[N], std::nullptr_t=nullptr)
 Converts the specified array of unicode characters to string. More...
 
template<size_t N>
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 format information provided by the specified IFormatProvider object. More...
 
template<size_t N>
static String ToString (const char_t(&value)[N], const SharedPtr< Globalization::CultureInfo > &)
 
static String ToString (const String &value, std::nullptr_t=nullptr)
 Returns the specified value; no conversion is performed. More...
 
static String ToString (const String &value, const SharedPtr< IFormatProvider > &)
 Returns the specified value; no conversion is performed. More...
 
static String ToString (const String &value, const SharedPtr< Globalization::CultureInfo > &)
 Returns the specified value; no conversion is performed. More...
 
static String ToString (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &)
 Returns the specified value; no conversion is performed. More...
 
static String ToString (char_t value, std::nullptr_t=nullptr)
 Returns the specified value; no conversion is performed. More...
 
static String ToString (char_t value, const SharedPtr< IFormatProvider > &)
 Returns the specified value; no conversion is performed. More...
 
static String ToString (char_t value, const SharedPtr< Globalization::CultureInfo > &)
 Returns the specified value; no conversion is performed. More...
 
static String ToString (char_t value, const String &, const SharedPtr< IFormatProvider > &)
 Returns the specified value; no conversion is performed. More...
 
static String ToString (char_t value, const String &, const SharedPtr< Globalization::CultureInfo > &)
 Returns the specified value; no conversion is performed. More...
 
static String ToString (char_t value, const String &, std::nullptr_t)
 Returns the specified value; no conversion is performed. More...
 
static String ToString (bool value, std::nullptr_t=nullptr)
 Converts the specified value to its string representation. More...
 
static String ToString (bool value, const SharedPtr< IFormatProvider > &)
 Converts the specified value to its string representation. More...
 
static String ToString (bool value, const SharedPtr< Globalization::CultureInfo > &)
 Converts the specified value to its string representation. More...
 
static String ToString (bool value, const SharedPtr< Globalization::NumberFormatInfo > &)
 Converts the specified value to its string representation. More...
 
static String ToString (bool value, const String &, const SharedPtr< IFormatProvider > &)
 Converts the specified value to its string representation. More...
 
static String ToString (bool value, const String &, const SharedPtr< Globalization::CultureInfo > &)
 Converts the specified value to its string representation. More...
 
static String ToString (bool value, const String &, std::nullptr_t)
 Converts the specified value to its string representation. More...
 
static ASPOSECPP_SHARED_API String ToString (int8_t value, int to_base)
 Converts the specified integer value to its string representation in the specified base. More...
 
static ASPOSECPP_SHARED_API String ToString (int16_t value, int to_base)
 Converts the specified integer value to its string representation in the specified base. More...
 
static ASPOSECPP_SHARED_API String ToString (int32_t value, int to_base)
 Converts the specified integer value to its string representation in the specified base. More...
 
static ASPOSECPP_SHARED_API String ToString (int64_t value, int to_base)
 Converts the specified integer value to its string representation in the specified base. More...
 
static String ToString (uint8_t value, int to_base)
 
static String ToString (uint16_t value, int to_base)
 
static String ToString (uint32_t value, int to_base)
 
template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static uint8_t ToByte (Enum value)
 
template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static int8_t ToSByte (Enum value)
 
template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static uint16_t ToUInt16 (Enum value)
 
template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static int16_t ToInt16 (Enum value)
 
template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static uint32_t ToUInt32 (Enum value)
 
template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static int32_t ToInt32 (Enum value)
 
template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static uint64_t ToUInt64 (Enum value)
 
template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static int64_t ToInt64 (Enum value)
 
static ASPOSECPP_SHARED_API bool ToBoolean (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent boolean value. More...
 
static ASPOSECPP_SHARED_API uint8_t ToByte (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent unsigned 8-bit integer value. More...
 
static ASPOSECPP_SHARED_API int8_t ToSByte (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent 8-bit integer value. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent unicode character. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent unsigned 16-bit integer value. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent 16-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent unsigned 32-bit integer value. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent 32-bit integer value. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent unsigned 64-bit integer value. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent 64-bit integer value. More...
 
static ASPOSECPP_SHARED_API float ToSingle (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to single-precision floating-point value. More...
 
static ASPOSECPP_SHARED_API 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 value is String, the specified string format is used during conversion. More...
 
static ASPOSECPP_SHARED_API Decimal ToDecimal (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent Decimal value. More...
 
static ASPOSECPP_SHARED_API DateTime ToDateTime (const SharedPtr< Object > &obj, const SharedPtr< IFormatProvider > &provider=nullptr)
 Converts the specified boxed value to equivalent DateTime value. More...
 
static ASPOSECPP_SHARED_API 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, the specified string format is used during conversion. More...
 
static ASPOSECPP_SHARED_API TypeCode GetTypeCode (const SharedPtr< Object > &obj)
 Returns a TypeCode value representing the type of the specified boxed value. More...
 
template<typename Source , typename Target >
static Target To (const Source &value)
 

Detailed Description

The structure that contains methods performing conversion of values of one type to the values of another type. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.

Member Function Documentation

◆ ChangeType()

static ASPOSECPP_SHARED_API SharedPtr<Object> System::Convert::ChangeType ( const SharedPtr< Object > &  value,
const TypeInfo conversion_type 
)
static

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ FromBase64CharArray()

static ASPOSECPP_SHARED_API ArrayPtr<uint8_t> System::Convert::FromBase64CharArray ( const ArrayPtr< char_t > &  in_array,
int  offset,
int  length 
)
static

Decodes base-64 encoded data represented as a range in the array of Unicode characters.

Parameters
in_arrayThe array containing the data to decode
offsetThe position in the input array at which the range to decode begins
lengthThe length of the range to decode
Returns
A byte-array containing the decoded data

◆ FromBase64String()

static ASPOSECPP_SHARED_API ArrayPtr<uint8_t> System::Convert::FromBase64String ( const String s)
static

Decodes base-64 encoded data represented as a string.

Parameters
sThe string containing the base-64 encoded data to decode
Returns
A byte-array containing the decoded data

◆ GetTypeCode()

static ASPOSECPP_SHARED_API TypeCode System::Convert::GetTypeCode ( const SharedPtr< Object > &  obj)
static

Returns a TypeCode value representing the type of the specified boxed value.

Parameters
objThe shared pointer to the object boxing the value the type of which is to be returned
Returns
The value representing the type of the boxed value

◆ IsDBNull() [1/2]

template<typename T >
static std::enable_if_t<!IsSmartPtr<T>::value, bool> System::Convert::IsDBNull ( const T &  )
inlinestatic

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsDBNull() [2/2]

template<typename T >
static bool System::Convert::IsDBNull ( const SharedPtr< T > &  value)
inlinestatic

NOT IMPLEMENTED Fake implementation, checks if value is nullptr.

◆ To()

template<typename Source , typename Target >
static Target System::Convert::To ( const Source &  value)
static

◆ ToBase64CharArray() [1/2]

static ASPOSECPP_SHARED_API int System::Convert::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 
)
static

Base-64 encodes a range of elements in the specified byte array and stores the encoded data as an array of Unicode characters.

Parameters
in_arrayThe array of bytes containing the range of elements to encode
offset_inAn index of an element in the input array at which the range to encode begins
lengthThe length of the range of elements to encode
out_arrayA constant reference to the output array to which the resulting data is to be put
offset_outAn index in the output array at which to start putting the resulting data
insert_line_breaksSpecifies whether the line break characters are to be inserted in the output array after every 76 base-64 characters
Returns
The number of characters written to the output array

◆ ToBase64CharArray() [2/2]

static ASPOSECPP_SHARED_API int System::Convert::ToBase64CharArray ( const ArrayPtr< uint8_t > &  in_array,
int  offset_in,
int  length,
const ArrayPtr< char_t > &  out_array,
int  offset_out,
Base64FormattingOptions  options 
)
static

Base-64 encodes a range of elements in the specified byte array and stores the encoded data as an array of Unicode characters.

Parameters
in_arrayThe array of bytes containing the range of elements to encode
offset_inAn index of an element in the input array at which the range to encode begins
lengthThe length of the range of elements to encode
out_arrayA constant reference to the output array to which the resulting data is to be put
offset_outAn index in the output array at which to start putting the resulting data
optionsSpecifies formatting options of base-64 encoded data
Returns
The number of characters written to the output array

◆ ToBase64String() [1/4]

static ASPOSECPP_SHARED_API String System::Convert::ToBase64String ( const ArrayPtr< uint8_t > &  in_array,
bool  insert_line_breaks = false 
)
static

Base-64 encodes elements in the specified byte array and returns the encoded data as a string.

Parameters
in_arrayThe array of bytes to encode
insert_line_breaksSpecifies whether line break characters are to be inserted in the output string after every 76 base-64 characters
Returns
The string containing the base-64 encoded representation of the input array

◆ ToBase64String() [2/4]

static ASPOSECPP_SHARED_API String System::Convert::ToBase64String ( const ArrayPtr< uint8_t > &  in_array,
int  offset_in,
int  length,
bool  insert_line_breaks = false 
)
static

Base-64 encodes a range of elements in the specified byte array and returns the encoded data as a string.

Parameters
in_arrayThe array of bytes containing the range of elements to encode
offset_inAn index of an element in the input array at which the range to encode begins
lengthThe length of the range of elements to encode
insert_line_breaksSpecifies whether line break characters are to be inserted in the output string after every 76 base-64 characters
Returns
The string containing the base-64 encoded representation of the range of elements of the input array

◆ ToBase64String() [3/4]

static ASPOSECPP_SHARED_API String System::Convert::ToBase64String ( const ArrayPtr< uint8_t > &  in_array,
Base64FormattingOptions  options 
)
static

Base-64 encodes elements in the specified byte array and returns the encoded data as a string.

Parameters
in_arrayThe array of bytes to encode
optionsSpecifies formatting options of base-64 encoded data
Returns
The string containing the base-64 encoded representation of the input array

◆ ToBase64String() [4/4]

static ASPOSECPP_SHARED_API String System::Convert::ToBase64String ( const ArrayPtr< uint8_t > &  in_array,
int  offset_in,
int  length,
Base64FormattingOptions  options 
)
static

Base-64 encodes a range of elements in the specified byte array and returns the encoded data as a string.

Parameters
in_arrayThe array of bytes containing the range of elements to encode
offset_inAn index of an element in the input array at which the range to encode begins
lengthThe length of the range of elements to encode
optionsSpecifies formatting options of base-64 encoded data
Returns
The string containing the base-64 encoded representation of the range of elements of the input array

◆ ToBoolean() [1/19]

static constexpr bool System::Convert::ToBoolean ( bool  value)
inlinestatic

Returns the specified boolean value.

◆ ToBoolean() [2/19]

static constexpr bool System::Convert::ToBoolean ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent boolean value.

◆ ToBoolean() [3/19]

static constexpr bool System::Convert::ToBoolean ( int8_t  value)
inlinestatic

Converts the specified 8-bit signed integer to an equivalent boolean value.

◆ ToBoolean() [4/19]

static constexpr bool System::Convert::ToBoolean ( uint16_t  value)
inlinestatic

Converts the specified 16-bit unsigned integer to an equivalent boolean value.

◆ ToBoolean() [5/19]

static constexpr bool System::Convert::ToBoolean ( int16_t  value)
inlinestatic

Converts the specified 16-bit signed integer to an equivalent boolean value.

◆ ToBoolean() [6/19]

static constexpr bool System::Convert::ToBoolean ( uint32_t  value)
inlinestatic

Converts the specified 32-bit unsigned integer to an equivalent boolean value.

◆ ToBoolean() [7/19]

static constexpr bool System::Convert::ToBoolean ( int32_t  value)
inlinestatic

Converts the specified 32-bit signed integer to an equivalent boolean value.

◆ ToBoolean() [8/19]

static constexpr bool System::Convert::ToBoolean ( uint64_t  value)
inlinestatic

Converts the specified 64-bit unsigned integer to an equivalent boolean value.

◆ ToBoolean() [9/19]

static constexpr bool System::Convert::ToBoolean ( int64_t  value)
inlinestatic

Converts the specified 64-bit signed integer to an equivalent boolean value.

◆ ToBoolean() [10/19]

static constexpr bool System::Convert::ToBoolean ( float  value)
inlinestatic

Converts the specified float number to an equivalent boolean value.

◆ ToBoolean() [11/19]

static constexpr bool System::Convert::ToBoolean ( double  value)
inlinestatic

Converts the specified double number to an equivalent boolean value.

◆ ToBoolean() [12/19]

static bool System::Convert::ToBoolean ( const Decimal value)
inlinestatic

Converts the specified decimal number to an equivalent boolean value.

◆ ToBoolean() [13/19]

static ASPOSECPP_SHARED_API bool System::Convert::ToBoolean ( char_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToBoolean() [14/19]

static ASPOSECPP_SHARED_API bool System::Convert::ToBoolean ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToBoolean() [15/19]

static constexpr bool System::Convert::ToBoolean ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent boolean value.

Returns
False.

◆ ToBoolean() [16/19]

static bool System::Convert::ToBoolean ( const char_t *  value)
inlinestatic

Converts the specified c-string to the value of bool type.

Parameters
valueThe c-string to convert
Returns
True if the specified c-string is equal to "True" and false if the specified c-string is equal to "False".
Exceptions
FormatExceptionIf the specified c-string is not equal to "True" or "False".

◆ ToBoolean() [17/19]

static ASPOSECPP_SHARED_API bool System::Convert::ToBoolean ( const String value)
static

Converts the specified string to the value of bool type.

Parameters
valueThe string to convert
Returns
True if the specified c-string is equal to "True" and false if the specified string is equal to "False".
Exceptions
FormatExceptionIf the specified string is not equal to "True" or "False".

◆ ToBoolean() [18/19]

static bool System::Convert::ToBoolean ( const String value,
const SharedPtr< IFormatProvider > &   
)
inlinestatic

Converts the specified string to the value of bool type.

Parameters
valueThe string to convert
Returns
True if the specified c-string is equal to "True" and false if the specified string is equal to "False".
Exceptions
FormatExceptionIf the specified string is not equal to "True" or "False".

◆ ToBoolean() [19/19]

static ASPOSECPP_SHARED_API bool System::Convert::ToBoolean ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent boolean value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
An boolean value equivalent to the specified boxed value

◆ ToByte() [1/28]

static constexpr uint8_t System::Convert::ToByte ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent 8-bit unsigned integer.

◆ ToByte() [2/28]

static constexpr uint8_t System::Convert::ToByte ( uint8_t  value)
inlinestatic

Returns the specified 8-bit unsigned integer.

◆ ToByte() [3/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( int8_t  value)
static

Converts the specified 8-bit signed integer to an equivalent 8-bit unsigned integer.

◆ ToByte() [4/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( uint16_t  value)
static

Converts the specified 16-bit unsigned integer to an equivalent 8-bit unsigned integer.

◆ ToByte() [5/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( int16_t  value)
static

Converts the specified 16-bit signed integer to an equivalent 8-bit unsigned integer.

◆ ToByte() [6/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( uint32_t  value)
static

Converts the specified 32-bit unsigned integer to an equivalent 8-bit unsigned integer.

◆ ToByte() [7/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( int32_t  value)
static

Converts the specified 32-bit signed integer to an equivalent 8-bit unsigned integer.

◆ ToByte() [8/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( uint64_t  value)
static

Converts the specified 64-bit unsigned integer to an equivalent 8-bit unsigned integer.

◆ ToByte() [9/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( int64_t  value)
static

Converts the specified 64-bit signed integer to an equivalent 8-bit unsigned integer.

◆ ToByte() [10/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( float  value)
static

Converts the specified float number to an equivalent 8-bit unsigned integer.

◆ ToByte() [11/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( double  value)
static

Converts the specified double number to an equivalent 8-bit unsigned integer.

◆ ToByte() [12/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const Decimal value)
static

Converts the specified decimal number to an equivalent 8-bit unsigned integer.

◆ ToByte() [13/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( char_t  value)
static

Converts the specified unicode character to an equivalent 8-bit unsigned integer.

◆ ToByte() [14/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToByte() [15/28]

static constexpr uint8_t System::Convert::ToByte ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent unsigned 8-bit integer value.

Returns
Zero.

◆ ToByte() [16/28]

static uint8_t System::Convert::ToByte ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent unsigned 8-bit integer value.

Parameters
valueThe c-string to convert
Returns
The unsigned 8-bit integer value equal to the number represented by the specified c-string
Exceptions
FormatExceptionIf the specified c-string does not represent a number
OverflowExceptionIf the number represented by the specified c-string is greater than UINT8_MAX or is a negative number

◆ ToByte() [17/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 8-bit integer value.

Parameters
valueThe string to convert
Returns
The unsigned 8-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT8_MAX or is a negative number

◆ ToByte() [18/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const String value,
int  from_base 
)
static

Converts the specified string containing the string representation of a number in the specified base to the equivalent unsigned 8-bit integer value.

Parameters
valueThe string to convert
from_baseThe base of the number represented by the string
Returns
The unsigned 8-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT8_MAX or is a negative number

◆ ToByte() [19/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 8-bit integer value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The unsigned 8-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT8_MAX or is a negative number

◆ ToByte() [20/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToByte() [21/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToByte() [22/28]

static uint8_t System::Convert::ToByte ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToByte() [23/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 8-bit integer value using the provided formatting information and number style.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The unsigned 8-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT8_MAX or is a negative number

◆ ToByte() [24/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToByte() [25/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToByte() [26/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ ToByte() [27/28]

template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static uint8_t System::Convert::ToByte ( Enum  value)
inlinestatic

◆ ToByte() [28/28]

static ASPOSECPP_SHARED_API uint8_t System::Convert::ToByte ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent unsigned 8-bit integer value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
An unsigned 8-bit integer value equivalent to the specified boxed value

◆ ToChar() [1/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( bool  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToChar() [2/18]

static constexpr char_t System::Convert::ToChar ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent unicode character.

◆ ToChar() [3/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( int8_t  value)
static

Converts the specified 8-bit signed integer to an equivalent unicode character.

◆ ToChar() [4/18]

static constexpr char_t System::Convert::ToChar ( uint16_t  value)
inlinestatic

Converts the specified 16-bit unsigned integer to an equivalent unicode character.

◆ ToChar() [5/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( int16_t  value)
static

Converts the specified 16-bit signed integer to an equivalent unicode character.

◆ ToChar() [6/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( uint32_t  value)
static

Converts the specified 32-bit unsigned integer to an equivalent unicode character.

◆ ToChar() [7/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( int32_t  value)
static

Converts the specified 32-bit signed integer to an equivalent unicode character.

◆ ToChar() [8/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( uint64_t  value)
static

Converts the specified 64-bit unsigned integer to an equivalent unicode character.

◆ ToChar() [9/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( int64_t  value)
static

Converts the specified 64-bit signed integer to an equivalent unicode character.

◆ ToChar() [10/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( float  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToChar() [11/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( double  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToChar() [12/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( const Decimal value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToChar() [13/18]

static constexpr char_t System::Convert::ToChar ( char_t  value)
inlinestatic

Returns the specified unicode character.

◆ ToChar() [14/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToChar() [15/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( const char_t *  value)
static

Converts the first and the only character of the specified c-string to a char_t value.

Parameters
valueThe c-string to convert; it is expected that the c-string be exactly 1 character long.
Returns
The first and the only character of the specified c-string if it is exactly 1 characetr long, otherwise - 0

◆ ToChar() [16/18]

static char_t System::Convert::ToChar ( const String value)
inlinestatic

Converts the first and the only character of the specified string to a char_t value.

Parameters
valueThe string to convert; it is expected that the string be exactly 1 character long
Returns
The first and the only character of the specified string if it is exactly 1 characetr long, otherwise - 0

◆ ToChar() [17/18]

static char_t System::Convert::ToChar ( const String value,
const SharedPtr< IFormatProvider > &   
)
inlinestatic

Converts the first and the only character of the specified string to a char_t value.

Parameters
valueThe string to convert; it is expected that the string be exactly 1 character long
Returns
The first and the only character of the specified string if it is exactly 1 characetr long, otherwise - 0

◆ ToChar() [18/18]

static ASPOSECPP_SHARED_API char_t System::Convert::ToChar ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent unicode character.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
An unicode character equivalent to the specified boxed value

◆ ToDateTime() [1/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( bool  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [2/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( uint8_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [3/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( int8_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [4/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( uint16_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [5/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( int16_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [6/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( uint32_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [7/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( int32_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [8/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( uint64_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [9/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( int64_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [10/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( float  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [11/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( double  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [12/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( const Decimal value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [13/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( char_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDateTime() [14/20]

static constexpr DateTime System::Convert::ToDateTime ( DateTime  value)
inlinestatic

Returns the specified date and time.

◆ ToDateTime() [15/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( const String value)
static

Converts the specified string to an instance of DateTime class.

Parameters
valueThe string to convert
Returns
An instance of DateTime class representing the date and time information represented by the specified string

◆ ToDateTime() [16/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( const String value,
const SharedPtr< IFormatProvider > &  fp 
)
static

Converts the specified string to an instance of DateTime class using the provided formatting information.

Parameters
valueThe string to convert
fpA pointer to an object that contains the string format information
Returns
An instance of DateTime class representing the date and time information represented by the specified string

◆ ToDateTime() [17/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToDateTime() [18/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( const String value,
const SharedPtr< Globalization::DateTimeFormatInfo > &  dtfi 
)
static

◆ ToDateTime() [19/20]

static DateTime System::Convert::ToDateTime ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToDateTime() [20/20]

static ASPOSECPP_SHARED_API DateTime System::Convert::ToDateTime ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent DateTime value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
A DateTime value equivalent to the specified boxed value

◆ ToDecimal() [1/20]

static Decimal System::Convert::ToDecimal ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent decimal number.

◆ ToDecimal() [2/20]

static Decimal System::Convert::ToDecimal ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent decimal number.

◆ ToDecimal() [3/20]

static Decimal System::Convert::ToDecimal ( int8_t  value)
inlinestatic

Converts the specified 8-bit signed integer to an equivalent decimal number.

◆ ToDecimal() [4/20]

static Decimal System::Convert::ToDecimal ( uint16_t  value)
inlinestatic

Converts the specified 16-bit unsigned integer to an equivalent decimal number.

◆ ToDecimal() [5/20]

static Decimal System::Convert::ToDecimal ( int16_t  value)
inlinestatic

Converts the specified 16-bit signed integer to an equivalent decimal number.

◆ ToDecimal() [6/20]

static Decimal System::Convert::ToDecimal ( uint32_t  value)
inlinestatic

Converts the specified 32-bit unsigned integer to an equivalent decimal number.

◆ ToDecimal() [7/20]

static Decimal System::Convert::ToDecimal ( int32_t  value)
inlinestatic

Converts the specified 32-bit signed integer to an equivalent decimal number.

◆ ToDecimal() [8/20]

static Decimal System::Convert::ToDecimal ( uint64_t  value)
inlinestatic

Converts the specified 64-bit unsigned integer to an equivalent decimal number.

◆ ToDecimal() [9/20]

static Decimal System::Convert::ToDecimal ( int64_t  value)
inlinestatic

Converts the specified 64-bit signed integer to an equivalent decimal number.

◆ ToDecimal() [10/20]

static Decimal System::Convert::ToDecimal ( float  value)
inlinestatic

Converts the specified float number to an equivalent decimal number.

◆ ToDecimal() [11/20]

static Decimal System::Convert::ToDecimal ( double  value)
inlinestatic

Converts the specified double number to an equivalent decimal number.

◆ ToDecimal() [12/20]

static Decimal System::Convert::ToDecimal ( const Decimal value)
inlinestatic

Returns the specified decimal number.

◆ ToDecimal() [13/20]

static ASPOSECPP_SHARED_API Decimal System::Convert::ToDecimal ( char_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDecimal() [14/20]

static ASPOSECPP_SHARED_API Decimal System::Convert::ToDecimal ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDecimal() [15/20]

static Decimal System::Convert::ToDecimal ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent Decimal value.

Returns
Zero.

◆ ToDecimal() [16/20]

static Decimal System::Convert::ToDecimal ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent Decimal value.

Parameters
valueThe c-string to convert
Returns
The Decimal value equal to the number represented by the specified c-string

◆ ToDecimal() [17/20]

static ASPOSECPP_SHARED_API Decimal System::Convert::ToDecimal ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent Decimal value.

Parameters
valueThe string to convert
Returns
The Decimal value equal to the number represented by the specified string

◆ ToDecimal() [18/20]

static ASPOSECPP_SHARED_API Decimal System::Convert::ToDecimal ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent Decimal value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The Decimal value equal to the number represented by the specified string

◆ ToDecimal() [19/20]

static ASPOSECPP_SHARED_API Decimal System::Convert::ToDecimal ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent Decimal value using the specified number styles and formatting information.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The Decimal value equal to the number represented by the specified string

◆ ToDecimal() [20/20]

static ASPOSECPP_SHARED_API Decimal System::Convert::ToDecimal ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent Decimal value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
A Decimal value equivalent to the specified boxed value

◆ ToDouble() [1/26]

static constexpr double System::Convert::ToDouble ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent double-precision floating-point number.

◆ ToDouble() [2/26]

static constexpr double System::Convert::ToDouble ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent double-precision floating-point number.

◆ ToDouble() [3/26]

static constexpr double System::Convert::ToDouble ( int8_t  value)
inlinestatic

Converts the specified 8-bit signed integer to an equivalent double-precision floating-point number.

◆ ToDouble() [4/26]

static constexpr double System::Convert::ToDouble ( uint16_t  value)
inlinestatic

Converts the specified 16-bit unsigned integer to an equivalent double-precision floating-point number.

◆ ToDouble() [5/26]

static constexpr double System::Convert::ToDouble ( int16_t  value)
inlinestatic

Converts the specified 16-bit signed integer to an equivalent double-precision floating-point number.

◆ ToDouble() [6/26]

static constexpr double System::Convert::ToDouble ( uint32_t  value)
inlinestatic

Converts the specified 32-bit unsigned integer to an equivalent double-precision floating-point number.

◆ ToDouble() [7/26]

static constexpr double System::Convert::ToDouble ( int32_t  value)
inlinestatic

Converts the specified 32-bit signed integer to an equivalent double-precision floating-point number.

◆ ToDouble() [8/26]

static constexpr double System::Convert::ToDouble ( uint64_t  value)
inlinestatic

Converts the specified 64-bit unsigned integer to an equivalent double-precision floating-point number.

◆ ToDouble() [9/26]

static constexpr double System::Convert::ToDouble ( int64_t  value)
inlinestatic

Converts the specified 64-bit signed integer to an equivalent double-precision floating-point number.

◆ ToDouble() [10/26]

static constexpr double System::Convert::ToDouble ( float  value)
inlinestatic

Converts the specified single-precision number to an equivalent double-precision floating-point number.

◆ ToDouble() [11/26]

static constexpr double System::Convert::ToDouble ( double  value)
inlinestatic

Returns the specified double number.

◆ ToDouble() [12/26]

static double System::Convert::ToDouble ( const Decimal value)
inlinestatic

Converts the specified decimal number to an equivalent double-precision floating-point number.

◆ ToDouble() [13/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( char_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDouble() [14/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToDouble() [15/26]

static constexpr double System::Convert::ToDouble ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent double-precision floating-point value.

Returns
Zero.

◆ ToDouble() [16/26]

static double System::Convert::ToDouble ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent double-precision floating-point value.

Parameters
valueThe c-string to convert
Returns
The double-precision floating-point value equal to the number represented by the specified c-string

◆ ToDouble() [17/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent double-precision floating-point value.

Parameters
valueThe string to convert
Returns
The double-precision floating-point value equal to the number represented by the specified string

◆ ToDouble() [18/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent double-precision floating-point value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The double-precision floating-point value equal to the number represented by the specified string

◆ ToDouble() [19/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToDouble() [20/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToDouble() [21/26]

static double System::Convert::ToDouble ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToDouble() [22/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent double-precision floating-point value using the provided formatting information and number style.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The double-precision floating-point value equal to the number represented by the specified string

◆ ToDouble() [23/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToDouble() [24/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToDouble() [25/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ ToDouble() [26/26]

static ASPOSECPP_SHARED_API double System::Convert::ToDouble ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to double-precision floating-point value. If the type of boxed value is String, the specified string format is used during conversion.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
A double-precision floating-point value equivalent to the specified boxed value

◆ ToInt16() [1/28]

static constexpr int16_t System::Convert::ToInt16 ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent 16-bit signed integer.

◆ ToInt16() [2/28]

static constexpr int16_t System::Convert::ToInt16 ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent 16-bit signed integer.

◆ ToInt16() [3/28]

static constexpr int16_t System::Convert::ToInt16 ( int8_t  value)
inlinestatic

Converts the specified 8-bit signed integer to an equivalent 16-bit signed integer.

◆ ToInt16() [4/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( uint16_t  value)
static

Converts the specified 16-bit unsigned integer to an equivalent 16-bit signed integer.

◆ ToInt16() [5/28]

static constexpr int16_t System::Convert::ToInt16 ( int16_t  value)
inlinestatic

Returns the specified 16-bit signed integer.

◆ ToInt16() [6/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( uint32_t  value)
static

Converts the specified 32-bit unsigned integer to an equivalent 16-bit signed integer.

◆ ToInt16() [7/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( int32_t  value)
static

Converts the specified 32-bit signed integer to an equivalent 16-bit signed integer.

◆ ToInt16() [8/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( uint64_t  value)
static

Converts the specified 64-bit unsigned integer to an equivalent 16-bit signed integer.

◆ ToInt16() [9/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( int64_t  value)
static

Converts the specified 64-bit signed integer to an equivalent 16-bit signed integer.

◆ ToInt16() [10/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( float  value)
static

Converts the specified float number to an equivalent 16-bit signed integer.

◆ ToInt16() [11/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( double  value)
static

Converts the specified double number to an equivalent 16-bit signed integer.

◆ ToInt16() [12/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const Decimal value)
static

Converts the specified decimal number to an equivalent 16-bit signed integer.

◆ ToInt16() [13/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( char_t  value)
static

Converts the specified unicode character to an equivalent 16-bit signed integer.

◆ ToInt16() [14/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToInt16() [15/28]

static constexpr int16_t System::Convert::ToInt16 ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent 16-bit integer value.

Returns
Zero.

◆ ToInt16() [16/28]

static int16_t System::Convert::ToInt16 ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent 16-bit integer value.

Parameters
valueThe c-string to convert
Returns
The 16-bit integer value equal to the number represented by the specified c-string
Exceptions
FormatExceptionIf the specified c-string does not represent a number
OverflowExceptionIf the number represented by the specified c-string is greater than INT16_MAX or less that INT16_MIN

◆ ToInt16() [17/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent 16-bit integer value.

Parameters
valueThe string to convert
Returns
The 16-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT16_MAX or less than INT16_MIN

◆ ToInt16() [18/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const String value,
int  from_base 
)
static

Converts the specified string containing the string representation of a number in the specified base to the equivalent 16-bit integer value.

Parameters
valueThe string to convert
from_baseThe base of the number represented by the string
Returns
The 16-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT16_MAX or less than INT16_MIN

◆ ToInt16() [19/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent 16-bit integer value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The 16-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT16_MAX or less than INT16_MIN

◆ ToInt16() [20/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToInt16() [21/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToInt16() [22/28]

static int16_t System::Convert::ToInt16 ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToInt16() [23/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent 16-bit integer value using the provided formatting information and number style.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The 16-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT16_MAX or is less than INT16_MIN

◆ ToInt16() [24/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToInt16() [25/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToInt16() [26/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ ToInt16() [27/28]

template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static int16_t System::Convert::ToInt16 ( Enum  value)
inlinestatic

◆ ToInt16() [28/28]

static ASPOSECPP_SHARED_API int16_t System::Convert::ToInt16 ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent 16-bit integer value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
A 16-bit integer value equivalent to the specified boxed value

◆ ToInt32() [1/28]

static constexpr int System::Convert::ToInt32 ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent 32-bit signed integer.

◆ ToInt32() [2/28]

static constexpr int System::Convert::ToInt32 ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent 32-bit signed integer.

◆ ToInt32() [3/28]

static constexpr int System::Convert::ToInt32 ( int8_t  value)
inlinestatic

Converts the specified 8-bit signed integer to an equivalent 32-bit signed integer.

◆ ToInt32() [4/28]

static constexpr int System::Convert::ToInt32 ( uint16_t  value)
inlinestatic

Converts the specified 16-bit unsigned integer to an equivalent 32-bit signed integer.

◆ ToInt32() [5/28]

static constexpr int System::Convert::ToInt32 ( int16_t  value)
inlinestatic

Converts the specified 16-bit signed integer to an equivalent 32-bit signed integer.

◆ ToInt32() [6/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( uint32_t  value)
static

Converts the specified 32-bit unsigned integer to an equivalent 32-bit signed integer.

◆ ToInt32() [7/28]

static constexpr int System::Convert::ToInt32 ( int32_t  value)
inlinestatic

Returns the specified 32-bit signed integer.

◆ ToInt32() [8/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( uint64_t  value)
static

Converts the specified 64-bit unsigned integer to an equivalent 32-bit signed integer.

◆ ToInt32() [9/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( int64_t  value)
static

Converts the specified 64-bit signed integer to an equivalent 32-bit signed integer.

◆ ToInt32() [10/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( float  value)
static

Converts the specified float number to an equivalent 32-bit signed integer.

◆ ToInt32() [11/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( double  value)
static

Converts the specified double number to an equivalent 32-bit signed integer.

◆ ToInt32() [12/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const Decimal value)
static

Converts the specified decimal number to an equivalent 32-bit signed integer.

◆ ToInt32() [13/28]

static constexpr int System::Convert::ToInt32 ( char_t  value)
inlinestatic

Converts the specified unicode character to an equivalent 32-bit signed integer.

◆ ToInt32() [14/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToInt32() [15/28]

static constexpr int System::Convert::ToInt32 ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent 32-bit integer value.

Returns
Zero.

◆ ToInt32() [16/28]

static int System::Convert::ToInt32 ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent 32-bit integer value.

Parameters
valueThe c-string to convert
Returns
The 32-bit integer value equal to the number represented by the specified c-string
Exceptions
FormatExceptionIf the specified c-string does not represent a number
OverflowExceptionIf the number represented by the specified c-string is greater than INT16_MAX or less that INT32_MIN

◆ ToInt32() [17/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent 32-bit integer value.

Parameters
valueThe string to convert
Returns
The 32-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT32_MAX or less than INT32_MIN

◆ ToInt32() [18/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const String value,
int  from_base 
)
static

Converts the specified string containing the string representation of a number in the specified base to the equivalent 32-bit integer value.

Parameters
valueThe string to convert
from_baseThe base of the number represented by the string
Returns
The 32-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT32_MAX or less than INT32_MIN

◆ ToInt32() [19/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent 32-bit integer value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The 32-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT32_MAX or less than INT32_MIN

◆ ToInt32() [20/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToInt32() [21/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToInt32() [22/28]

static int System::Convert::ToInt32 ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToInt32() [23/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent 32-bit integer value using the provided formatting information and number style.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The 32-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT32_MAX or is less than INT32_MIN

◆ ToInt32() [24/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToInt32() [25/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToInt32() [26/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ ToInt32() [27/28]

template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static int32_t System::Convert::ToInt32 ( Enum  value)
inlinestatic

◆ ToInt32() [28/28]

static ASPOSECPP_SHARED_API int System::Convert::ToInt32 ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent 32-bit integer value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
A 32-bit integer value equivalent to the specified boxed value

◆ ToInt64() [1/28]

static constexpr int64_t System::Convert::ToInt64 ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent 64-bit signed integer.

◆ ToInt64() [2/28]

static constexpr int64_t System::Convert::ToInt64 ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent 64-bit signed integer.

◆ ToInt64() [3/28]

static constexpr int64_t System::Convert::ToInt64 ( int8_t  value)
inlinestatic

Converts the specified 8-bit signed integer to an equivalent 64-bit signed integer.

◆ ToInt64() [4/28]

static constexpr int64_t System::Convert::ToInt64 ( uint16_t  value)
inlinestatic

Converts the specified 16-bit unsigned integer to an equivalent 64-bit signed integer.

◆ ToInt64() [5/28]

static constexpr int64_t System::Convert::ToInt64 ( int16_t  value)
inlinestatic

Converts the specified 16-bit signed integer to an equivalent 64-bit signed integer.

◆ ToInt64() [6/28]

static constexpr int64_t System::Convert::ToInt64 ( uint32_t  value)
inlinestatic

Converts the specified 32-bit unsigned integer to an equivalent 64-bit signed integer.

◆ ToInt64() [7/28]

static constexpr int64_t System::Convert::ToInt64 ( int32_t  value)
inlinestatic

Converts the specified 32-bit signed integer to an equivalent 64-bit signed integer.

◆ ToInt64() [8/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( uint64_t  value)
static

Converts the specified 64-bit unsigned integer to an equivalent 64-bit signed integer.

◆ ToInt64() [9/28]

static constexpr int64_t System::Convert::ToInt64 ( int64_t  value)
inlinestatic

Returns the specified 64-bit signed integer.

◆ ToInt64() [10/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( float  value)
static

Converts the specified float number to an equivalent 64-bit signed integer.

◆ ToInt64() [11/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( double  value)
static

Converts the specified double number to an equivalent 64-bit signed integer.

◆ ToInt64() [12/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const Decimal value)
static

Converts the specified decimal number to an equivalent 64-bit signed integer.

◆ ToInt64() [13/28]

static constexpr int64_t System::Convert::ToInt64 ( char_t  value)
inlinestatic

Converts the specified unicode character to an equivalent 64-bit signed integer.

◆ ToInt64() [14/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToInt64() [15/28]

static constexpr int64_t System::Convert::ToInt64 ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent int 64-bit integer value.

Returns
Zero.

◆ ToInt64() [16/28]

static int64_t System::Convert::ToInt64 ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent 64-bit integer value.

Parameters
valueThe c-string to convert
Returns
The 64-bit integer value equal to the number represented by the specified c-string
Exceptions
FormatExceptionIf the specified c-string does not represent a number
OverflowExceptionIf the number represented by the specified c-string is greater than INT16_MAX or less that INT64_MIN

◆ ToInt64() [17/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent 64-bit integer value.

Parameters
valueThe string to convert
Returns
The 64-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT64_MAX or less than INT64_MIN

◆ ToInt64() [18/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const String value,
int  from_base 
)
static

Converts the specified string containing the string representation of a number in the specified base to the equivalent 64-bit integer value.

Parameters
valueThe string to convert
from_baseThe base of the number represented by the string
Returns
The 64-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT64_MAX or less than INT64_MIN

◆ ToInt64() [19/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent 64-bit integer value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The 64-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT64_MAX or less than INT64_MIN

◆ ToInt64() [20/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToInt64() [21/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToInt64() [22/28]

static int64_t System::Convert::ToInt64 ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToInt64() [23/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent 64-bit integer value using the provided formatting information and number style.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The 64-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT64_MAX or is less than INT64_MIN

◆ ToInt64() [24/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToInt64() [25/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToInt64() [26/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ ToInt64() [27/28]

template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static int64_t System::Convert::ToInt64 ( Enum  value)
inlinestatic

◆ ToInt64() [28/28]

static ASPOSECPP_SHARED_API int64_t System::Convert::ToInt64 ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent 64-bit integer value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
A 64-bit integer value equivalent to the specified boxed value

◆ ToSByte() [1/28]

static constexpr int8_t System::Convert::ToSByte ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent 8-bit signed integer.

◆ ToSByte() [2/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( uint8_t  value)
static

Converts the specified 8-bit unsigned integer to an equivalent 8-bit signed integer.

◆ ToSByte() [3/28]

static constexpr int8_t System::Convert::ToSByte ( int8_t  value)
inlinestatic

Returns the specified 8-bit signed integer.

◆ ToSByte() [4/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( uint16_t  value)
static

Converts the specified 16-bit unsigned integer to an equivalent 8-bit signed integer.

◆ ToSByte() [5/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( int16_t  value)
static

Converts the specified 16-bit signed integer to an equivalent 8-bit signed integer.

◆ ToSByte() [6/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( uint32_t  value)
static

Converts the specified 32-bit unsigned integer to an equivalent 8-bit signed integer.

◆ ToSByte() [7/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( int32_t  value)
static

Converts the specified 32-bit signed integer to an equivalent 8-bit signed integer.

◆ ToSByte() [8/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( uint64_t  value)
static

Converts the specified 64-bit unsigned integer to an equivalent 8-bit signed integer.

◆ ToSByte() [9/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( int64_t  value)
static

Converts the specified 64-bit signed integer to an equivalent 8-bit signed integer.

◆ ToSByte() [10/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( float  value)
static

Converts the specified float number to an equivalent 8-bit signed integer.

◆ ToSByte() [11/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( double  value)
static

Converts the specified double number to an equivalent 8-bit signed integer.

◆ ToSByte() [12/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const Decimal value)
static

Converts the specified decimal number to an equivalent 8-bit signed integer.

◆ ToSByte() [13/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( char_t  value)
static

Converts the specified unicode character to an equivalent 8-bit signed integer.

◆ ToSByte() [14/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToSByte() [15/28]

static constexpr int8_t System::Convert::ToSByte ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent 8-bit integer value.

Returns
Zero.

◆ ToSByte() [16/28]

static int8_t System::Convert::ToSByte ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent 8-bit integer value.

Parameters
valueThe c-string to convert
Returns
The 8-bit integer value equal to the number represented by the specified c-string
Exceptions
FormatExceptionIf the specified c-string does not represent a number
OverflowExceptionIf the number represented by the specified c-string is greater than INT8_MAX or less that INT8_MIN

◆ ToSByte() [17/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent 8-bit integer value.

Parameters
valueThe string to convert
Returns
The 8-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT8_MAX or less than INT8_MIN

◆ ToSByte() [18/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const String value,
int  from_base 
)
static

Converts the specified string containing the string representation of a number in the specified base to the equivalent 8-bit integer value.

Parameters
valueThe string to convert
from_baseThe base of the number represented by the string
Returns
The 8-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT8_MAX or less than INT8_MIN

◆ ToSByte() [19/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 8-bit integer value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The 8-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT8_MAX or less than INT8_MIN

◆ ToSByte() [20/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToSByte() [21/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToSByte() [22/28]

static int8_t System::Convert::ToSByte ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToSByte() [23/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent 8-bit integer value using the provided formatting information and number style.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The unsigned 8-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than INT8_MAX or is less than INT8_MIN

◆ ToSByte() [24/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToSByte() [25/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToSByte() [26/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ ToSByte() [27/28]

template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static int8_t System::Convert::ToSByte ( Enum  value)
inlinestatic

◆ ToSByte() [28/28]

static ASPOSECPP_SHARED_API int8_t System::Convert::ToSByte ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent 8-bit integer value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
An 8-bit integer value equivalent to the specified boxed value

◆ ToSingle() [1/26]

static constexpr float System::Convert::ToSingle ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent single-precision floating-point number.

◆ ToSingle() [2/26]

static constexpr float System::Convert::ToSingle ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent single-precision floating-point number.

◆ ToSingle() [3/26]

static constexpr float System::Convert::ToSingle ( int8_t  value)
inlinestatic

Converts the specified 8-bit signed integer to an equivalent single-precision floating-point number.

◆ ToSingle() [4/26]

static constexpr float System::Convert::ToSingle ( uint16_t  value)
inlinestatic

Converts the specified 16-bit unsigned integer to an equivalent single-precision floating-point number.

◆ ToSingle() [5/26]

static constexpr float System::Convert::ToSingle ( int16_t  value)
inlinestatic

Converts the specified 16-bit signed integer to an equivalent single-precision floating-point number.

◆ ToSingle() [6/26]

static constexpr float System::Convert::ToSingle ( uint32_t  value)
inlinestatic

Converts the specified 32-bit unsigned integer to an equivalent single-precision floating-point number.

◆ ToSingle() [7/26]

static constexpr float System::Convert::ToSingle ( int32_t  value)
inlinestatic

Converts the specified 32-bit signed integer to an equivalent single-precision floating-point number.

◆ ToSingle() [8/26]

static constexpr float System::Convert::ToSingle ( uint64_t  value)
inlinestatic

Converts the specified 64-bit unsigned integer to an equivalent single-precision floating-point number.

◆ ToSingle() [9/26]

static constexpr float System::Convert::ToSingle ( int64_t  value)
inlinestatic

Converts the specified 64-bit signed integer to an equivalent single-precision floating-point number.

◆ ToSingle() [10/26]

static constexpr float System::Convert::ToSingle ( float  value)
inlinestatic

Returns the specified float number.

◆ ToSingle() [11/26]

static constexpr float System::Convert::ToSingle ( double  value)
inlinestatic

Converts the specified double-precision number to an equivalent single-precision floating-point number.

◆ ToSingle() [12/26]

static float System::Convert::ToSingle ( const Decimal value)
inlinestatic

Converts the specified decimal number to an equivalent single-precision floating-point number.

◆ ToSingle() [13/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( char_t  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToSingle() [14/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToSingle() [15/26]

static constexpr float System::Convert::ToSingle ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent single-precision floating-point value.

Returns
Zero.

◆ ToSingle() [16/26]

static float System::Convert::ToSingle ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent single-precision floating-point value.

Parameters
valueThe c-string to convert
Returns
The single-precision floating-point value equal to the number represented by the specified c-string

◆ ToSingle() [17/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value.

Parameters
valueThe string to convert
Returns
The single-precision floating-point value equal to the number represented by the specified string

◆ ToSingle() [18/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The single-precision floating-point value equal to the number represented by the specified string

◆ ToSingle() [19/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToSingle() [20/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToSingle() [21/26]

static float System::Convert::ToSingle ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToSingle() [22/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value using the provided formatting information and number style.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The single-precision floating-point value equal to the number represented by the specified string

◆ ToSingle() [23/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToSingle() [24/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToSingle() [25/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ ToSingle() [26/26]

static ASPOSECPP_SHARED_API float System::Convert::ToSingle ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to single-precision floating-point value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
A single-precision floating-point value equivalent to the specified boxed value

◆ ToString() [1/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int8_t  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [2/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint8_t  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [3/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int16_t  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [4/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint16_t  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [5/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int32_t  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [6/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint32_t  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [7/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int64_t  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [8/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint64_t  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [9/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( float  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [10/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( double  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [11/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const Decimal value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value.

◆ ToString() [12/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( DateTime  value)
static

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value.

◆ ToString() [13/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int8_t  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [14/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int8_t  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [15/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int8_t  value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [16/138]

static String System::Convert::ToString ( int8_t  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [17/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint8_t  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [18/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint8_t  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [19/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint8_t  value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [20/138]

static String System::Convert::ToString ( uint8_t  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [21/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int16_t  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [22/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int16_t  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [23/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int16_t  value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [24/138]

static String System::Convert::ToString ( int16_t  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [25/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint16_t  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [26/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint16_t  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [27/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint16_t  value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [28/138]

static String System::Convert::ToString ( uint16_t  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [29/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int32_t  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [30/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int32_t  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [31/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int32_t  value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [32/138]

static String System::Convert::ToString ( int32_t  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [33/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint32_t  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [34/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint32_t  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [35/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint32_t  value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [36/138]

static String System::Convert::ToString ( uint32_t  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [37/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int64_t  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [38/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int64_t  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [39/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int64_t  value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [40/138]

static String System::Convert::ToString ( int64_t  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [41/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint64_t  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [42/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint64_t  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [43/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint64_t  value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [44/138]

static String System::Convert::ToString ( uint64_t  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [45/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( float  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [46/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( float  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [47/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( float  value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [48/138]

static String System::Convert::ToString ( float  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [49/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( double  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [50/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( double  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [51/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( double  value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [52/138]

static String System::Convert::ToString ( double  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [53/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const Decimal value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [54/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const Decimal value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [55/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const Decimal value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [56/138]

static String System::Convert::ToString ( const Decimal value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [57/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( DateTime  value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to string using the culture-specific format information.

Parameters
valueThe value to convert.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [58/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( DateTime  value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [59/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( DateTime  value,
const SharedPtr< Globalization::DateTimeFormatInfo > &  dtfi 
)
static

◆ ToString() [60/138]

static String System::Convert::ToString ( DateTime  value,
std::nullptr_t   
)
inlinestatic

◆ ToString() [61/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int8_t  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [62/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int8_t  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [63/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int8_t  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [64/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int8_t  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [65/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint8_t  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [66/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint8_t  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [67/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint8_t  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [68/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint8_t  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [69/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int16_t  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [70/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int16_t  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [71/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int16_t  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [72/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int16_t  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [73/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint16_t  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [74/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint16_t  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [75/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint16_t  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [76/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint16_t  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [77/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int32_t  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [78/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int32_t  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [79/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int32_t  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [80/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int32_t  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [81/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint32_t  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [82/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint32_t  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [83/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint32_t  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [84/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint32_t  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [85/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int64_t  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [86/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int64_t  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [87/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int64_t  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [88/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int64_t  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [89/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint64_t  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [90/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint64_t  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [91/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint64_t  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [92/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( uint64_t  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [93/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( float  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [94/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( float  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [95/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( float  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [96/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( float  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [97/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( double  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [98/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( double  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [99/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( double  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [100/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( double  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [101/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const Decimal value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [102/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const Decimal value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [103/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const Decimal value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [104/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const Decimal value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [105/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( DateTime  value,
const String format,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified value to its string representation using the specified string format and culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe value to convert.
formatThe string format.
providerThe IFormatProvider object providing the culture-specific format information.
Returns
The string representation of the specified value.

◆ ToString() [106/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( DateTime  value,
const String format,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToString() [107/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( DateTime  value,
const String format,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToString() [108/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( DateTime  value,
const String format,
std::nullptr_t  = nullptr 
)
static

◆ ToString() [109/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const Guid value)
static

Converts the specified value to string.

Parameters
valueThe value to convert
Returns
The string representation of the specified value

◆ ToString() [110/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const Guid value,
const String format 
)
static

Converts the specified value to string using the specified string format.

Parameters
valueThe value to convert
formatThe string format.
Returns
The string representation of the specified value

◆ ToString() [111/138]

template<size_t N>
static String System::Convert::ToString ( const char_t(&)  value[N],
std::nullptr_t  = nullptr 
)
inlinestatic

Converts the specified array of unicode characters to string.

Parameters
valueThe array to convert.
Returns
The string representation of the specified array.
Template Parameters
NThe size of the array.

◆ ToString() [112/138]

template<size_t N>
static String System::Convert::ToString ( const char_t(&)  value[N],
const SharedPtr< IFormatProvider > &   
)
inlinestatic

Converts the specified array of unicode characters to string using the specified culture-specific format information provided by the specified IFormatProvider object.

Parameters
valueThe array to convert.
Returns
The string representation of the specified array.
Template Parameters
NThe size of the array.

◆ ToString() [113/138]

template<size_t N>
static String System::Convert::ToString ( const char_t(&)  value[N],
const SharedPtr< Globalization::CultureInfo > &   
)
inlinestatic

◆ ToString() [114/138]

static String System::Convert::ToString ( const String value,
std::nullptr_t  = nullptr 
)
inlinestatic

Returns the specified value; no conversion is performed.

◆ ToString() [115/138]

static String System::Convert::ToString ( const String value,
const SharedPtr< IFormatProvider > &   
)
inlinestatic

Returns the specified value; no conversion is performed.

◆ ToString() [116/138]

static String System::Convert::ToString ( const String value,
const SharedPtr< Globalization::CultureInfo > &   
)
inlinestatic

Returns the specified value; no conversion is performed.

◆ ToString() [117/138]

static String System::Convert::ToString ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &   
)
inlinestatic

Returns the specified value; no conversion is performed.

◆ ToString() [118/138]

static String System::Convert::ToString ( char_t  value,
std::nullptr_t  = nullptr 
)
inlinestatic

Returns the specified value; no conversion is performed.

◆ ToString() [119/138]

static String System::Convert::ToString ( char_t  value,
const SharedPtr< IFormatProvider > &   
)
inlinestatic

Returns the specified value; no conversion is performed.

◆ ToString() [120/138]

static String System::Convert::ToString ( char_t  value,
const SharedPtr< Globalization::CultureInfo > &   
)
inlinestatic

Returns the specified value; no conversion is performed.

◆ ToString() [121/138]

static String System::Convert::ToString ( char_t  value,
const String ,
const SharedPtr< IFormatProvider > &   
)
inlinestatic

Returns the specified value; no conversion is performed.

◆ ToString() [122/138]

static String System::Convert::ToString ( char_t  value,
const String ,
const SharedPtr< Globalization::CultureInfo > &   
)
inlinestatic

Returns the specified value; no conversion is performed.

◆ ToString() [123/138]

static String System::Convert::ToString ( char_t  value,
const String ,
std::nullptr_t   
)
inlinestatic

Returns the specified value; no conversion is performed.

◆ ToString() [124/138]

static String System::Convert::ToString ( bool  value,
std::nullptr_t  = nullptr 
)
inlinestatic

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [125/138]

static String System::Convert::ToString ( bool  value,
const SharedPtr< IFormatProvider > &   
)
inlinestatic

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [126/138]

static String System::Convert::ToString ( bool  value,
const SharedPtr< Globalization::CultureInfo > &   
)
inlinestatic

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [127/138]

static String System::Convert::ToString ( bool  value,
const SharedPtr< Globalization::NumberFormatInfo > &   
)
inlinestatic

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [128/138]

static String System::Convert::ToString ( bool  value,
const String ,
const SharedPtr< IFormatProvider > &   
)
inlinestatic

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [129/138]

static String System::Convert::ToString ( bool  value,
const String ,
const SharedPtr< Globalization::CultureInfo > &   
)
inlinestatic

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [130/138]

static String System::Convert::ToString ( bool  value,
const String ,
std::nullptr_t   
)
inlinestatic

Converts the specified value to its string representation.

Parameters
valueThe value to convert.
Returns
The string representation of the specified value

◆ ToString() [131/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int8_t  value,
int  to_base 
)
static

Converts the specified integer value to its string representation in the specified base.

Parameters
valueThe value to convert
to_baseThe base in which the specified value is to be represented
Returns
The string representation of the specified value in the specified base

◆ ToString() [132/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int16_t  value,
int  to_base 
)
static

Converts the specified integer value to its string representation in the specified base.

Parameters
valueThe value to convert
to_baseThe base in which the specified value is to be represented
Returns
The string representation of the specified value in the specified base

◆ ToString() [133/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int32_t  value,
int  to_base 
)
static

Converts the specified integer value to its string representation in the specified base.

Parameters
valueThe value to convert
to_baseThe base in which the specified value is to be represented
Returns
The string representation of the specified value in the specified base

◆ ToString() [134/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( int64_t  value,
int  to_base 
)
static

Converts the specified integer value to its string representation in the specified base.

Parameters
valueThe value to convert
to_baseThe base in which the specified value is to be represented
Returns
The string representation of the specified value in the specified base

◆ ToString() [135/138]

static String System::Convert::ToString ( uint8_t  value,
int  to_base 
)
inlinestatic

◆ ToString() [136/138]

static String System::Convert::ToString ( uint16_t  value,
int  to_base 
)
inlinestatic

◆ ToString() [137/138]

static String System::Convert::ToString ( uint32_t  value,
int  to_base 
)
inlinestatic

◆ ToString() [138/138]

static ASPOSECPP_SHARED_API String System::Convert::ToString ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to its string representation. If the type of boxed value is String, the specified string format is used during conversion.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
A string representing the specified boxed value

◆ ToUInt16() [1/28]

static constexpr uint16_t System::Convert::ToUInt16 ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [2/28]

static constexpr uint16_t System::Convert::ToUInt16 ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [3/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( int8_t  value)
static

Converts the specified 8-bit signed integer to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [4/28]

static constexpr uint16_t System::Convert::ToUInt16 ( uint16_t  value)
inlinestatic

Returns the specified 16-bit unsigned integer.

◆ ToUInt16() [5/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( int16_t  value)
static

Converts the specified 16-bit signed integer to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [6/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( uint32_t  value)
static

Converts the specified 32-bit unsigned integer to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [7/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( int32_t  value)
static

Converts the specified 32-bit signed integer to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [8/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( uint64_t  value)
static

Converts the specified 64-bit unsigned integer to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [9/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( int64_t  value)
static

Converts the specified 64-bit signed integer to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [10/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( float  value)
static

Converts the specified float number to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [11/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( double  value)
static

Converts the specified double number to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [12/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const Decimal value)
static

Converts the specified decimal number to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [13/28]

static constexpr uint16_t System::Convert::ToUInt16 ( char_t  value)
inlinestatic

Converts the specified unicode character to an equivalent 16-bit unsigned integer.

◆ ToUInt16() [14/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToUInt16() [15/28]

static constexpr uint16_t System::Convert::ToUInt16 ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent unsigned 16-bit integer value.

Returns
Zero.

◆ ToUInt16() [16/28]

static uint16_t System::Convert::ToUInt16 ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent unsigned 16-bit integer value.

Parameters
valueThe c-string to convert
Returns
The unsigned 16-bit integer value equal to the number represented by the specified c-string
Exceptions
FormatExceptionIf the specified c-string does not represent a number
OverflowExceptionIf the number represented by the specified c-string is greater than UINT16_MAX or is a negative number

◆ ToUInt16() [17/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 16-bit integer value.

Parameters
valueThe string to convert
Returns
The unsigned 16-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT16_MAX or is a negative number

◆ ToUInt16() [18/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const String value,
int  from_base 
)
static

Converts the specified string containing the string representation of a number in the specified base to the equivalent unsigned 16-bit integer value.

Parameters
valueThe string to convert
from_baseThe base of the number represented by the string
Returns
The unsigned 16-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT16_MAX or is a negative number

◆ ToUInt16() [19/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 16-bit integer value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The unsigned 16-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT16_MAX or is a negative number

◆ ToUInt16() [20/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToUInt16() [21/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToUInt16() [22/28]

static uint16_t System::Convert::ToUInt16 ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToUInt16() [23/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 16-bit integer value using the provided formatting information and number style.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The unsigned 16-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT16_MAX or is a negative number

◆ ToUInt16() [24/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToUInt16() [25/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToUInt16() [26/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ ToUInt16() [27/28]

template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static uint16_t System::Convert::ToUInt16 ( Enum  value)
inlinestatic

◆ ToUInt16() [28/28]

static ASPOSECPP_SHARED_API uint16_t System::Convert::ToUInt16 ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent unsigned 16-bit integer value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
An unsigned 16-bit integer value equivalent to the specified boxed value

◆ ToUInt32() [1/28]

static constexpr uint32_t System::Convert::ToUInt32 ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [2/28]

static constexpr uint32_t System::Convert::ToUInt32 ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [3/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( int8_t  value)
static

Converts the specified 8-bit signed integer to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [4/28]

static constexpr uint32_t System::Convert::ToUInt32 ( uint16_t  value)
inlinestatic

Converts the specified 16-bit unsigned integer to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [5/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( int16_t  value)
static

Converts the specified 16-bit signed integer to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [6/28]

static constexpr uint32_t System::Convert::ToUInt32 ( uint32_t  value)
inlinestatic

Returns the specified 32-bit unsigned integer.

◆ ToUInt32() [7/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( int32_t  value)
static

Converts the specified 32-bit signed integer to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [8/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( uint64_t  value)
static

Converts the specified 64-bit unsigned integer to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [9/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( int64_t  value)
static

Converts the specified 64-bit signed integer to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [10/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( float  value)
static

Converts the specified float number to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [11/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( double  value)
static

Converts the specified double number to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [12/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const Decimal value)
static

Converts the specified decimal number to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [13/28]

static constexpr uint32_t System::Convert::ToUInt32 ( char_t  value)
inlinestatic

Converts the specified unicode character to an equivalent 32-bit unsigned integer.

◆ ToUInt32() [14/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToUInt32() [15/28]

static constexpr uint32_t System::Convert::ToUInt32 ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent unsigned 32-bit integer value.

Returns
Zero.

◆ ToUInt32() [16/28]

static uint32_t System::Convert::ToUInt32 ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent unsigned 32-bit integer value.

Parameters
valueThe c-string to convert
Returns
The unsigned 32-bit integer value equal to the number represented by the specified c-string
Exceptions
FormatExceptionIf the specified c-string does not represent a number
OverflowExceptionIf the number represented by the specified c-string is greater than UINT32_MAX or is a negative number

◆ ToUInt32() [17/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 32-bit integer value.

Parameters
valueThe string to convert
Returns
The unsigned 32-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT32_MAX or is a negative number

◆ ToUInt32() [18/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const String value,
int  from_base 
)
static

Converts the specified string containing the string representation of a number in the specified base to the equivalent unsigned 32-bit integer value.

Parameters
valueThe string to convert
from_baseThe base of the number represented by the string
Returns
The unsigned 32-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT32_MAX or is a negative number

◆ ToUInt32() [19/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 32-bit integer value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The unsigned 32-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT32_MAX or is a negative number

◆ ToUInt32() [20/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToUInt32() [21/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToUInt32() [22/28]

static uint32_t System::Convert::ToUInt32 ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToUInt32() [23/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 32-bit integer value using the provided formatting information and number style.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The unsigned 32-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT32_MAX or is a negative number

◆ ToUInt32() [24/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToUInt32() [25/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToUInt32() [26/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ ToUInt32() [27/28]

template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static uint32_t System::Convert::ToUInt32 ( Enum  value)
inlinestatic

◆ ToUInt32() [28/28]

static ASPOSECPP_SHARED_API uint32_t System::Convert::ToUInt32 ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent unsigned 32-bit integer value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
An unsigned 32-bit integer value equivalent to the specified boxed value

◆ ToUInt64() [1/28]

static constexpr uint64_t System::Convert::ToUInt64 ( bool  value)
inlinestatic

Converts the specified boolean value to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [2/28]

static constexpr uint64_t System::Convert::ToUInt64 ( uint8_t  value)
inlinestatic

Converts the specified 8-bit unsigned integer to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [3/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( int8_t  value)
static

Converts the specified 8-bit signed integer to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [4/28]

static constexpr uint64_t System::Convert::ToUInt64 ( uint16_t  value)
inlinestatic

Converts the specified 16-bit unsigned integer to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [5/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( int16_t  value)
static

Converts the specified 16-bit signed integer to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [6/28]

static constexpr uint64_t System::Convert::ToUInt64 ( uint32_t  value)
inlinestatic

Converts the specified 32-bit unsigned integer to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [7/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( int32_t  value)
static

Converts the specified 32-bit signed integer to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [8/28]

static constexpr uint64_t System::Convert::ToUInt64 ( uint64_t  value)
inlinestatic

Returns the specified 64-bit unsigned integer.

◆ ToUInt64() [9/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( int64_t  value)
static

Converts the specified 64-bit signed integer to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [10/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( float  value)
static

Converts the specified float number to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [11/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( double  value)
static

Converts the specified double number to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [12/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const Decimal value)
static

Converts the specified decimal number to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [13/28]

static constexpr uint64_t System::Convert::ToUInt64 ( char_t  value)
inlinestatic

Converts the specified unicode character to an equivalent 64-bit unsigned integer.

◆ ToUInt64() [14/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( DateTime  value)
static

Conversion is not supported. Always throws InvalidCastException.

◆ ToUInt64() [15/28]

static constexpr uint64_t System::Convert::ToUInt64 ( std::nullptr_t  )
inlinestatic

Converts the specified null-string to the equivalent unsigned 64-bit integer value.

Returns
Zero.

◆ ToUInt64() [16/28]

static uint64_t System::Convert::ToUInt64 ( const char_t *  value)
inlinestatic

Converts the specified c-string containing the string representation of a number to the equivalent unsigned 64-bit integer value.

Parameters
valueThe c-string to convert
Returns
The unsigned 64-bit integer value equal to the number represented by the specified c-string
Exceptions
FormatExceptionIf the specified c-string does not represent a number
OverflowExceptionIf the number represented by the specified c-string is greater than UINT64_MAX or is a negative number

◆ ToUInt64() [17/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 64-bit integer value.

Parameters
valueThe string to convert
Returns
The unsigned 64-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT64_MAX or is a negative number

◆ ToUInt64() [18/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const String value,
int  from_base 
)
static

Converts the specified string containing the string representation of a number in the specified base to the equivalent unsigned 64-bit integer value.

Parameters
valueThe string to convert
from_baseThe base of the number represented by the string
Returns
The unsigned 64-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT64_MAX or is a negative number

◆ ToUInt64() [19/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 64-bit integer value using the provided formatting information.

Parameters
valueThe string to convert
providerA pointer to an object that contains the string format information
Returns
The unsigned 64-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT64_MAX or is a negative number

◆ ToUInt64() [20/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToUInt64() [21/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToUInt64() [22/28]

static uint64_t System::Convert::ToUInt64 ( const String value,
std::nullptr_t   
)
inlinestatic

◆ ToUInt64() [23/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent unsigned 64-bit integer value using the provided formatting information and number style.

Parameters
valueThe string to convert
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number
providerA pointer to an object that contains the string format information
Returns
The unsigned 64-bit integer value equal to the number represented by the specified string
Exceptions
FormatExceptionIf the specified string does not represent a number
OverflowExceptionIf the number represented by the specified string is greater than UINT64_MAX or is a negative number

◆ ToUInt64() [24/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ ToUInt64() [25/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ ToUInt64() [26/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ ToUInt64() [27/28]

template<typename Enum , typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
static uint64_t System::Convert::ToUInt64 ( Enum  value)
inlinestatic

◆ ToUInt64() [28/28]

static ASPOSECPP_SHARED_API uint64_t System::Convert::ToUInt64 ( const SharedPtr< Object > &  obj,
const SharedPtr< IFormatProvider > &  provider = nullptr 
)
static

Converts the specified boxed value to equivalent unsigned 64-bit integer value.

Parameters
objThe shared pointer to the object boxing the value to convert
providerThe string format to be used if the type of the boxed value is String
Returns
An unsigned 64-bit integer value equivalent to the specified boxed value