ToString()

ObjectExt::ToString(const char_t *) method

Substitution for C# ToString method to work on any C++ type.

static String System::ObjectExt::ToString(const char_t *obj)

Arguments

ParameterTypeDescription
objconst char_t *String literal to convert to string.

Return Value

String representation of obj.

ObjectExt::ToString(const Nullable<T>&) method

Substitution for C# ToString method to work on any C++ type.

template<typename T> static String System::ObjectExt::ToString(const Nullable<T> &obj)

Template parameters

ParameterDescription
TNullable type.

Arguments

ParameterTypeDescription
objconst Nullable<T>&Nullable object to convert to string.

Return Value

String representation of obj.

ObjectExt::ToString(const T&) method

Substitution for C# ToString method to work on any C++ type.

template<typename T> static std::enable_if<std::is_enum<T>::value, String>::type System::ObjectExt::ToString(const T &obj)

Template parameters

ParameterDescription
TEnum type.

Arguments

ParameterTypeDescription
objconst T&Enum value to convert to string.

Return Value

String representation of obj.

ObjectExt::ToString(const T&) method

Substitution for C# ToString method to work on any C++ type.

template<typename T> static std::enable_if<IsSmartPtr<T>::value, String>::type System::ObjectExt::ToString(const T &obj)

Template parameters

ParameterDescription
TSmart pointer type.

Arguments

ParameterTypeDescription
objconst T&SmartPtr value to convert to string.

Return Value

String representation of obj.

ObjectExt::ToString(T&) method

Substitution for C# ToString method to work on any C++ type.

template<typename T> static std::enable_if<IsSmartPtr<T>::value||std::is_pointer<T>::value||IsExceptionWrapper<T>::value, String>::type System::ObjectExt::ToString(T &obj)

Template parameters

ParameterDescription
TSmart pointer type or ExceptionWrapper.

Arguments

ParameterTypeDescription
objT&Smart pointer or ExceptionWrapper to convert to string.

Return Value

String representation of obj.

ObjectExt::ToString(T&) method

Substitution for C# ToString method to work on any C++ type.

template<typename T> static std::enable_if<!IsSmartPtr<T>::value &&std::is_scalar<T>::value &&!std::is_enum<T>::value, String>::type System::ObjectExt::ToString(T &obj)

Template parameters

ParameterDescription
TScalar type.

Arguments

ParameterTypeDescription
objT&Scalar value to convert to string.

Return Value

String representation of obj.

ObjectExt::ToString(T&&) method

Substitution for C# ToString method to work on any C++ type.

template<typename T> static std::enable_if<!IsSmartPtr<T>::value &&std::is_scalar<T>::value &&!std::is_enum<T>::value, String>::type System::ObjectExt::ToString(T &&obj)

Template parameters

ParameterDescription
TScalar type.

Arguments

ParameterTypeDescription
objT&&Scalar value to convert to string.

Return Value

String representation of obj.

ObjectExt::ToString(T&) method

Substitution for C# ToString method to work on any C++ type.

template<typename T> static std::enable_if<!IsExceptionWrapper<T>::value &&!IsSmartPtr<T>::value &&!std::is_scalar<T>::value &&!IsNullable<T>::value, String>::type System::ObjectExt::ToString(T &obj)

Template parameters

ParameterDescription
TStructure type.

Arguments

ParameterTypeDescription
objT&Structure value to convert to string.

Return Value

String representation of obj.

ObjectExt::ToString(const T&) method

Substitution for C# ToString method to work on any C++ type.

template<typename T> static std::enable_if<!IsSmartPtr<T>::value &&!std::is_scalar<T>::value &&!IsNullable<T>::value, String>::type System::ObjectExt::ToString(const T &obj)

Template parameters

ParameterDescription
TStructure type.

Arguments

ParameterTypeDescription
objconst T&Structure value to convert to string.

Return Value

String representation of obj.

ObjectExt::ToString(T&&) method

Substitution for C# ToString method to work on any C++ type.

template<typename T> static std::enable_if<!IsSmartPtr<T>::value &&!std::is_scalar<T>::value &&!IsNullable<T>::value &&!std::is_reference<T>::value, String>::type System::ObjectExt::ToString(T &&obj)

Template parameters

ParameterDescription
TScalar type.

Arguments

ParameterTypeDescription
objT&&Scalar value to convert to string.

Return Value

String representation of obj.

See Also