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