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