System::ObjectExt::ToString method

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)
ParameterTypeDescription
objconst char_t *String literal to convert to string.

ReturnValue

String representation of obj.

See Also

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)
ParameterDescription
TNullable type.
ParameterTypeDescription
objconst Nullable<T>&Nullable object to convert to string.

ReturnValue

String representation of obj.

See Also

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)
ParameterDescription
TEnum type.
ParameterTypeDescription
objconst T&Enum value to convert to string.

ReturnValue

String representation of obj.

See Also

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)
ParameterDescription
TSmart pointer type.
ParameterTypeDescription
objconst T&SmartPtr value to convert to string.

ReturnValue

String representation of obj.

See Also

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)
ParameterDescription
TSmart pointer type or ExceptionWrapper.
ParameterTypeDescription
objT&Smart pointer or ExceptionWrapper to convert to string.

ReturnValue

String representation of obj.

See Also

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)
ParameterDescription
TScalar type.
ParameterTypeDescription
objT&Scalar value to convert to string.

ReturnValue

String representation of obj.

See Also

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)
ParameterDescription
TScalar type.
ParameterTypeDescription
objT&&Scalar value to convert to string.

ReturnValue

String representation of obj.

See Also

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)
ParameterDescription
TStructure type.
ParameterTypeDescription
objT&Structure value to convert to string.

ReturnValue

String representation of obj.

See Also

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)
ParameterDescription
TStructure type.
ParameterTypeDescription
objconst T&Structure value to convert to string.

ReturnValue

String representation of obj.

See Also

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)
ParameterDescription
TScalar type.
ParameterTypeDescription
objT&&Scalar value to convert to string.

ReturnValue

String representation of obj.

See Also