17 implementations of ToInt32
mscorlib (17)
system\boolean.cs (1)
266
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\byte.cs (1)
219
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\char.cs (1)
464
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\datetime.cs (1)
1609
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\dbnull.cs (1)
78
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\decimal.cs (1)
1232
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\double.cs (1)
333
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\enum.cs (1)
988
int IConvertible.
ToInt32
(IFormatProvider provider)
system\int16.cs (1)
232
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\int32.cs (1)
205
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\int64.cs (1)
184
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\sbyte.cs (1)
240
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\single.cs (1)
303
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\string.cs (1)
3395
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\uint16.cs (1)
207
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\uint32.cs (1)
189
int IConvertible.
ToInt32
(IFormatProvider provider) {
system\uint64.cs (1)
184
int IConvertible.
ToInt32
(IFormatProvider provider) {
29 references to ToInt32
mscorlib (14)
system\convert.cs (6)
233
return v.
ToInt32
(provider);
290
return value.
ToInt32
(provider);
361
return ic.
ToInt32
(provider);
1025
return value == null? 0: ((IConvertible)value).
ToInt32
(null);
1029
return value == null? 0: ((IConvertible)value).
ToInt32
(provider);
1126
return ((IConvertible)value).
ToInt32
(null);
system\diagnostics\eventing\eventprovider.cs (1)
845
data = ((IConvertible)data).
ToInt32
(null);
system\rttype.cs (1)
4725
idx[i] = ((IConvertible)providedArgs[i]).
ToInt32
(null);
system\runtime\remoting\objref.cs (2)
495
objrefFlags = ((IConvertible)o).
ToInt32
(null);
507
value = ((IConvertible)o).
ToInt32
(null);
system\variant.cs (4)
492
v = new Variant(ic.
ToInt32
(provider));
601
v = new Variant(iv.
ToInt32
(provider));
629
v = new Variant(new ErrorWrapper(iv.
ToInt32
(provider)));
676
v = new Variant(iv.
ToInt32
(provider));
System (1)
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
1062
Output.Write("Global.Microsoft.VisualBasic.ChrW(" + ((IConvertible)e.Value).
ToInt32
(CultureInfo.InvariantCulture).ToString(CultureInfo.InvariantCulture) + ")");
System.AddIn.Contract (1)
System\Addin\Contract\RemoteArgument.cs (1)
226
intToUse = convertibleValue.
ToInt32
(null);
System.Data (6)
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (1)
306
return ((IConvertible)value).
ToInt32
(CultureInfo.InvariantCulture);
fx\src\data\System\Data\Common\Int32Storage.cs (2)
179
value = ((IConvertible)value).
ToInt32
(FormatProvider);
208
values[record] = ((IConvertible)value).
ToInt32
(FormatProvider);
fx\src\data\System\Data\Common\SQLConvert.cs (1)
584
return ((IConvertible)(string)value).
ToInt32
(formatProvider);
fx\src\data\System\Data\Filter\ConstNode.cs (1)
182
return convertible.
ToInt32
(NumberFormatInfo.InvariantInfo);
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
1008
targetColumn.ColumnMapping = (MappingType)((IConvertible)value).
ToInt32
(CultureInfo.InvariantCulture);
System.Management (3)
Instrumentation\EventSource.cs (1)
551
int id = ((IConvertible)instanceId).
ToInt32
((IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int32)));
property.cs (2)
671
((int[])wmiValue) [i] = ((IConvertible)((System.UInt16)(arrayValue[i]))).
ToInt32
(null);
770
wmiValue = ((IConvertible)((System.UInt16)val)).
ToInt32
(null);
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeGenerator.cs (1)
1070
Ldc(((IConvertible)o).
ToInt32
(CultureInfo.InvariantCulture));
System.ServiceModel (1)
System\ServiceModel\Dispatcher\CodeGenerator.cs (1)
450
Ldc(((IConvertible)o).
ToInt32
(CultureInfo.InvariantCulture));
System.Xml (2)
System\Xml\Serialization\CodeExporter.cs (1)
285
return ((IConvertible)value).
ToInt32
(null);
System\Xml\Serialization\CodeGenerator.cs (1)
1064
Ldc(((IConvertible)o).
ToInt32
(CultureInfo.InvariantCulture));