117 references to TryParse
mscorlib (3)
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\version.cs (1)
425
if (!Int32.
TryParse
(component, NumberStyles.Integer, CultureInfo.InvariantCulture, out parsedComponent)) {
PresentationCore (3)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
659
if (!int.
TryParse
(
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))
PresentationFramework (6)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (2)
1395
if (Int32.
TryParse
((string)pInfo.value,
1496
if (Int32.
TryParse
(name,
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\PropertyPath.cs (1)
929
return Int32.
TryParse
( name,
src\Framework\System\Windows\PropertyPathConverter.cs (1)
207
if (Int32.
TryParse
( originalPath.Substring(i+1, j-i-1),
System (6)
net\System\Net\_ConnectStream.cs (1)
2984
if (int.
TryParse
(appSetting, NumberStyles.None, CultureInfo.InvariantCulture,
net\System\Net\HttpListenerRequestUriBuilder.cs (1)
297
if (!int.
TryParse
(codePoint, NumberStyles.HexNumber, null, out codePointValue))
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,
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.Data (1)
fx\src\data\System\Data\Filter\ConstNode.cs (1)
166
if (Int32.
TryParse
(sval, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out i4)) {
System.Data.Entity (3)
System\Data\Common\EntitySql\AST\Literal.cs (1)
359
if (Int32.
TryParse
(numericString, NumberStyles.Integer, CultureInfo.InvariantCulture, out int32Value))
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (1)
167
if (!Int32.
TryParse
(text, System.Globalization.NumberStyles.Integer, System.Globalization.CultureInfo.InvariantCulture, out temp))
System\Data\EntityModel\SchemaObjectModel\Utils.cs (1)
273
if ( int.
TryParse
(text,NumberStyles.Integer,System.Globalization.CultureInfo.InvariantCulture,out value) )
System.Data.Services (3)
System\Data\Services\DataService.cs (1)
2629
if (!Int32.
TryParse
(contentIdValue, System.Globalization.NumberStyles.Integer, System.Globalization.NumberFormatInfo.InvariantInfo, out contentId))
System\Data\Services\RequestQueryProcessor.cs (1)
1367
if (!Int32.
TryParse
(itemText, NumberStyles.Integer, CultureInfo.InvariantCulture, out count))
System\Data\Services\Serializers\JsonReader.cs (1)
349
if (Int32.
TryParse
(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out intValue))
System.Data.Services.Client (1)
System\Data\Services\Client\DataServiceContext.cs (1)
5682
!Int32.
TryParse
(contentValueID, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out contentID))
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.Runtime.Serialization (1)
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
74
if (Int32.
TryParse
(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out intValue))
System.ServiceModel (1)
System\ServiceModel\Channels\BaseUriWithWildcard.cs (1)
63
!int.
TryParse
(portString, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out port))
System.Web (4)
UI\DataBinder.cs (1)
240
intIndex = Int32.
TryParse
(index, NumberStyles.Integer, CultureInfo.InvariantCulture, out parsedIndex);
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\WebParts\LayoutEditorPart.cs (1)
112
if (Int32.
TryParse
(_zoneIndex.Text, NumberStyles.Integer, CultureInfo.CurrentCulture, out zoneIndex)) {
System.Web.DataVisualization (36)
Common\Annotation\AnnotationBase.cs (1)
3285
if (int.
TryParse
(pointIndex, NumberStyles.Any, CultureInfo.InvariantCulture, out index))
Common\ChartTypes\FunnelChart.cs (1)
2309
bool parseSucceed = int.
TryParse
(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out a);
Common\ChartTypes\KagiChart.cs (2)
242
parseSucceed = int.
TryParse
(kagiSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yValPerPoint);
341
bool parseSucceed = int.
TryParse
(series[CustomPropertyName.UsedYValue], NumberStyles.Any, CultureInfo.InvariantCulture, out yi);
Common\ChartTypes\PieChart.cs (1)
2395
bool parseSucceed = int.
TryParse
(dataSeries[typeSeries[0]][CustomPropertyName.PieStartAngle], NumberStyles.Any, CultureInfo.InvariantCulture, out angle);
Common\ChartTypes\PointAndFigureChart.cs (1)
275
parseSucceed = int.
TryParse
(pointAndFigureSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yVals);
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);
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 (2)
Script\Serialization\JavaScriptObjectDeserializer.cs (1)
237
if (Int32.
TryParse
(input, NumberStyles.Integer, CultureInfo.InvariantCulture, out n)) {
UI\WebControls\ListView.cs (1)
2101
return Int32.
TryParse
(commandArgument, NumberStyles.Integer, CultureInfo.InvariantCulture, out itemIndex);
System.Windows.Forms.DataVisualization (36)
Common\Annotation\AnnotationBase.cs (1)
3285
if (int.
TryParse
(pointIndex, NumberStyles.Any, CultureInfo.InvariantCulture, out index))
Common\ChartTypes\FunnelChart.cs (1)
2309
bool parseSucceed = int.
TryParse
(attrValue, NumberStyles.Any, CultureInfo.InvariantCulture, out a);
Common\ChartTypes\KagiChart.cs (2)
242
parseSucceed = int.
TryParse
(kagiSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yValPerPoint);
341
bool parseSucceed = int.
TryParse
(series[CustomPropertyName.UsedYValue], NumberStyles.Any, CultureInfo.InvariantCulture, out yi);
Common\ChartTypes\PieChart.cs (1)
2395
bool parseSucceed = int.
TryParse
(dataSeries[typeSeries[0]][CustomPropertyName.PieStartAngle], NumberStyles.Any, CultureInfo.InvariantCulture, out angle);
Common\ChartTypes\PointAndFigureChart.cs (1)
275
parseSucceed = int.
TryParse
(pointAndFigureSeries["OldYValuesPerPoint"], NumberStyles.Any, CultureInfo.InvariantCulture, out yVals);
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);
System.Workflow.Activities (2)
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);
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 (1)
System\Xml\XmlConvert.cs (1)
935
if (!Int32.
TryParse
(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) {
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskLeaseLifetimeHelper.cs (1)
53
if (Int32.
TryParse
(remotingLeaseLifetimeInMinutesStringValue, NumberStyles.Integer, CultureInfo.InvariantCulture, out remotingLeaseLifetimeInMinutes))