Esempio n. 1
0
 [System.Security.SecuritySafeCritical]  // auto-generated
 public override String ToString()
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(FormatProvider.FormatUInt32(_value, null, null));
 }
Esempio n. 2
0
 public static float Parse(String s, NumberStyles style, IFormatProvider provider)
 {
     Decimal.ValidateParseStyleFloatingPoint(style);
     return(FormatProvider.ParseSingle(s, style, provider));
 }
Esempio n. 3
0
 [System.Security.SecuritySafeCritical]  // auto-generated
 public String ToString(String format, IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(FormatProvider.FormatUInt32(_value, format, provider));
 }
Esempio n. 4
0
 public String ToString(IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(FormatProvider.FormatSingle(_value, null, provider));
 }
Esempio n. 5
0
 public String ToString(String format)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(FormatProvider.FormatSingle(_value, format, null));
 }
Esempio n. 6
0
 public static Boolean TryParse(String s, out Decimal result)
 {
     return(FormatProvider.TryParseDecimal(s, NumberStyles.Number, null, out result));
 }
Esempio n. 7
0
 public static Boolean TryParse(String s, NumberStyles style, IFormatProvider provider, out Decimal result)
 {
     ValidateParseStyleFloatingPoint(style);
     return(FormatProvider.TryParseDecimal(s, style, provider, out result));
 }
Esempio n. 8
0
 public static Decimal Parse(String s, IFormatProvider provider)
 {
     return(FormatProvider.ParseDecimal(s, NumberStyles.Number, provider));
 }
Esempio n. 9
0
 public static Decimal Parse(String s, NumberStyles style)
 {
     ValidateParseStyleFloatingPoint(style);
     return(FormatProvider.ParseDecimal(s, style, null));
 }
Esempio n. 10
0
 // Converts a string to a Decimal. The string must consist of an optional
 // minus sign ("-") followed by a sequence of digits ("0" - "9"). The
 // sequence of digits may optionally contain a single decimal point (".")
 // character. Leading and trailing whitespace characters are allowed.
 // Parse also allows a currency symbol, a trailing negative sign, and
 // parentheses in the number.
 //
 public static Decimal Parse(String s)
 {
     return(FormatProvider.ParseDecimal(s, NumberStyles.Number, null));
 }
Esempio n. 11
0
 public String ToString(String format, IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(FormatProvider.FormatDecimal(this, format, provider));
 }
Esempio n. 12
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));
 }