588 references to NumberStyles
mscorlib (168)
system\byte.cs (8)
92return Parse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 96public static byte Parse(String s, NumberStyles style) { 103return Parse(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 111public static byte Parse(String s, NumberStyles style, IFormatProvider provider) { 116private static byte Parse(String s, NumberStyles style, NumberFormatInfo info) { 130return TryParse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 133public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out Byte result) { 138private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out Byte result) {
system\convert.cs (13)
694return SByte.Parse(value, NumberStyles.Integer, provider); 797return Byte.Parse(value, NumberStyles.Integer, provider); 896return Int16.Parse(value, NumberStyles.Integer, provider); 1010return UInt16.Parse(value, NumberStyles.Integer, provider); 1121return Int32.Parse(value, NumberStyles.Integer, provider); 1238return UInt32.Parse(value, NumberStyles.Integer, provider); 1329return Int64.Parse(value, NumberStyles.Integer, provider); 1437return UInt64.Parse(value, NumberStyles.Integer, provider); 1520return Single.Parse(value, NumberStyles.Float | NumberStyles.AllowThousands, provider); 1609return Double.Parse(value, NumberStyles.Float | NumberStyles.AllowThousands, provider); 1691return Decimal.Parse(value, NumberStyles.Number, provider);
system\decimal.cs (6)
531return Number.ParseDecimal(s, NumberStyles.Number, NumberFormatInfo.CurrentInfo); 534public static Decimal Parse(String s, NumberStyles style) { 540return Number.ParseDecimal(s, NumberStyles.Number, NumberFormatInfo.GetInstance(provider)); 543public static Decimal Parse(String s, NumberStyles style, IFormatProvider provider) { 549return Number.TryParseDecimal(s, NumberStyles.Number, NumberFormatInfo.CurrentInfo, out result); 552public static Boolean TryParse(String s, NumberStyles style, IFormatProvider provider, out Decimal result) {
system\double.cs (11)
236return Parse(s, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.CurrentInfo); 239public static double Parse(String s, NumberStyles style) { 245return Parse(s, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.GetInstance(provider)); 248public static double Parse(String s, NumberStyles style, IFormatProvider provider) { 261private static double Parse(String s, NumberStyles style, NumberFormatInfo info) { 266return TryParse(s, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.CurrentInfo, out result); 269public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out double result) { 274private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out double result) {
system\globalization\japanesecalendar.cs (3)
296if (!Number.TryParseInt32(value.Substring(0,4), NumberStyles.None, NumberFormatInfo.InvariantInfo, out year) || 297!Number.TryParseInt32(value.Substring(5,2), NumberStyles.None, NumberFormatInfo.InvariantInfo, out month) || 298!Number.TryParseInt32(value.Substring(8,2), NumberStyles.None, NumberFormatInfo.InvariantInfo, out day))
system\globalization\numberformatinfo.cs (16)
812private const NumberStyles InvalidNumberStyles = ~(NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite 813| NumberStyles.AllowLeadingSign | NumberStyles.AllowTrailingSign 814| NumberStyles.AllowParentheses | NumberStyles.AllowDecimalPoint 815| NumberStyles.AllowThousands | NumberStyles.AllowExponent 816| NumberStyles.AllowCurrencySymbol | NumberStyles.AllowHexSpecifier); 818internal static void ValidateParseStyleInteger(NumberStyles style) { 824if ((style & NumberStyles.AllowHexSpecifier) != 0) { // Check for hex number 825if ((style & ~NumberStyles.HexNumber) != 0) { 831internal static void ValidateParseStyleFloatingPoint(NumberStyles style) { 837if ((style & NumberStyles.AllowHexSpecifier) != 0) { // Check for hex number
system\int16.cs (10)
118return Parse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 121public static short Parse(String s, NumberStyles style) { 127return Parse(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 130public static short Parse(String s, NumberStyles style, IFormatProvider provider) { 135private static short Parse(String s, NumberStyles style, NumberFormatInfo info) { 147if ((style & NumberStyles.AllowHexSpecifier) != 0) { // We are parsing a hexadecimal number 159return TryParse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 162public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out Int16 result) { 167private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out Int16 result) { 177if ((style & NumberStyles.AllowHexSpecifier) != 0) { // We are parsing a hexadecimal number
system\int32.cs (6)
120return Number.ParseInt32(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 124public static int Parse(String s, NumberStyles style) { 135return Number.ParseInt32(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 143public static int Parse(String s, NumberStyles style, IFormatProvider provider) { 153return Number.TryParseInt32(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 160public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out Int32 result) {
system\int64.cs (6)
114return Number.ParseInt64(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 117public static long Parse(String s, NumberStyles style) { 123return Number.ParseInt64(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 131public static long Parse(String s, NumberStyles style, IFormatProvider provider) { 137return Number.TryParseInt64(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 140public static Boolean TryParse(String s, NumberStyles style, IFormatProvider provider, out Int64 result) {
system\number.cs (37)
649internal unsafe static Decimal ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) { 664internal unsafe static Double ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) { 698internal unsafe static Int32 ParseInt32(String s, NumberStyles style, NumberFormatInfo info) { 706if ((style & NumberStyles.AllowHexSpecifier) != 0) { 720internal unsafe static Int64 ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt) { 727if ((options & NumberStyles.AllowHexSpecifier) != 0) { 741private unsafe static Boolean ParseNumber(ref char * str, NumberStyles options, ref NumberBuffer number, StringBuilder sb, NumberFormatInfo numfmt, Boolean parseDecimal) { 763if ((options & NumberStyles.AllowCurrencySymbol) != 0) { 784Boolean bigNumberHex = (bigNumber && ((options & NumberStyles.AllowHexSpecifier) != 0)); 794if (IsWhite(ch) && ((options & NumberStyles.AllowLeadingWhite) != 0) && (((state & StateSign) == 0) || (((state & StateSign) != 0) && (((state & StateCurrency) != 0) || numfmt.numberNegativePattern == 2)))) { 797else if ((signflag = (((options & NumberStyles.AllowLeadingSign) != 0) && ((state & StateSign) == 0))) && ((next = MatchChars(p, numfmt.positiveSign)) != null)) { 805else if (ch == '(' && ((options & NumberStyles.AllowParentheses) != 0) && ((state & StateSign) == 0)) { 825if ((ch >= '0' && ch <= '9') || (((options & NumberStyles.AllowHexSpecifier) != 0) && ((ch >= 'a' && ch <= 'f') || (ch >= 'A' && ch <= 'F')))) { 847else if (((options & NumberStyles.AllowDecimalPoint) != 0) && ((state & StateDecimal) == 0) && ((next = MatchChars(p, decSep)) != null || ((parsingCurrency) && (state & StateCurrency) == 0) && (next = MatchChars(p, altdecSep)) != null)) { 851else if (((options & NumberStyles.AllowThousands) != 0) && ((state & StateDigits) != 0) && ((state & StateDecimal) == 0) && ((next = MatchChars(p, groupSep)) != null || ((parsingCurrency) && (state & StateCurrency) == 0) && (next = MatchChars(p, altgroupSep)) != null)) { 867if ((ch == 'E' || ch == 'e') && ((options & NumberStyles.AllowExponent) != 0)) { 900if (IsWhite(ch) && ((options & NumberStyles.AllowTrailingWhite) != 0)) { 902else if ((signflag = (((options & NumberStyles.AllowTrailingSign) != 0) && ((state & StateSign) == 0))) && (next = MatchChars(p, numfmt.positiveSign)) != null) { 941internal unsafe static Single ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt) { 978internal unsafe static UInt32 ParseUInt32(String value, NumberStyles options, NumberFormatInfo numfmt) { 986if ((options & NumberStyles.AllowHexSpecifier) != 0) { 1001internal unsafe static UInt64 ParseUInt64(String value, NumberStyles options, NumberFormatInfo numfmt) { 1007if ((options & NumberStyles.AllowHexSpecifier) != 0) { 1021private unsafe static void StringToNumber(String str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo info, Boolean parseDecimal) { 1048internal unsafe static Boolean TryParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt, out Decimal result) { 1065internal unsafe static Boolean TryParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt, out Double result) { 1081internal unsafe static Boolean TryParseInt32(String s, NumberStyles style, NumberFormatInfo info, out Int32 result) { 1091if ((style & NumberStyles.AllowHexSpecifier) != 0) { 1105internal unsafe static Boolean TryParseInt64(String s, NumberStyles style, NumberFormatInfo info, out Int64 result) { 1115if ((style & NumberStyles.AllowHexSpecifier) != 0) { 1129internal unsafe static Boolean TryParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt, out Single result) { 1151internal unsafe static Boolean TryParseUInt32(String s, NumberStyles style, NumberFormatInfo info, out UInt32 result) { 1161if ((style & NumberStyles.AllowHexSpecifier) != 0) { 1175internal unsafe static Boolean TryParseUInt64(String s, NumberStyles style, NumberFormatInfo info, out UInt64 result) { 1185if ((style & NumberStyles.AllowHexSpecifier) != 0) { 1198internal static Boolean TryStringToNumber(String str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo numfmt, Boolean parseDecimal) { 1204internal unsafe static Boolean TryStringToNumber(String str, NumberStyles options, ref NumberBuffer number, StringBuilder sb, NumberFormatInfo numfmt, Boolean parseDecimal) {
system\runtime\remoting\soapinteroptypes.cs (6)
978b = Byte.Parse(s, NumberStyles.HexNumber, CultureInfo.InvariantCulture); 1103return new SoapInteger(Decimal.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture)); 1166return new SoapPositiveInteger(Decimal.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture)); 1228return new SoapNonPositiveInteger(Decimal.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture)); 1290return new SoapNonNegativeInteger(Decimal.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture)); 1352return new SoapNegativeInteger(Decimal.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture));
system\sbyte.cs (10)
121return Parse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 125public static sbyte Parse(String s, NumberStyles style) { 132return Parse(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 140public static sbyte Parse(String s, NumberStyles style, IFormatProvider provider) { 145private static sbyte Parse(String s, NumberStyles style, NumberFormatInfo info) { 155if ((style & NumberStyles.AllowHexSpecifier) != 0) { // We are parsing a hexadecimal number 168return TryParse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 172public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out SByte result) { 177private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out SByte result) { 185if ((style & NumberStyles.AllowHexSpecifier) != 0) { // We are parsing a hexadecimal number
system\security\claims\ClaimsPrincipal.cs (1)
410if (Int64.TryParse(listOfIdentities[i], NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out handle))
system\single.cs (11)
212return Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, NumberFormatInfo.CurrentInfo); 215public static float Parse(String s, NumberStyles style) { 221return Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, NumberFormatInfo.GetInstance(provider)); 224public static float Parse(String s, NumberStyles style, IFormatProvider provider) { 229private static float Parse(String s, NumberStyles style, NumberFormatInfo info) { 234return TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, NumberFormatInfo.CurrentInfo, out result); 237public static Boolean TryParse(String s, NumberStyles style, IFormatProvider provider, out Single result) { 242private static Boolean TryParse(String s, NumberStyles style, NumberFormatInfo info, out Single result) {
system\timezoneinfo.cs (2)
2604if (!Int32.TryParse(resources[1], NumberStyles.Integer, CultureInfo.InvariantCulture, out resourceId)) { 3918if (!Int32.TryParse(token, NumberStyles.AllowLeadingSign /* "[sign]digits" */, CultureInfo.InvariantCulture, out value)) {
system\uint16.cs (8)
108return Parse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 112public static ushort Parse(String s, NumberStyles style) { 120return Parse(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 124public static ushort Parse(String s, NumberStyles style, IFormatProvider provider) { 129private static ushort Parse(String s, NumberStyles style, NumberFormatInfo info) { 145return TryParse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 149public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out UInt16 result) { 154private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out UInt16 result) {
system\uint32.cs (6)
118return Number.ParseUInt32(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 122public static uint Parse(String s, NumberStyles style) { 130return Number.ParseUInt32(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 134public static uint Parse(String s, NumberStyles style, IFormatProvider provider) { 141return Number.TryParseUInt32(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 145public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out UInt32 result) {
system\uint64.cs (6)
114return Number.ParseUInt64(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 118public static ulong Parse(String s, NumberStyles style) { 125return Number.ParseUInt64(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 129public static ulong Parse(String s, NumberStyles style, IFormatProvider provider) { 136return Number.TryParseUInt64(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 140public static Boolean TryParse(String s, NumberStyles style, IFormatProvider provider, out UInt64 result) {
system\version.cs (2)
20using NumberStyles = System.Globalization.NumberStyles; 425if (!Int32.TryParse(component, NumberStyles.Integer, CultureInfo.InvariantCulture, out parsedComponent)) {
PresentationCore (15)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
661NumberStyles.None,
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (6)
155private const NumberStyles UnsignedDecimalPointStyle = 156NumberStyles.AllowTrailingWhite | 157NumberStyles.AllowLeadingWhite | 158NumberStyles.AllowDecimalPoint; 160private const NumberStyles SignedDecimalPointStyle = UnsignedDecimalPointStyle | NumberStyles.AllowLeadingSign;
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (3)
884NumberStyles.None, NumberFormatInfo.InvariantInfo); 896int lastByteOffset = Int32.Parse(contentRange.Substring(0, index), NumberStyles.None, NumberFormatInfo.InvariantInfo); 907Int32.Parse(contentRange, NumberStyles.None, NumberFormatInfo.InvariantInfo);
Core\CSharp\System\Windows\FontStretches.cs (1)
145if (int.TryParse(s, NumberStyles.Integer, provider, out stretchValue))
Core\CSharp\System\Windows\FontWeights.cs (1)
208if (int.TryParse(s, NumberStyles.Integer, provider, out weightValue))
Core\CSharp\System\Windows\Media\CharacterMetrics.cs (2)
176NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign,
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (1)
693keyToken[i] = byte.Parse(byteString, NumberStyles.HexNumber, CultureInfo.InvariantCulture);
PresentationFramework (10)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (2)
216new Type[] {StringType, typeof(System.Globalization.NumberStyles), typeof(System.IFormatProvider)}, 220result = mi.Invoke(null, new object [] {stringValue, NumberStyles.Any, culture});
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (2)
1396NumberStyles.Integer, 1497NumberStyles.Integer,
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
11878if (Int32.TryParse(a[1], NumberStyles.Integer, CultureInfo.InvariantCulture, out flushDepth)) 11887if (Int32.TryParse(a[2], NumberStyles.Integer, CultureInfo.InvariantCulture, out luThreshold))
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (1)
308i = System.Int32.Parse(s, System.Globalization.NumberStyles.AllowHexSpecifier, CultureInfo.InvariantCulture);
src\Framework\System\Windows\PropertyPath.cs (2)
721NumberStyles.Integer, 930NumberStyles.Integer,
src\Framework\System\Windows\PropertyPathConverter.cs (1)
208NumberStyles.Integer,
System (28)
compmod\system\componentmodel\ByteConverter.cs (1)
47return Byte.Parse(value, NumberStyles.Integer, formatInfo);
compmod\system\componentmodel\DecimalConverter.cs (1)
98return Decimal.Parse(value, NumberStyles.Float, formatInfo);
compmod\system\componentmodel\DoubleConverter.cs (1)
58return Double.Parse(value, NumberStyles.Float, formatInfo);
compmod\system\componentmodel\Int16Converter.cs (1)
53return Int16.Parse(value, NumberStyles.Integer, formatInfo);
compmod\system\componentmodel\Int32Converter.cs (1)
45return Int32.Parse(value, NumberStyles.Integer, formatInfo);
compmod\system\componentmodel\Int64Converter.cs (1)
46return Int64.Parse(value, NumberStyles.Integer, formatInfo);
compmod\system\componentmodel\SByteConverter.cs (1)
47return SByte.Parse(value, NumberStyles.Integer, formatInfo);
compmod\system\componentmodel\SingleConverter.cs (1)
57return Single.Parse(value, NumberStyles.Float, formatInfo);
compmod\system\componentmodel\UInt16Converter.cs (1)
46return UInt16.Parse(value, NumberStyles.Integer, formatInfo);
compmod\system\componentmodel\UInt32Converter.cs (1)
47return UInt32.Parse(value, NumberStyles.Integer, formatInfo);
compmod\system\componentmodel\UInt64Converter.cs (1)
49return UInt64.Parse(value, NumberStyles.Integer, formatInfo);
net\System\Net\_Connection.cs (2)
2196bool success = long.TryParse(contentLengthString, NumberStyles.None, CultureInfo.InvariantCulture.NumberFormat, out contentLength); 2205success = long.TryParse(contentLengthString, NumberStyles.None, CultureInfo.InvariantCulture.NumberFormat, out contentLength);
net\System\Net\_ConnectStream.cs (1)
2984if (int.TryParse(appSetting, NumberStyles.None, CultureInfo.InvariantCulture,
net\System\Net\_FtpControlStream.cs (2)
997NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite,
net\System\Net\HttpListenerRequest.cs (1)
403bool success = long.TryParse(length, NumberStyles.None, CultureInfo.InvariantCulture.NumberFormat, out m_ContentLength);
net\System\Net\HttpListenerRequestUriBuilder.cs (2)
297if (!int.TryParse(codePoint, NumberStyles.HexNumber, null, out codePointValue)) 330if (!byte.TryParse(escapedCharacter, NumberStyles.HexNumber, null, out encodedValue))
net\System\Net\IPAddress.cs (1)
252if (UInt32.TryParse(scopeId, NumberStyles.None, null, out result))
net\System\Net\mail\ContentDisposition.cs (1)
46NumberStyles.None, CultureInfo.InvariantCulture, out longValue))
net\System\Net\mail\SmtpDateTime.cs (2)
240if (!Int32.TryParse(offset.Substring(1, 2), NumberStyles.None, 246if (!Int32.TryParse(offset.Substring(3, 2), NumberStyles.None,
net\System\Net\WebUtility.cs (2)
201parsedSuccessfully = UInt32.TryParse(entity.Substring(2), NumberStyles.AllowHexSpecifier, NumberFormatInfo.InvariantInfo, out parsedValue); 204parsedSuccessfully = UInt32.TryParse(entity.Substring(1), NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out parsedValue);
security\system\security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
148if (!UInt16.TryParse(port, NumberStyles.Integer, CultureInfo.InvariantCulture, out portValue))
services\monitoring\system\diagnosticts\EventLog.cs (1)
1257if (Int32.TryParse(sb.ToString(), NumberStyles.None, CultureInfo.InvariantCulture, out num)) {
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (1)
1024if (!Int32.TryParse(names[index * 2], NumberStyles.Integer, CultureInfo.InvariantCulture, out key)) {
System.Activities (4)
System\Activities\Statements\MethodResolver.cs (1)
120if (int.TryParse(name.Substring(paramArrayBaseName.Length), NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out n))
System\Activities\XamlIntegration\DynamicUpdateMapItemConverter.cs (3)
29if (int.TryParse(strArray[0], NumberStyles.Integer, culture, out result1)) 36if (int.TryParse(strArray[0], NumberStyles.Integer, culture, out result1) && int.TryParse(strArray[1], NumberStyles.Integer, culture, out result2))
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
1204if (!double.TryParse(stateString, NumberStyles.Float, CultureInfo.InvariantCulture, out percentage))
System.Data (28)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
1204if (!double.TryParse(stateString, NumberStyles.Float, CultureInfo.InvariantCulture, out percentage))
fx\src\data\System\Data\Common\AdapterUtil.cs (4)
2241major = Int32.Parse(parts[0], NumberStyles.None, CultureInfo.InvariantCulture); 2242minor = Int32.Parse(parts[1], NumberStyles.None, CultureInfo.InvariantCulture); 2243build = Int32.Parse(parts[2], NumberStyles.None, CultureInfo.InvariantCulture); 2244Int32.Parse(parts[3], NumberStyles.None, CultureInfo.InvariantCulture);
fx\src\data\System\Data\Common\DbConnectionOptions.cs (1)
341return System.Int32.Parse(stringValue, System.Globalization.NumberStyles.Integer, CultureInfo.InvariantCulture);
fx\src\data\System\Data\Filter\ConstNode.cs (7)
110if (Decimal.TryParse(sval, NumberStyles.Number, NumberFormatInfo.InvariantInfo, out r12)) { 115if (Double.TryParse(sval, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.InvariantInfo, out r8)) { 166if (Int32.TryParse(sval, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out i4)) { 170if (Int64.TryParse(sval, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out i8)) { 174if (Double.TryParse(sval, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.InvariantInfo, out r8)) {
fx\src\data\System\Data\OleDb\OleDbParameter.cs (1)
417value = Decimal.Parse((string)value, NumberStyles.Currency, (IFormatProvider)null); // WebData 99376
fx\src\data\System\Data\SqlClient\SqlParameter.cs (1)
944value = Decimal.Parse((string)value, NumberStyles.Currency, (IFormatProvider)null); // WebData 99376
fx\src\data\System\Data\SqlClient\TdsParser.cs (3)
2410_defaultCodePage = Int32.Parse(stringCodePage, NumberStyles.Integer, CultureInfo.InvariantCulture); 2425Int32 packetSize = Int32.Parse(env.newValue, NumberStyles.Integer, CultureInfo.InvariantCulture); 2447_defaultLCID = Int32.Parse(env.newValue, NumberStyles.Integer, CultureInfo.InvariantCulture);
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (10)
267const NumberStyles SqlNumberStyle = 268NumberStyles.AllowCurrencySymbol | 269NumberStyles.AllowDecimalPoint | 270NumberStyles.AllowParentheses | 271NumberStyles.AllowTrailingSign | 272NumberStyles.AllowLeadingSign | 273NumberStyles.AllowTrailingWhite | 274NumberStyles.AllowLeadingWhite; 283money = new SqlMoney(Decimal.Parse(s, NumberStyles.Currency, NumberFormatInfo.CurrentInfo)); 421return x.IsNull ? Null : new SqlMoney(Decimal.Parse(x.Value,NumberStyles.Currency,null));
System.Data.Entity (31)
System\Data\Common\EntitySql\AST\Literal.cs (19)
267if (!UInt32.TryParse(numberPart, NumberStyles.Integer, CultureInfo.InvariantCulture, out value)) 278if (!Int64.TryParse(numberPart, NumberStyles.Integer, CultureInfo.InvariantCulture, out value)) 290if (!UInt64.TryParse(numberPart, NumberStyles.Integer, CultureInfo.InvariantCulture, out value)) 301if (!Single.TryParse(numberPart, NumberStyles.Float, CultureInfo.InvariantCulture, out value)) 312if (!Decimal.TryParse(numberPart, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out value)) 323if (!Double.TryParse(numberPart, NumberStyles.Float, CultureInfo.InvariantCulture, out value)) 349if (!Double.TryParse(numericString, NumberStyles.Float, CultureInfo.InvariantCulture, out value)) 359if (Int32.TryParse(numericString, NumberStyles.Integer, CultureInfo.InvariantCulture, out int32Value)) 365if (!Int64.TryParse(numericString, NumberStyles.Integer, CultureInfo.InvariantCulture, out int64Value)) 552int offsetHours = Int32.Parse(datetimeParts[datetimeParts.Length - 2], NumberStyles.Integer, CultureInfo.InvariantCulture); 553int offsetMinutes = Int32.Parse(datetimeParts[datetimeParts.Length - 1], NumberStyles.Integer, CultureInfo.InvariantCulture); 600hour = Int32.Parse(datetimeParts[timePartStartIndex], NumberStyles.Integer, CultureInfo.InvariantCulture); 605minute = Int32.Parse(datetimeParts[++timePartStartIndex], NumberStyles.Integer, CultureInfo.InvariantCulture); 615second = Int32.Parse(datetimeParts[timePartStartIndex], NumberStyles.Integer, CultureInfo.InvariantCulture); 625ticks = Int32.Parse(ticksString, NumberStyles.Integer, CultureInfo.InvariantCulture); 633year = Int32.Parse(datetimeParts[0], NumberStyles.Integer, CultureInfo.InvariantCulture); 638month = Int32.Parse(datetimeParts[1], NumberStyles.Integer, CultureInfo.InvariantCulture); 643day = Int32.Parse(datetimeParts[2], NumberStyles.Integer, CultureInfo.InvariantCulture);
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (9)
131if (!Byte.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp)) 143if (!SByte.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp)) 155if (!Int16.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp)) 167if (!Int32.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp)) 179if (!Int64.TryParse(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp)) 191if (!Double.TryParse(text, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out temp)) 203if (!Decimal.TryParse(text, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out temp)) 307bytes[iByte] = byte.Parse(text.Substring(index, inc), System.Globalization.NumberStyles.HexNumber, System.Globalization.CultureInfo.InvariantCulture); 315if (!Single.TryParse(text, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out temp))
System\Data\EntityModel\SchemaObjectModel\SchemaEnumMember.cs (1)
84if (long.TryParse(reader.Value, NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture, out tmpValue))
System\Data\EntityModel\SchemaObjectModel\Utils.cs (2)
273if ( int.TryParse(text,NumberStyles.Integer,System.Globalization.CultureInfo.InvariantCulture,out value) ) 296if (byte.TryParse(text, NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out value))
System.Data.Services (7)
System\Data\Services\DataService.cs (1)
2629if (!Int32.TryParse(contentIdValue, System.Globalization.NumberStyles.Integer, System.Globalization.NumberFormatInfo.InvariantInfo, out contentId))
System\Data\Services\Parsing\WebConvert.cs (1)
462if (Decimal.TryParse(text, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out result))
System\Data\Services\RequestQueryProcessor.cs (1)
1367if (!Int32.TryParse(itemText, NumberStyles.Integer, CultureInfo.InvariantCulture, out count))
System\Data\Services\Serializers\JsonReader.cs (4)
90if (long.TryParse(ticksStr, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out ticks)) 349if (Int32.TryParse(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out intValue)) 353else if (Double.TryParse(s, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out doubleValue)) 457ch = (char)Int32.Parse(unicodeSequence, NumberStyles.HexNumber, CultureInfo.InvariantCulture);
System.Data.Services.Client (3)
System\Data\Services\Client\AtomParser.cs (1)
994if (!long.TryParse(MaterializeAtom.ReadElementString(this.reader, true), System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out countValue))
System\Data\Services\Client\DataServiceContext.cs (1)
5682!Int32.TryParse(contentValueID, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out contentID))
System\Data\Services\Client\MaterializeFromAtom.cs (1)
518if (!long.TryParse(countNode.Value, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out this.countValue))
System.Data.SqlXml (1)
System\Xml\Xsl\Xslt\Scripts.cs (1)
375if (int.TryParse(fileName.Substring(idx + 1), NumberStyles.None, NumberFormatInfo.InvariantInfo, out scriptNumber))
System.Numerics (23)
System\Numerics\BigInteger.cs (6)
810return BigNumber.ParseBigInteger(value, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 813public static BigInteger Parse(String value, NumberStyles style) { 818return BigNumber.ParseBigInteger(value, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 821 public static BigInteger Parse(String value, NumberStyles style, IFormatProvider provider) { 826return BigNumber.TryParseBigInteger(value, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 829public static Boolean TryParse(String value, NumberStyles style, IFormatProvider provider, out BigInteger result) {
System\Numerics\BigNumber.cs (17)
286private const NumberStyles InvalidNumberStyles = ~(NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite 287| NumberStyles.AllowLeadingSign | NumberStyles.AllowTrailingSign 288| NumberStyles.AllowParentheses | NumberStyles.AllowDecimalPoint 289| NumberStyles.AllowThousands | NumberStyles.AllowExponent 290| NumberStyles.AllowCurrencySymbol | NumberStyles.AllowHexSpecifier); 305internal static bool TryValidateParseStyleInteger(NumberStyles style, out ArgumentException e) { 311if ((style & NumberStyles.AllowHexSpecifier) != 0) { // Check for hex number 312if ((style & ~NumberStyles.HexNumber) != 0) { 322internal unsafe static Boolean TryParseBigInteger(String value, NumberStyles style, NumberFormatInfo info, out BigInteger result) { 340if ((style & NumberStyles.AllowHexSpecifier) != 0) { 353internal unsafe static BigInteger ParseBigInteger(String value, NumberStyles style, NumberFormatInfo info) {
System.Runtime.Serialization (13)
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (3)
74if (Int32.TryParse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out intValue)) 81if (Int64.TryParse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out longValue)) 89if (Decimal.TryParse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out decimalValue))
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
316return ulong.Parse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo); 354return ulong.Parse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo);
System\Runtime\Serialization\Json\XmlJsonReader.cs (8)
693return decimal.Parse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo); 711return ParseInt(ReadContentAsString(), NumberStyles.Float); 719return long.Parse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo); 1001static char ParseChar(string value, NumberStyles style) 1014static int ParseInt(string value, NumberStyles style) 1278int charValue = ParseChar(bufferAsString, NumberStyles.HexNumber); 1289char lowChar = ParseChar(bufferAsString, NumberStyles.HexNumber); 1686sb.Append(ParseChar(val.Substring(i + 1, 4), NumberStyles.HexNumber));
System.ServiceModel (7)
System\ServiceModel\Channels\BaseUriWithWildcard.cs (1)
63!int.TryParse(portString, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out port))
System\ServiceModel\ComIntegration\TypeCacheManager.cs (3)
110NumberStyles numberStyle = (parseVersionAsHex) ? NumberStyles.HexNumber : NumberStyles.None;
System\ServiceModel\Dispatcher\QueryModel.cs (3)
576NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowTrailingWhite,
System.ServiceModel.Web (2)
System\ServiceModel\Web\IncomingWebRequestContext.cs (2)
365static NumberStyles numberStyles = NumberStyles.AllowDecimalPoint;
System.Web (30)
Compilation\BuildResult.cs (1)
269Flags = Int32.Parse(s, NumberStyles.AllowHexSpecifier, CultureInfo.InvariantCulture);
Compilation\BuildResultCache.cs (2)
727Int64.TryParse(hashTokens[0], NumberStyles.AllowHexSpecifier, CultureInfo.InvariantCulture, out value1) && 728Int64.TryParse(hashTokens[1], NumberStyles.AllowHexSpecifier, CultureInfo.InvariantCulture, out value2)) {
Compilation\PreservationFileReader.cs (1)
99savedHash = Int64.Parse(hashString, NumberStyles.AllowHexSpecifier, CultureInfo.InvariantCulture);
Configuration\HttpCapabilitiesBase.cs (6)
532NumberStyles.Float | NumberStyles.AllowDecimalPoint, 551NumberStyles.Float | NumberStyles.AllowDecimalPoint, 855NumberStyles.Float | NumberStyles.AllowDecimalPoint,
Handlers\AssemblyResourceLoader.cs (1)
567tokenBytes[i] = Byte.Parse(token.Substring(i * 2, 2), NumberStyles.HexNumber, CultureInfo.InvariantCulture);
Hosting\ApplicationManager.cs (1)
1345publicKey[i] = Byte.Parse(publicKeyString.Substring(i * 2, 2), System.Globalization.NumberStyles.HexNumber, CultureInfo.InvariantCulture);
httpserverutility.cs (5)
1547var flags = NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite | NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign;
OutputCacheModule.cs (3)
446if (Double.TryParse(s, NumberStyles.Float & ~NumberStyles.AllowLeadingSign & ~NumberStyles.AllowExponent, CultureInfo.InvariantCulture, out d)) {
UI\DataBinder.cs (1)
240intIndex = Int32.TryParse(index, NumberStyles.Integer, CultureInfo.InvariantCulture, out parsedIndex);
UI\Page.cs (1)
2160&& UInt32.TryParse(identifier, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out parsedIdentifier)
UI\WebControls\AdRotator.cs (1)
964!int.TryParse(impressionsString, NumberStyles.Integer,
UI\WebControls\GridView.cs (1)
2819return Int32.TryParse(commandArgument, NumberStyles.Integer, CultureInfo.InvariantCulture, out rowIndex);
UI\WebControls\TreeView.cs (1)
3370int populateIndex = Int32.Parse(logParts[i], NumberStyles.Integer, CultureInfo.InvariantCulture);
UI\WebParts\AppearanceEditorPart.cs (4)
103if (Double.TryParse(_height.Value, NumberStyles.Float | NumberStyles.AllowThousands, 135if (Double.TryParse(_width.Value, NumberStyles.Float| NumberStyles.AllowThousands,
UI\WebParts\LayoutEditorPart.cs (1)
112if (Int32.TryParse(_zoneIndex.Text, NumberStyles.Integer, CultureInfo.CurrentCulture, out zoneIndex)) {
System.Web.DataVisualization (58)
Common\Annotation\AnnotationBase.cs (1)
3285if (int.TryParse(pointIndex, NumberStyles.Any, CultureInfo.InvariantCulture, out index))
Common\ChartTypes\BoxPlotChart.cs (2)
1662bool parseSucceed = double.TryParse(boxPercentile, NumberStyles.Any, CultureInfo.InvariantCulture, out percentile); 1680bool parseSucceed = double.TryParse(boxWhiskerPercentile, NumberStyles.Any, CultureInfo.InvariantCulture, out percentile);
Common\ChartTypes\ErrorBarChart.cs (1)
1663if (!double.TryParse(typeName, NumberStyles.Any, CultureInfo.InvariantCulture, out param))
Common\ChartTypes\FastLineChart.cs (1)
287bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.CurrentCulture, out pixelError);
Common\ChartTypes\FastPointChart.cs (1)
288bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.CurrentCulture, out pixelError);
Common\ChartTypes\FunnelChart.cs (5)
2272bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out pointHeight); 2309bool parseSucceed = int.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out a); 2388bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out w); 2407bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out h); 2450bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out gs);
Common\ChartTypes\KagiChart.cs (4)
242parseSucceed = int.TryParse(kagiSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yValPerPoint); 298bool parseSucceed = double.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out percent); 311bool parseSucceed = double.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out amount); 341bool parseSucceed = int.TryParse(series[CustomPropertyName.UsedYValue], NumberStyles.Any, CultureInfo.InvariantCulture, out yi);
Common\ChartTypes\PieChart.cs (4)
294bool parseSucceed = double.TryParse(series[CustomPropertyName.CollectedThreshold], NumberStyles.Any, CultureInfo.InvariantCulture, out t); 710bool parseSucceed = float.TryParse(dataSeries[typeSeries[0]][CustomPropertyName.PieStartAngle], NumberStyles.Any, CultureInfo.InvariantCulture, out angle); 1220bool parseSucceed = float.TryParse(point["InsideLabelOffset"], NumberStyles.Any, CultureInfo.InvariantCulture, out positionRatio); 2395bool parseSucceed = int.TryParse(dataSeries[typeSeries[0]][CustomPropertyName.PieStartAngle], NumberStyles.Any, CultureInfo.InvariantCulture, out angle);
Common\ChartTypes\PointAndFigureChart.cs (4)
275parseSucceed = int.TryParse(pointAndFigureSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yVals); 388parseSucceed = double.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out percent); 398parseSucceed = double.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out b); 470bool parseSucceed = double.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out amount);
Common\ChartTypes\RenkoChart.cs (1)
249parseSucceed = int.TryParse(renkoSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yValsPerPoint);
Common\ChartTypes\ThreeLineBreakChart.cs (1)
250parseSucceed = int.TryParse(threeLineBreakSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yValsPerPoint);
Common\DataManager\DataPoint.cs (6)
1180failed = !int.TryParse(fieldName, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex); 1218failed = !int.TryParse(fieldName, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex); 1264bool parseSucceed = int.TryParse(fieldName, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex); 1390bool parseSucceed = int.TryParse(field, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex); 1432bool parseSucceed = int.TryParse(field, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex); 1473failed = !int.TryParse(field, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex);
Common\DataManager\DataSeries.cs (1)
1426if (Int32.TryParse(dp["OriginalPointIndex"], NumberStyles.Integer, CultureInfo.InvariantCulture, out index))
Common\Formulas\Oscillator.cs (9)
84!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out shortPeriod)) 92!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out longPeriod)) 266!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 277!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out signalPeriod)) 357!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out shortPeriod)) 365!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out longPeriod)) 465!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out periodD)) 476!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out periodK)) 576!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period))
Common\Formulas\TechGeneralIndicators.cs (9)
156!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 288!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 299!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out averagePeriod)) 427!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 483!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 567!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 645!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out shortPeriod)) 656!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out longPeriod)) 735!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period))
Common\Formulas\TimeSeriesAndForecasting.cs (2)
188!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out degree)) 204!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out period))
Common\General\Chart.cs (1)
1389bool parseSucceed = int.TryParse(xField, NumberStyles.Any, CultureInfo.InvariantCulture, out index);
Common\General\CommonElements.cs (5)
293result = double.Parse(stringToParse, NumberStyles.Any, CultureInfo.InvariantCulture); 297bool parseSucceed = double.TryParse(stringToParse, NumberStyles.Any, CultureInfo.InvariantCulture, out result); 300double.TryParse(stringToParse, NumberStyles.Any, CultureInfo.CurrentCulture, out result); 315bool parseSucceed = float.TryParse(stringToParse, NumberStyles.Any, CultureInfo.InvariantCulture, out result); 319float.TryParse(stringToParse, NumberStyles.Any, CultureInfo.CurrentCulture, out result);
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
659if (int.TryParse(components[0].Substring("SRID=".Length), NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture, out srid))
System.Web.Extensions (8)
ClientServices\Providers\ClientData.cs (1)
88long l = long.Parse(s, NumberStyles.HexNumber, CultureInfo.InvariantCulture);
Script\Serialization\JavaScriptObjectDeserializer.cs (5)
237if (Int32.TryParse(input, NumberStyles.Integer, CultureInfo.InvariantCulture, out n)) { 244if (Int64.TryParse(input, NumberStyles.Integer, CultureInfo.InvariantCulture, out l)) { 252if (decimal.TryParse(input, NumberStyles.Number, CultureInfo.InvariantCulture, out dec)) { 261if (Double.TryParse(input, NumberStyles.Float, CultureInfo.InvariantCulture, out d)) { 345sb.Append((char)int.Parse(_s.MoveNext(4), NumberStyles.HexNumber, CultureInfo.InvariantCulture));
UI\WebControls\ListView.cs (1)
2101return Int32.TryParse(commandArgument, NumberStyles.Integer, CultureInfo.InvariantCulture, out itemIndex);
Util\HexParser.cs (1)
16tokenBytes[i] = Byte.Parse(token.Substring(i * 2, 2), NumberStyles.HexNumber, CultureInfo.InvariantCulture);
System.Web.Services (1)
System\Web\Services\Protocols\RequestResponse.cs (1)
227ch = (char)Int32.Parse(entity.Substring(2), NumberStyles.AllowHexSpecifier, CultureInfo.InvariantCulture);
System.Windows.Forms (4)
winforms\Managed\System\WinForms\Formatter.cs (2)
413new Type[] {stringType, typeof(System.Globalization.NumberStyles), typeof(System.IFormatProvider)}, 416return mi.Invoke(null, new object [] {(string) value, NumberStyles.Any, formatInfo});
winforms\Managed\System\WinForms\HtmlDocument.cs (1)
850return Color.FromArgb(255, Color.FromArgb(int.Parse(hexColor, NumberStyles.HexNumber, CultureInfo.InvariantCulture)));
winforms\Managed\System\WinForms\TableLayoutSettingsTypeConverter.cs (1)
228if (!float.TryParse(floatString, NumberStyles.Float, CultureInfo.InvariantCulture.NumberFormat, out width)) {
System.Windows.Forms.DataVisualization (58)
Common\Annotation\AnnotationBase.cs (1)
3285if (int.TryParse(pointIndex, NumberStyles.Any, CultureInfo.InvariantCulture, out index))
Common\ChartTypes\BoxPlotChart.cs (2)
1662bool parseSucceed = double.TryParse(boxPercentile, NumberStyles.Any, CultureInfo.InvariantCulture, out percentile); 1680bool parseSucceed = double.TryParse(boxWhiskerPercentile, NumberStyles.Any, CultureInfo.InvariantCulture, out percentile);
Common\ChartTypes\ErrorBarChart.cs (1)
1663if (!double.TryParse(typeName, NumberStyles.Any, CultureInfo.InvariantCulture, out param))
Common\ChartTypes\FastLineChart.cs (1)
287bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.CurrentCulture, out pixelError);
Common\ChartTypes\FastPointChart.cs (1)
288bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.CurrentCulture, out pixelError);
Common\ChartTypes\FunnelChart.cs (5)
2272bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out pointHeight); 2309bool parseSucceed = int.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out a); 2388bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out w); 2407bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out h); 2450bool parseSucceed = float.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out gs);
Common\ChartTypes\KagiChart.cs (4)
242parseSucceed = int.TryParse(kagiSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yValPerPoint); 298bool parseSucceed = double.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out percent); 311bool parseSucceed = double.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out amount); 341bool parseSucceed = int.TryParse(series[CustomPropertyName.UsedYValue], NumberStyles.Any, CultureInfo.InvariantCulture, out yi);
Common\ChartTypes\PieChart.cs (4)
294bool parseSucceed = double.TryParse(series[CustomPropertyName.CollectedThreshold], NumberStyles.Any, CultureInfo.InvariantCulture, out t); 710bool parseSucceed = float.TryParse(dataSeries[typeSeries[0]][CustomPropertyName.PieStartAngle], NumberStyles.Any, CultureInfo.InvariantCulture, out angle); 1220bool parseSucceed = float.TryParse(point["InsideLabelOffset"], NumberStyles.Any, CultureInfo.InvariantCulture, out positionRatio); 2395bool parseSucceed = int.TryParse(dataSeries[typeSeries[0]][CustomPropertyName.PieStartAngle], NumberStyles.Any, CultureInfo.InvariantCulture, out angle);
Common\ChartTypes\PointAndFigureChart.cs (4)
275parseSucceed = int.TryParse(pointAndFigureSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yVals); 388parseSucceed = double.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out percent); 398parseSucceed = double.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out b); 470bool parseSucceed = double.TryParse(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out amount);
Common\ChartTypes\RenkoChart.cs (1)
249parseSucceed = int.TryParse(renkoSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yValsPerPoint);
Common\ChartTypes\ThreeLineBreakChart.cs (1)
250parseSucceed = int.TryParse(threeLineBreakSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yValsPerPoint);
Common\DataManager\DataPoint.cs (6)
1180failed = !int.TryParse(fieldName, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex); 1218failed = !int.TryParse(fieldName, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex); 1264bool parseSucceed = int.TryParse(fieldName, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex); 1390bool parseSucceed = int.TryParse(field, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex); 1432bool parseSucceed = int.TryParse(field, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex); 1473failed = !int.TryParse(field, NumberStyles.Any, CultureInfo.InvariantCulture, out columnIndex);
Common\DataManager\DataSeries.cs (1)
1426if (Int32.TryParse(dp["OriginalPointIndex"], NumberStyles.Integer, CultureInfo.InvariantCulture, out index))
Common\Formulas\Oscillator.cs (9)
84!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out shortPeriod)) 92!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out longPeriod)) 266!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 277!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out signalPeriod)) 357!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out shortPeriod)) 365!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out longPeriod)) 465!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out periodD)) 476!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out periodK)) 576!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period))
Common\Formulas\TechGeneralIndicators.cs (9)
156!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 288!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 299!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out averagePeriod)) 427!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 483!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 567!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period)) 645!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out shortPeriod)) 656!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out longPeriod)) 735!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out period))
Common\Formulas\TimeSeriesAndForecasting.cs (2)
188!int.TryParse(parameterList[0], NumberStyles.Any, CultureInfo.InvariantCulture, out degree)) 204!int.TryParse(parameterList[1], NumberStyles.Any, CultureInfo.InvariantCulture, out period))
Common\General\Chart.cs (1)
1389bool parseSucceed = int.TryParse(xField, NumberStyles.Any, CultureInfo.InvariantCulture, out index);
Common\General\CommonElements.cs (5)
293result = double.Parse(stringToParse, NumberStyles.Any, CultureInfo.InvariantCulture); 297bool parseSucceed = double.TryParse(stringToParse, NumberStyles.Any, CultureInfo.InvariantCulture, out result); 300double.TryParse(stringToParse, NumberStyles.Any, CultureInfo.CurrentCulture, out result); 315bool parseSucceed = float.TryParse(stringToParse, NumberStyles.Any, CultureInfo.InvariantCulture, out result); 319float.TryParse(stringToParse, NumberStyles.Any, CultureInfo.CurrentCulture, out result);
System.Workflow.Activities (9)
Common\TypeSystemHelpers.cs (1)
236thatToken[i] = Byte.Parse(partValue.Substring(i * 2, 2), NumberStyles.HexNumber, CultureInfo.InvariantCulture);
Rules\Design\Dialogs\RuleSetDialog.cs (2)
519int.TryParse(item1.SubItems[col].Text, NumberStyles.Integer, CultureInfo.CurrentCulture, out val1); 520int.TryParse(item2.SubItems[col].Text, NumberStyles.Integer, CultureInfo.CurrentCulture, out val2);
Rules\Parser\Scanner.cs (6)
598tokenValue = float.Parse(numberString, NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, CultureInfo.InvariantCulture); 611tokenValue = double.Parse(numberString, NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, CultureInfo.InvariantCulture); 624tokenValue = decimal.Parse(numberString, NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, CultureInfo.InvariantCulture);
System.Workflow.ComponentModel (1)
Shared\TypeSystemHelpers.cs (1)
235thatToken[i] = Byte.Parse(partValue.Substring(i * 2, 2), NumberStyles.HexNumber, CultureInfo.InvariantCulture);
System.Workflow.Runtime (1)
Hosting\DefaultWorkflowSchedulerService.cs (1)
73if (!int.TryParse(p, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.CurrentCulture, out maxSimultaneousWorkflows))
System.Xml (73)
System\Xml\Schema\XdrBuilder.cs (2)
1473return UInt32.TryParse(str,NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out n);
System\Xml\XmlConvert.cs (71)
868return Decimal.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 873if (!Decimal.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 880return Decimal.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 884if (!Decimal.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 896return SByte.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 901if (!SByte.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 913return Int16.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 918if (!Int16.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 930return Int32.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 935if (!Int32.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 947return Int64.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 952if (!Int64.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 964return Byte.Parse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 969if (!Byte.TryParse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 982return UInt16.Parse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 987if (!UInt16.TryParse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 1000return UInt32.Parse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1006if (!UInt32.TryParse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 1019return UInt64.Parse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1024if (!UInt64.TryParse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 1039float f = Single.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo); 1057else if (!Single.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo, out result)) { 1075double dVal = Double.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1093else if (!Double.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo, out result)) { 1110if (Double.TryParse(str, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out d)) {
UIAutomationClientsideProviders (2)
MS\Internal\AutomationProxies\WinFormsSpinner.cs (2)
63double.Parse(text, NumberStyles.Any, CultureInfo.InvariantCulture); 73int.Parse(text, NumberStyles.HexNumber, CultureInfo.InvariantCulture);
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskLeaseLifetimeHelper.cs (1)
53if (Int32.TryParse(remotingLeaseLifetimeInMinutesStringValue, NumberStyles.Integer, CultureInfo.InvariantCulture, out remotingLeaseLifetimeInMinutes))