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