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