52 references to AllowDecimalPoint
dotnet-svcutil-lib (7)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (7)
954return Decimal.Parse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 959if (!Decimal.TryParse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) 1137float f = Single.Parse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo); 1158else if (!Single.TryParse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo, out result)) 1178double dVal = Double.Parse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1199else if (!Double.TryParse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo, out result)) 1219if (Double.TryParse(str, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out d))
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\MediaType.cs (1)
281parameter.Value.AsSpan(), NumberStyles.AllowDecimalPoint,
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (1)
133var binder = GetBinder(NumberStyles.Float & ~NumberStyles.AllowDecimalPoint);
Microsoft.Build (4)
BackEnd\Components\Scheduler\Scheduler.cs (1)
927if (!Double.TryParse(multiplier, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out convertedMultiplier) || convertedMultiplier < 1)
ConversionUtilities.cs (2)
132return Double.Parse(number, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat); 205return Double.TryParse(number, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out value) && !double.IsInfinity(value);
Tracing.cs (1)
62if (!String.IsNullOrEmpty(val) && System.Double.TryParse(val, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out seconds))
Microsoft.Build.Tasks.Core (3)
ConversionUtilities.cs (2)
132return Double.Parse(number, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat); 205return Double.TryParse(number, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out value) && !double.IsInfinity(value);
Tracing.cs (1)
62if (!String.IsNullOrEmpty(val) && System.Double.TryParse(val, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out seconds))
Microsoft.Build.Utilities.Core (1)
Tracing.cs (1)
62if (!String.IsNullOrEmpty(val) && System.Double.TryParse(val, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out seconds))
Microsoft.Build.Utilities.UnitTests (2)
ConversionUtilities.cs (2)
132return Double.Parse(number, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat); 205return Double.TryParse(number, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out value) && !double.IsInfinity(value);
Microsoft.CodeAnalysis.CSharp (1)
Parser\Lexer.cs (1)
1275if (!decimal.TryParse(text, NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, CultureInfo.InvariantCulture, out result))
Microsoft.CodeAnalysis.VisualBasic (1)
Scanner\Scanner.vb (1)
2154Return Decimal.TryParse(text, NumberStyles.AllowDecimalPoint Or NumberStyles.AllowExponent, CultureInfo.InvariantCulture, value)
Microsoft.ML.Transforms (2)
Expression\Lexer.cs (2)
374double dbl = double.Parse(_sb.ToString(), NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent); 385double dbl = double.Parse(_sb.ToString(), NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent);
Microsoft.VisualBasic.Core (6)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (3)
1499NumberStyles.AllowDecimalPoint Or 1889NumberStyles.AllowDecimalPoint Or 1942NumberStyles.AllowDecimalPoint Or
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (1)
122NumberStyles.AllowDecimalPoint Or
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (2)
145NumberStyles.AllowDecimalPoint Or 201NumberStyles.AllowDecimalPoint Or
MSBuild (2)
ConversionUtilities.cs (2)
132return Double.Parse(number, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat); 205return Double.TryParse(number, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out value) && !double.IsInfinity(value);
PresentationCore (2)
MS\Internal\FontFace\CompositeFontParser.cs (1)
143NumberStyles.AllowDecimalPoint;
System\Windows\Media\CharacterMetrics.cs (1)
160NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign,
System.Data.Common (1)
System\Data\SQLTypes\SQLMoney.cs (1)
229NumberStyles.AllowDecimalPoint |
System.Net.Http (2)
System\Net\Http\Headers\HeaderUtilities.cs (1)
132if (double.TryParse(qualityParameter.Value, NumberStyles.AllowDecimalPoint,
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (1)
162if (!double.TryParse(input.AsSpan(current, qualityLength), NumberStyles.AllowDecimalPoint,
System.Private.CoreLib (6)
src\libraries\Common\src\System\Number.Parsing.Common.cs (1)
151else if (((styles & NumberStyles.AllowDecimalPoint) != 0) && ((state & StateDecimal) == 0) && ((next = MatchChars(p, strEnd, decSep)) != null || (parsingCurrency && (state & StateCurrency) == 0 && (next = MatchChars(p, strEnd, info.NumberDecimalSeparatorTChar<TChar>())) != null)))
src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (1)
805| NumberStyles.AllowParentheses | NumberStyles.AllowDecimalPoint
src\libraries\System.Private.CoreLib\src\System\Globalization\NumberStyles.cs (4)
71AllowDecimalPoint | AllowThousands, 74AllowDecimalPoint | AllowExponent, 77AllowParentheses | AllowDecimalPoint | AllowThousands | AllowCurrencySymbol, 80AllowParentheses | AllowDecimalPoint | AllowThousands | AllowCurrencySymbol | AllowExponent,
System.Private.Xml (7)
System\Xml\XmlConvert.cs (7)
802return decimal.Parse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 807if (!decimal.TryParse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) 966float f = float.Parse(value, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo); 988if (!float.TryParse(value, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo, out result)) 1013double dVal = double.Parse(value, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1035if (!double.TryParse(value, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo, out result)) 1060if (double.TryParse(value, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out double d))
System.Runtime.Numerics (3)
src\libraries\Common\src\System\Number.Parsing.Common.cs (1)
151else if (((styles & NumberStyles.AllowDecimalPoint) != 0) && ((state & StateDecimal) == 0) && ((next = MatchChars(p, strEnd, decSep)) != null || (parsingCurrency && (state & StateCurrency) == 0 && (next = MatchChars(p, strEnd, info.NumberDecimalSeparatorTChar<TChar>())) != null)))
System\Number.BigInteger.cs (1)
23| NumberStyles.AllowParentheses | NumberStyles.AllowDecimalPoint
System\Numerics\Complex.cs (1)
29| NumberStyles.AllowParentheses | NumberStyles.AllowDecimalPoint