Rediger

Del via


FormatterConverter.ToString(Object) Method

Definition

Converts the specified object to a String.

public:
 virtual System::String ^ ToString(System::Object ^ value);
public string? ToString (object value);
public string ToString (object value);
override this.ToString : obj -> string
Public Function ToString (value As Object) As String

Parameters

value
Object

The object to convert.

Returns

The converted value or null if the type parameter is null.

Implements

Exceptions

The value parameter is null.

Remarks

This method uses the invariant culture (see CultureInfo.InvariantCulture). To use the current culture or to specify a culture, use the Convert.ToString method instead. For more information, see String, Convert, and ValueType.

Applies to