## IConvertible::ToString() const method


Analog of C# [Object.ToString()](../../object/tostring/) method. Enables converting custom objects to string.

```cpp
virtual String System::Object::ToString() const
```


### ReturnValue

[String](../../string/) representation as provided by final class.

## See Also

* Class [String](../../string/)
* Class [IConvertible](../)
* Namespace [System](../../)
* Library [Aspose.TeX for C++](../../../)
## IConvertible::ToString(System::SharedPtr\<System::IFormatProvider\>) method


Converts the value of this instance to an equivalent [System::String](../../string/) using the specified culture-specific formatting information.

```cpp
virtual System::String System::IConvertible::ToString(System::SharedPtr<System::IFormatProvider> provider)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| provider | System::SharedPtr\<System::IFormatProvider\> | A [System::IFormatProvider](../../iformatprovider/) interface implementation that supplies culture-specific formatting information. |

### ReturnValue

A [System::String](../../string/) instance equivalent to the value of this instance.

## See Also

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [IConvertible](../)
* Namespace [System](../../)
* Library [Aspose.TeX for C++](../../../)
