113 references to ToInt32
mscorlib (3)
system\security\permissions\keycontainerpermission.cs (2)
621
providerType = Convert.
ToInt32
(strAttrValue, null);
625
keySpec = Convert.
ToInt32
(strAttrValue, null);
system\string.cs (1)
3396
return Convert.
ToInt32
(this, provider);
PresentationBuildTasks (1)
Framework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (1)
238
value = Convert.
ToInt32
(th.GetCurrentToken(), formatProvider);
PresentationFramework (7)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
273
((IAnnotationComponent)snc).ZOrder = Convert.
ToInt32
(node.Value, CultureInfo.InvariantCulture);
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2005
columnValue = System.Convert.
ToInt32
((string)data, CultureInfo.CurrentCulture);
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
185
int pageNumber = Convert.
ToInt32
(elementID, CultureInfo.InvariantCulture) - 1;
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
230
int pageNumber = Convert.
ToInt32
(elementID, CultureInfo.InvariantCulture);
src\Framework\System\Windows\Documents\FixedFindEngine.cs (1)
425
bidiLevel = Convert.
ToInt32
(bidiLevelAsString, CultureInfo.InvariantCulture);
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (1)
264
i = System.Convert.
ToInt32
(s, CultureInfo.InvariantCulture);
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (1)
3805
i = System.Convert.
ToInt32
(s, CultureInfo.InvariantCulture);
System (2)
net\System\Net\_FtpControlStream.cs (2)
910
int year = Convert.
ToInt32
(dateTimeLine.Substring(0, 4), NumberFormatInfo.InvariantInfo);
1088
return Convert.
ToInt32
(parsedList[3], NumberFormatInfo.InvariantInfo);
System.Activities (9)
System\Activities\Debugger\DebugInfo.cs (9)
332
location.Value = Convert.ToSByte(RemoveHexadecimalPrefix(value), Convert.
ToInt32
(stringRadix, CultureInfo.InvariantCulture));
337
succeed = ConvertToChar(value, Convert.
ToInt32
(stringRadix, CultureInfo.InvariantCulture), out ch);
345
location.Value = Convert.ToInt16(RemoveHexadecimalPrefix(value), Convert.
ToInt32
(stringRadix, CultureInfo.InvariantCulture));
349
location.Value = Convert.ToInt32(RemoveHexadecimalPrefix(value), Convert.
ToInt32
(stringRadix, CultureInfo.InvariantCulture));
353
location.Value = Convert.ToInt64(RemoveHexadecimalPrefix(value), Convert.
ToInt32
(stringRadix, CultureInfo.InvariantCulture));
357
location.Value = Convert.ToByte(RemoveHexadecimalPrefix(value), Convert.
ToInt32
(stringRadix, CultureInfo.InvariantCulture));
361
location.Value = Convert.ToUInt16(RemoveHexadecimalPrefix(value), Convert.
ToInt32
(stringRadix, CultureInfo.InvariantCulture));
365
location.Value = Convert.ToUInt32(RemoveHexadecimalPrefix(value), Convert.
ToInt32
(stringRadix, CultureInfo.InvariantCulture));
369
location.Value = Convert.ToUInt64(RemoveHexadecimalPrefix(value), Convert.
ToInt32
(stringRadix, CultureInfo.InvariantCulture));
System.Data (4)
fx\src\data\System\Data\SimpleType.cs (3)
130
length = Convert.
ToInt32
(facet.Value, null);
133
minLength = Convert.
ToInt32
(facet.Value, null);
136
maxLength = Convert.
ToInt32
(facet.Value, null);
fx\src\data\System\Data\XDRSchema.cs (1)
183
if ((Convert.
ToInt32
(occurs, CultureInfo.InvariantCulture)>1) && (typeNode==null)){
System.Data.SqlXml (1)
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
435
numberingFormat.setGroupingSize(Convert.
ToInt32
(groupingSize, CultureInfo.InvariantCulture));
System.IdentityModel (2)
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (1)
1451
rstr.KeySizeInBits = Convert.
ToInt32
(reader.ReadElementContentAsString(), CultureInfo.InvariantCulture);
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
240
length = Convert.
ToInt32
(lengthString, CultureInfo.InvariantCulture);
System.Management (4)
WmiGenerator.cs (4)
5130
ret = System.Convert.
ToInt32
(strTemp,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32)));
5134
ret = System.Convert.
ToInt32
(bitMap,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32)));
5305
arrayToAdd.Add(System.Convert.
ToInt32
(numericValue,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32))));
5311
arrayToAdd.Add(System.Convert.
ToInt32
(numericValue,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32))));
System.Messaging (1)
System\Messaging\Message.cs (1)
2380
integerId = Convert.
ToInt32
(pieces[1], CultureInfo.InvariantCulture);
System.Runtime.Remoting (3)
channels\http\combinedhttpchannel.cs (1)
68
case "priority": _channelPriority = Convert.
ToInt32
((String)entry.Value, CultureInfo.InvariantCulture); break;
channels\ipc\ipcchannel.cs (1)
71
case "priority": _channelPriority = Convert.
ToInt32
((String)entry.Value, CultureInfo.InvariantCulture); break;
channels\tcp\combinedtcpchannel.cs (1)
64
case "priority": _channelPriority = Convert.
ToInt32
((String)entry.Value, CultureInfo.InvariantCulture); break;
System.Security (3)
system\security\cryptography\xml\encryptedtype.cs (1)
195
KeySize = Convert.
ToInt32
(Utils.DiscardWhiteSpaces(keySizeNode.InnerText), null);
system\security\cryptography\xml\signedxml.cs (2)
403
signatureLength = Convert.
ToInt32
(m_signature.SignedInfo.SignatureLength, null);
1005
signatureLength = Convert.
ToInt32
(m_signature.SignedInfo.SignatureLength, null);
System.ServiceModel (1)
System\ServiceModel\Channels\NativeMsmqMessage.cs (1)
543
integerId = Convert.
ToInt32
(pieces[1], CultureInfo.InvariantCulture);
System.Web (50)
Configuration\HttpCapabilitiesBase.cs (39)
837
_gatewayMajorVersion = Convert.
ToInt32
(this["gatewayMajorVersion"], CultureInfo.InvariantCulture);
929
screenPixelsWidthToUse = Convert.
ToInt32
(this["screenPixelsWidth"], CultureInfo.InvariantCulture);
930
characterWidthToUse = Convert.
ToInt32
(this["characterWidth"], CultureInfo.InvariantCulture);
933
screenPixelsWidthToUse = Convert.
ToInt32
(this["screenPixelsWidth"], CultureInfo.InvariantCulture);
934
characterWidthToUse = Convert.
ToInt32
(this["defaultCharacterWidth"], CultureInfo.InvariantCulture);
937
screenPixelsWidthToUse = Convert.
ToInt32
(this["defaultScreenPixelsWidth"], CultureInfo.InvariantCulture);
938
characterWidthToUse = Convert.
ToInt32
(this["characterWidth"], CultureInfo.InvariantCulture);
941
screenPixelsWidthToUse = Convert.
ToInt32
(this["defaultScreenCharactersWidth"], CultureInfo.InvariantCulture);
948
_screenCharactersWidth = Convert.
ToInt32
(this["screenCharactersWidth"], CultureInfo.InvariantCulture);
967
screenPixelHeightToUse = Convert.
ToInt32
(this["screenPixelsHeight"], CultureInfo.InvariantCulture);
968
characterHeightToUse = Convert.
ToInt32
(this["characterHeight"], CultureInfo.InvariantCulture);
971
screenPixelHeightToUse = Convert.
ToInt32
(this["screenPixelsHeight"], CultureInfo.InvariantCulture);
972
characterHeightToUse = Convert.
ToInt32
(this["defaultCharacterHeight"], CultureInfo.InvariantCulture);
975
screenPixelHeightToUse = Convert.
ToInt32
(this["defaultScreenPixelsHeight"], CultureInfo.InvariantCulture);
976
characterHeightToUse = Convert.
ToInt32
(this["characterHeight"], CultureInfo.InvariantCulture);
979
screenPixelHeightToUse = Convert.
ToInt32
(this["defaultScreenCharactersHeight"], CultureInfo.InvariantCulture);
986
_screenCharactersHeight = Convert.
ToInt32
(this["screenCharactersHeight"], CultureInfo.InvariantCulture);
1005
screenCharactersWidthToUse = Convert.
ToInt32
(this["screenCharactersWidth"], CultureInfo.InvariantCulture);
1006
characterWidthToUse = Convert.
ToInt32
(this["characterWidth"], CultureInfo.InvariantCulture);
1009
screenCharactersWidthToUse = Convert.
ToInt32
(this["screenCharactersWidth"], CultureInfo.InvariantCulture);
1010
characterWidthToUse = Convert.
ToInt32
(this["defaultCharacterWidth"], CultureInfo.InvariantCulture);
1013
screenCharactersWidthToUse = Convert.
ToInt32
(this["defaultScreenCharactersWidth"], CultureInfo.InvariantCulture);
1014
characterWidthToUse = Convert.
ToInt32
(this["characterWidth"], CultureInfo.InvariantCulture);
1017
screenCharactersWidthToUse = Convert.
ToInt32
(this["defaultScreenPixelsWidth"], CultureInfo.InvariantCulture);
1024
_screenPixelsWidth = Convert.
ToInt32
(this["screenPixelsWidth"], CultureInfo.InvariantCulture);
1041
screenCharactersHeightToUse = Convert.
ToInt32
(this["screenCharactersHeight"], CultureInfo.InvariantCulture);
1042
characterHeightToUse = Convert.
ToInt32
(this["characterHeight"], CultureInfo.InvariantCulture);
1045
screenCharactersHeightToUse = Convert.
ToInt32
(this["screenCharactersHeight"], CultureInfo.InvariantCulture);
1046
characterHeightToUse = Convert.
ToInt32
(this["defaultCharacterHeight"], CultureInfo.InvariantCulture);
1049
screenCharactersHeightToUse = Convert.
ToInt32
(this["defaultScreenCharactersHeight"], CultureInfo.InvariantCulture);
1050
characterHeightToUse = Convert.
ToInt32
(this["characterHeight"], CultureInfo.InvariantCulture);
1053
screenCharactersHeightToUse = Convert.
ToInt32
(this["defaultScreenPixelsHeight"], CultureInfo.InvariantCulture);
1060
_screenPixelsHeight = Convert.
ToInt32
(this["screenPixelsHeight"], CultureInfo.InvariantCulture);
1072
_screenBitDepth = Convert.
ToInt32
(this["screenBitDepth"], CultureInfo.InvariantCulture);
1111
_numberOfSoftkeys = Convert.
ToInt32
(this["numberOfSoftkeys"], CultureInfo.InvariantCulture);
1122
_maximumSoftkeyLabelLength = Convert.
ToInt32
(this["maximumSoftkeyLabelLength"], CultureInfo.InvariantCulture);
1630
_maximumRenderedPageSize = Convert.
ToInt32
(this["maximumRenderedPageSize"], CultureInfo.InvariantCulture);
1711
_defaultSubmitButtonLimit = s != null ? Convert.
ToInt32
(this["defaultSubmitButtonLimit"], CultureInfo.InvariantCulture) : 1;
1741
_maximumHrefLength = Convert.
ToInt32
(this["maximumHrefLength"], CultureInfo.InvariantCulture);
OutputCacheModule.cs (2)
758
maxage = Convert.
ToInt32
(directive.Substring(8), CultureInfo.InvariantCulture);
778
minfresh = Convert.
ToInt32
(directive.Substring(10), CultureInfo.InvariantCulture);
UI\ObjectConverter.cs (1)
53
return Convert.
ToInt32
((string)value, CultureInfo.InvariantCulture);
UI\Page.cs (1)
1060
int numViewStateFields = Convert.
ToInt32
(fieldCountStr, CultureInfo.InvariantCulture);
UI\WebControls\DetailsView.cs (1)
2420
newItemIndex = Convert.
ToInt32
(itemIndexArg, CultureInfo.InvariantCulture) - 1;
UI\WebControls\FormView.cs (1)
2050
newItemIndex = Convert.
ToInt32
(itemIndexArg, CultureInfo.InvariantCulture) - 1;
UI\WebControls\GridView.cs (2)
2811
return Convert.
ToInt32
(commandArgument, CultureInfo.InvariantCulture);
3011
newPage = Convert.
ToInt32
(pageNumberArg, CultureInfo.InvariantCulture) - 1;
Util\ProviderUtil.cs (3)
42
t = Convert.
ToInt32
(s, CultureInfo.InvariantCulture);
82
t = Convert.
ToInt32
(s, CultureInfo.InvariantCulture);
123
t = Convert.
ToInt32
(s, CultureInfo.InvariantCulture);
System.Web.DataVisualization (1)
Common\Formulas\FormulaHelpers.cs (1)
375
return Convert.
ToInt32
(newParamValue, CultureInfo.InvariantCulture);
System.Web.Extensions (2)
UI\WebControls\ListView.cs (1)
2091
return Convert.
ToInt32
(commandArgument, CultureInfo.InvariantCulture);
UI\WebControls\NumericPagerField.cs (1)
309
int pageIndex = Convert.
ToInt32
(e.CommandName, CultureInfo.InvariantCulture);
System.Web.Mobile (5)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (1)
188
list, Convert.
ToInt32
(list.DataMember, CultureInfo.InvariantCulture));
UI\MobileControls\Adapters\ControlAdapter.cs (2)
229
optimumPageWeight = Convert.
ToInt32
(pageWeight, CultureInfo.InvariantCulture);
246
int numLines = Convert.
ToInt32
(numLinesStr, CultureInfo.InvariantCulture);
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (1)
170
list, Convert.
ToInt32
(list.DataMember, CultureInfo.InvariantCulture));
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (1)
162
list, Convert.
ToInt32
(list.DataMember, CultureInfo.InvariantCulture));
System.Web.Services (1)
System\Web\Services\Discovery\DynamicVirtualDiscoSearcher.cs (1)
170
if (Convert.
ToInt32
(port, CultureInfo.InvariantCulture) != uri.Port)
System.Windows.Forms (1)
winforms\Managed\System\WinForms\BindingNavigator.cs (1)
598
newPosition = Convert.
ToInt32
(positionItem.Text, CultureInfo.CurrentCulture) - 1;
System.Windows.Forms.DataVisualization (1)
Common\Formulas\FormulaHelpers.cs (1)
375
return Convert.
ToInt32
(newParamValue, CultureInfo.InvariantCulture);
System.Workflow.Activities (2)
Designers\StateDesignerConnector.cs (2)
312
int sourceIndex = Convert.
ToInt32
(constructionArguments["SourceConnectionIndex"] as string, System.Globalization.CultureInfo.InvariantCulture);
323
int targetIndex = Convert.
ToInt32
(constructionArguments["TargetConnectionIndex"] as string, System.Globalization.CultureInfo.InvariantCulture);
System.Workflow.ComponentModel (3)
AuthoringOM\Activity.cs (1)
2170
int index = Convert.
ToInt32
(subPath, CultureInfo.InvariantCulture);
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (2)
227
int sourceIndex = Convert.
ToInt32
(constructionArguments["SourceConnectionIndex"] as string, System.Globalization.CultureInfo.InvariantCulture);
238
int targetIndex = Convert.
ToInt32
(constructionArguments["TargetConnectionIndex"] as string, System.Globalization.CultureInfo.InvariantCulture);
System.Workflow.Runtime (1)
Hosting\SqlWorkflowPersistenceService.cs (1)
761
int seconds = Convert.
ToInt32
(parameters[SqlWorkflowPersistenceService.InstanceOwnershipTimeoutSecondsToken], System.Globalization.CultureInfo.CurrentCulture);
System.WorkflowServices (1)
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (1)
119
Convert.
ToInt32
(parameters[ChannelManagerService.MaxIdleChannelsPerEndpointSetting], System.Globalization.CultureInfo.CurrentCulture);
WindowsBase (4)
Base\System\Windows\Generated\Int32Rect.cs (4)
195
Convert.
ToInt32
(firstToken, formatProvider),
196
Convert.
ToInt32
(th.NextTokenRequired(), formatProvider),
197
Convert.
ToInt32
(th.NextTokenRequired(), formatProvider),
198
Convert.
ToInt32
(th.NextTokenRequired(), formatProvider));