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
Parameter | Type | Description |
---|---|---|
obj | const 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
Parameter | Description |
---|---|
T | Nullable type. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | const 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
Parameter | Description |
---|---|
T | Enum type. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | const 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
Parameter | Description |
---|---|
T | Smart pointer type. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | const 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
Parameter | Description |
---|---|
T | Smart pointer type or ExceptionWrapper. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | T& | 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
Parameter | Description |
---|---|
T | Scalar type. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | T& | 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
Parameter | Description |
---|---|
T | Scalar type. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | T&& | 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
Parameter | Description |
---|---|
T | Structure type. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | T& | 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
Parameter | Description |
---|---|
T | Structure type. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | const 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
Parameter | Description |
---|---|
T | Scalar type. |
Arguments
Parameter | Type | Description |
---|---|---|
obj | T&& | Scalar value to convert to string. |
Return Value
String representation of obj.
See Also
- Class String
- Class ObjectExt
- Class Nullable
- Struct IsSmartPtr
- Struct IsExceptionWrapper
- Struct IsNullable
- Namespace System
- Library Aspose.Slides