示例#1
0
 public String ToString(String format, IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(FormatProvider.FormatDecimal(this, format, provider));
 }
示例#2
0
 // 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));
 }