[System.Security.SecuritySafeCritical] // auto-generated public override String ToString() { Contract.Ensures(Contract.Result <String>() != null); return(FormatProvider.FormatUInt32(_value, null, null)); }
public static float Parse(String s, NumberStyles style, IFormatProvider provider) { Decimal.ValidateParseStyleFloatingPoint(style); return(FormatProvider.ParseSingle(s, style, provider)); }
[System.Security.SecuritySafeCritical] // auto-generated public String ToString(String format, IFormatProvider provider) { Contract.Ensures(Contract.Result <String>() != null); return(FormatProvider.FormatUInt32(_value, format, provider)); }
public String ToString(IFormatProvider provider) { Contract.Ensures(Contract.Result <String>() != null); return(FormatProvider.FormatSingle(_value, null, provider)); }
public String ToString(String format) { Contract.Ensures(Contract.Result <String>() != null); return(FormatProvider.FormatSingle(_value, format, null)); }
public static Boolean TryParse(String s, out Decimal result) { return(FormatProvider.TryParseDecimal(s, NumberStyles.Number, null, out result)); }
public static Boolean TryParse(String s, NumberStyles style, IFormatProvider provider, out Decimal result) { ValidateParseStyleFloatingPoint(style); return(FormatProvider.TryParseDecimal(s, style, provider, out result)); }
public static Decimal Parse(String s, IFormatProvider provider) { return(FormatProvider.ParseDecimal(s, NumberStyles.Number, provider)); }
public static Decimal Parse(String s, NumberStyles style) { ValidateParseStyleFloatingPoint(style); return(FormatProvider.ParseDecimal(s, style, null)); }
// 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)); }
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)); }