18 implementations of ToInt32
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
38
public readonly int
ToInt32
(IFormatProvider? provider) => throw new NotSupportedException();
System.Private.CoreLib (17)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
356
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
206
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
617
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1956
int IConvertible.
ToInt32
(IFormatProvider? provider) => throw InvalidCast(nameof(Int32));
src\runtime\src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
72
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1059
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
480
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2184
int IConvertible.
ToInt32
(IFormatProvider? provider) => Convert.ToInt32(GetValue());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
209
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
224
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
221
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
212
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
473
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (1)
662
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
203
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
219
int IConvertible.
ToInt32
(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
218
int IConvertible.
ToInt32
(IFormatProvider? provider)
28 references to ToInt32
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.CodeDom\Microsoft\VBCodeProvider.cs (1)
1148
Output.Write("Global.Microsoft.VisualBasic.ChrW(" + ((IConvertible)e.Value).
ToInt32
(CultureInfo.InvariantCulture).ToString(CultureInfo.InvariantCulture) + ")");
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
329
return ((IConvertible)value).
ToInt32
(null);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
1147
Ldc(((IConvertible)o).
ToInt32
(CultureInfo.InvariantCulture));
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\ComInterop\DynamicVariantExtensions.cs (1)
66
case TypeCode.Int32: variant = ComVariant.Create(value.
ToInt32
(ci)); break;
System.CodeDom (1)
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
814
Output.Write("Global.Microsoft.VisualBasic.ChrW(" + ((IConvertible)e.Value).
ToInt32
(CultureInfo.InvariantCulture).ToString(CultureInfo.InvariantCulture) + ")");
System.Data.Common (5)
System\Data\Common\Int32Storage.cs (2)
206
value = ((IConvertible)value).
ToInt32
(FormatProvider);
242
_values[record] = ((IConvertible)value).
ToInt32
(FormatProvider);
System\Data\Common\SQLConvert.cs (1)
527
return ((IConvertible)(string)value).
ToInt32
(formatProvider);
System\Data\Filter\ConstNode.cs (1)
222
return convertible.
ToInt32
(NumberFormatInfo.InvariantInfo);
System\Data\ProviderBase\SchemaMapping.cs (1)
1175
targetColumn.ColumnMapping = (MappingType)((IConvertible)value).
ToInt32
(CultureInfo.InvariantCulture);
System.Data.Odbc (1)
Common\System\Data\Common\DbConnectionStringCommon.cs (1)
237
return ((IConvertible)value).
ToInt32
(CultureInfo.InvariantCulture);
System.Data.OleDb (1)
DbConnectionStringCommon.cs (1)
166
return ((IConvertible)value).
ToInt32
(CultureInfo.InvariantCulture);
System.Management (2)
System\Management\Property.cs (2)
640
((int[])wmiValue)[i] = ((IConvertible)((ushort)(arrayValue[i]))).
ToInt32
(null);
734
wmiValue = ((IConvertible)((ushort)val)).
ToInt32
(null);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\RuntimeSettingParser.cs (1)
68
return convertible.
ToInt32
(NumberFormatInfo.InvariantInfo);
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContextConfigHelper.cs (1)
79
result = convertible.
ToInt32
(NumberFormatInfo.InvariantInfo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (6)
151
TypeCode.Int32 => v.
ToInt32
(provider),
191
return value.
ToInt32
(provider);
263
return ic.
ToInt32
(provider);
983
return value == null ? 0 : ((IConvertible)value).
ToInt32
(null);
988
return value == null ? 0 : ((IConvertible)value).
ToInt32
(provider);
1099
return ((IConvertible)value).
ToInt32
(null);
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.InvokeMember.cs (1)
180
idx[i] = ((IConvertible)providedArgs[i]!).
ToInt32
(null);
System.Windows.Forms.Design (5)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (5)
628
indexes[i] = ic.
ToInt32
(null);
998
int size = ic.
ToInt32
(null);
1038
indexes[i] = convertible.
ToInt32
(null);
1375
int leftValue = left.
ToInt32
(null);
1376
int rightValue = right.
ToInt32
(null);