Method ToString
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToString(IFormatProvider?)
Returns a string that represents the current object, using the specified format provider.
public string ToString(IFormatProvider? formatProvider = null)
Parameters
formatProvider
IFormatProviderThe format provider to use when formatting the string. If null, the current culture is used.
Returns
- string
A string that represents the current object, formatted using the specified format provider.