Method ToString
ToString(object?, object)
Converts the value to its equivalent string
representation.
public override string? ToString(object? sender, object value)
Parameters
Returns
ToString(object?, object, IFormatProvider?)
Converts the value to its equivalent string
representation
using the specified culture-specific format information.
public override string? ToString(object? sender, object value, IFormatProvider? provider)
Parameters
senderobjectAn object which calls the converter.
valueobjectA value for convertion.
providerIFormatProviderAn object that supplies culture-specific formatting information.
Returns
ToString(object?, object, string?)
Converts the value to its equivalent string
representation,
using the specified format.
public override string? ToString(object? sender, object value, string? format)
Parameters
senderobjectAn object which calls the converter.
valueobjectA value for convertion.
formatstringA standard or custom format string.
Returns
ToString(object?, object, string?, IFormatProvider?)
Converts the value to its equivalent string
representation using
the specified format and culture-specific format information.
public override string? ToString(object? sender, object value, string? format, IFormatProvider? provider)
Parameters
senderobjectAn object which calls the converter.
valueobjectA value for convertion.
formatstringA standard or custom format string.
providerIFormatProviderAn object that supplies culture-specific formatting information.