FormatDecimal() private method

private FormatDecimal ( Decimal value, String format, NumberFormatInfo info ) : String
value Decimal
format String
info System.Globalization.NumberFormatInfo
return String
コード例 #1
0
ファイル: currency.cs プロジェクト: SSCLI/sscli_20021101
 public static String Format(Currency value, String format, NumberFormatInfo info)
 {
     if (info == null)
     {
         info = NumberFormatInfo.CurrentInfo;
     }
     return(Number.FormatDecimal(ToDecimal(value), format, info));
 }
コード例 #2
0
 public String ToString(String format, IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatDecimal(this, format, provider));
 }
コード例 #3
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(Number.FormatDecimal(this, null, null));
 }
コード例 #4
0
ファイル: Decimal.cs プロジェクト: kellypleahy/coreclr
 public String ToString(IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatDecimal(this, null, NumberFormatInfo.GetInstance(provider)));
 }
コード例 #5
0
ファイル: Decimal.cs プロジェクト: kellypleahy/coreclr
 public String ToString(String format)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatDecimal(this, format, NumberFormatInfo.CurrentInfo));
 }
コード例 #6
0
 public String ToString(String format, IFormatProvider provider)
 {
     return(Number.FormatDecimal(this, format, NumberFormatInfo.GetInstance(provider)));
 }
コード例 #7
0
 public String ToString(String format)
 {
     return(Number.FormatDecimal(this, format, NumberFormatInfo.CurrentInfo));
 }
コード例 #8
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()
 {
     return(Number.FormatDecimal(this, null, NumberFormatInfo.CurrentInfo));
 }
コード例 #9
0
ファイル: Decimal.cs プロジェクト: zdrsh/coreclr
 public string ToString(IFormatProvider provider)
 {
     return(Number.FormatDecimal(this, null, NumberFormatInfo.GetInstance(provider)));
 }
コード例 #10
0
ファイル: Decimal.cs プロジェクト: praveenmunagapati/corert
 public String ToString(String format, IFormatProvider provider)
 {
     return(Number.FormatDecimal(this, format, provider));
 }
コード例 #11
0
ファイル: Decimal.cs プロジェクト: praveenmunagapati/corert
 public String ToString(IFormatProvider provider)
 {
     return(Number.FormatDecimal(this, null, provider));
 }
コード例 #12
0
ファイル: Decimal.cs プロジェクト: praveenmunagapati/corert
 public String ToString(String format)
 {
     return(Number.FormatDecimal(this, format, null));
 }
コード例 #13
0
ファイル: Decimal.cs プロジェクト: praveenmunagapati/corert
 // 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()
 {
     return(Number.FormatDecimal(this, null, null));
 }