Method ToString
ToString()
Converts the value to its equivalent string representation.
string ToString()
Returns
ToString(string)
Converts the value to its equivalent string representation, using the specified format.
string ToString(string format)
Parameters
formatstringA standard or custom format string.
Returns
ToString(IFormatProvider)
Converts the value to its equivalent string representation using the specified culture-specific format information.
string ToString(IFormatProvider provider)
Parameters
providerIFormatProviderAn object that supplies culture-specific formatting information.
Returns
ToString(string, IFormatProvider)
Converts the value to its equivalent string representation using the specified format and culture-specific format information.
string ToString(string format, IFormatProvider provider)
Parameters
formatstringA standard or custom format string.
providerIFormatProviderAn object that supplies culture-specific formatting information.