public String ToString(String format, IFormatProvider provider) { Contract.Ensures(Contract.Result <String>() != null); return(FormatProvider.FormatDecimal(this, format, provider)); }
// Converts this Decimal to a string. The resulting string consists of an // optional minus sign ("-") followed to a sequence of digits ("0" - "9"), // optionally followed by a decimal point (".") and another sequence of // digits. // public override String ToString() { Contract.Ensures(Contract.Result <String>() != null); return(FormatProvider.FormatDecimal(this, null, null)); }