71 references to ToInt32
mscorlib (5)
microsoft\win32\registrykey.cs (1)
1559
int data = Convert.
ToInt32
(value, System.Globalization.CultureInfo.InvariantCulture);
system\enum.cs (1)
990
return Convert.
ToInt32
(GetValue(), CultureInfo.CurrentCulture);
system\runtime\serialization\formatter.cs (1)
152
WriteInt32(Convert.
ToInt32
(data, CultureInfo.InvariantCulture), memberName);
system\runtime\serialization\formatterconverter.cs (1)
99
return System.Convert.
ToInt32
(value, CultureInfo.InvariantCulture);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
738
WriteInt32(Convert.
ToInt32
(value, CultureInfo.InvariantCulture));
PresentationCore (2)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
660
Int32 stylusTip = Convert.
ToInt32
(da.StylusTip, System.Globalization.CultureInfo.InvariantCulture);
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (1)
1432
return System.Convert.
ToInt32
(rating, CultureInfo.InvariantCulture);
PresentationFramework (1)
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1577
pageNumber = Convert.
ToInt32
(args.Parameter, System.Globalization.CultureInfo.CurrentCulture);
System.ComponentModel.DataAnnotations (1)
DataAnnotations\RangeAttribute.cs (1)
155
this.Initialize((int)minimum, (int)maximum, v => Convert.
ToInt32
(v, CultureInfo.InvariantCulture));
System.Data (21)
fx\src\data\System\Data\Common\DBSchemaRow.cs (1)
89
return Convert.
ToInt32
(value, CultureInfo.InvariantCulture);
fx\src\data\System\Data\Filter\BinaryNode.cs (14)
145
return Convert.
ToInt32
(vLeft, FormatProvider).CompareTo(Convert.
ToInt32
(vRight, FormatProvider));
152
return Convert.
ToInt32
(vLeft, FormatProvider).CompareTo(Convert.
ToInt32
(vRight, FormatProvider));
168
return Convert.
ToInt32
(DataExpression.ToBoolean(vLeft), FormatProvider) -
169
Convert.
ToInt32
(DataExpression.ToBoolean(vRight), FormatProvider);
310
checked {value = Convert.
ToInt32
(vLeft, FormatProvider) + Convert.
ToInt32
(vRight, FormatProvider);}
417
checked {value = Convert.
ToInt32
(vLeft, FormatProvider) - Convert.
ToInt32
(vRight, FormatProvider);}
505
checked {value = Convert.
ToInt32
(vLeft, FormatProvider) * Convert.
ToInt32
(vRight, FormatProvider);}
571
checked {value = Convert.
ToInt32
(vLeft, FormatProvider) / Convert.
ToInt32
(vRight, FormatProvider);}
fx\src\data\System\Data\Filter\FunctionNode.cs (2)
135
argumentValues[i] = Convert.
ToInt32
(argumentValues[i], FormatProvider);
287
return Convert.
ToInt32
(argumentValues[0], FormatProvider);
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (1)
143
if (Convert.
ToInt32
(odbcSource, null) == 0)
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (1)
227
parameter.Size = Convert.
ToInt32
(dataRow[maxLen, DataRowVersion.Default], CultureInfo.InvariantCulture);
fx\src\data\System\Data\OleDb\OleDbConnection.cs (1)
89
return Convert.
ToInt32
(value, CultureInfo.InvariantCulture);
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
1933
bool nullsVal = (null != nulls) && (dataRow.IsNull(nulls, DataRowVersion.Default) || (ODB.DBPROPVAL_IN_ALLOWNULL == Convert.
ToInt32
(dataRow[nulls, DataRowVersion.Default], CultureInfo.InvariantCulture)));
System.Data.Entity (2)
System\Data\Metadata\Edm\MetadataItem.cs (1)
261
Debug.Assert(System.Convert.
ToInt32
(flag & ~MetadataFlags.Readonly,CultureInfo.InvariantCulture) == 0,
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (1)
441
false, out scaleFacet) && Convert.
ToInt32
(scaleFacet.Value, CultureInfo.InvariantCulture) == 0);
System.Data.Linq (3)
SqlClient\Query\MethodCallConverter.cs (3)
151
int iValue = System.Convert.
ToInt32
(this.Eval(bo.Right), Globalization.CultureInfo.InvariantCulture);
155
int iValue = System.Convert.
ToInt32
(this.Eval(bo.Right), Globalization.CultureInfo.InvariantCulture);
161
int iValue = System.Convert.
ToInt32
(this.Eval(bo.Right), Globalization.CultureInfo.InvariantCulture);
System.Management (4)
property.cs (3)
441
((Int32[])(wmiValue))[i] = Convert.
ToInt32
(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Int32)));
555
wmiValue = Convert.
ToInt32
(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Int32)));
778
wmiValue = Convert.
ToInt32
(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Int32)));
qualifier.cs (1)
122
((Int32[])(wmiValue))[i] = Convert.
ToInt32
(valArray.GetValue(i),(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32)));
System.Runtime.Remoting (19)
channels\http\httpclientchannel.cs (6)
94
case "priority": _channelPriority = Convert.
ToInt32
(entry.Value, CultureInfo.InvariantCulture); break;
98
case "timeout": _timeout = Convert.
ToInt32
(entry.Value, CultureInfo.InvariantCulture); break;
102
_clientConnectionLimit = Convert.
ToInt32
(entry.Value, CultureInfo.InvariantCulture);
295
case ProxyPortKey: _proxyPort = Convert.
ToInt32
(value, CultureInfo.InvariantCulture); UpdateProxy(); break;
832
case ProxyPortKey: _proxyPort = Convert.
ToInt32
(value, CultureInfo.InvariantCulture); UpdateProxy(); break;
839
_timeout = Convert.
ToInt32
(value, CultureInfo.InvariantCulture);
channels\http\httpremotinghandler.cs (1)
634
statusCode = Convert.
ToInt32
(userStatusCode, CultureInfo.InvariantCulture);
channels\http\httpserverchannel.cs (2)
115
case "port": _port = Convert.
ToInt32
(entry.Value, CultureInfo.InvariantCulture); break;
116
case "priority": _channelPriority = Convert.
ToInt32
(entry.Value, CultureInfo.InvariantCulture); break;
channels\http\httpstreams.cs (1)
693
contentLength = Convert.
ToInt32
(contentLengthEntry, CultureInfo.InvariantCulture);
channels\ipc\ipcclientchannel.cs (2)
70
case "priority": _channelPriority = Convert.
ToInt32
(entry.Value, CultureInfo.InvariantCulture); break;
416
case ConnectionTimeoutKey: _timeout = Convert.
ToInt32
(value, CultureInfo.InvariantCulture);
channels\ipc\ipcserverchannel.cs (1)
103
case "priority": _channelPriority = Convert.
ToInt32
(entry.Value, CultureInfo.InvariantCulture); break;
channels\tcp\tcpclientchannel.cs (4)
74
case "priority": _channelPriority = Convert.
ToInt32
(entry.Value, CultureInfo.InvariantCulture); break;
598
int timeout = Convert.
ToInt32
(value, CultureInfo.InvariantCulture);
607
_receiveTimeout = Convert.
ToInt32
(value, CultureInfo.InvariantCulture);
615
case RetryCountKey: _retryCount = Convert.
ToInt32
(value, CultureInfo.InvariantCulture); break;
channels\tcp\tcpserverchannel.cs (2)
105
case "port": _port = Convert.
ToInt32
(entry.Value, CultureInfo.InvariantCulture); break;
106
case "priority": _channelPriority = Convert.
ToInt32
(entry.Value, CultureInfo.InvariantCulture); break;
System.Transactions (1)
System\Transactions\TransactionManager.cs (1)
552
streamToWrite.Read( returnValue, 0, Convert.
ToInt32
( streamToWrite.Length, CultureInfo.InvariantCulture ) );
System.Web.DynamicData (1)
DynamicData\FieldTemplateUserControl.cs (1)
505
converter = val => Convert.
ToInt32
(val, CultureInfo.InvariantCulture).ToString(CultureInfo.InvariantCulture);
System.Windows.Forms (5)
winforms\Managed\System\WinForms\AxHost.cs (1)
5052
return Convert.
ToInt32
(o, CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\Control.cs (2)
16336
prop.Value = ColorTranslator.FromOle(Convert.
ToInt32
(obj, CultureInfo.InvariantCulture));
16418
prop.Value = ColorTranslator.FromOle(Convert.
ToInt32
(obj, CultureInfo.InvariantCulture));
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4324
v.data1 = (IntPtr)Convert.
ToInt32
(var, CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
414
int iValue = Convert.
ToInt32
(enumValue, CultureInfo.InvariantCulture);
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
890
retVal = (Convert.
ToInt32
(obj, CultureInfo.InvariantCulture) != 0);
System.Xml (1)
System\Xml\XPath\Internal\XPathScanner.cs (1)
124
kind = (LexKind) Convert.
ToInt32
(this.CurerntChar, CultureInfo.InvariantCulture);
WindowsBase (4)
Base\MS\Internal\IO\Zip\ZipArchive.cs (4)
551
int intMode = Convert.
ToInt32
(mode, CultureInfo.InvariantCulture);
552
int intAccess = Convert.
ToInt32
(access, CultureInfo.InvariantCulture);
553
int intShare = Convert.
ToInt32
(share, CultureInfo.InvariantCulture);
554
int intStreaming = Convert.
ToInt32
(streaming, CultureInfo.InvariantCulture);