19 implementations of ToInt32
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LinkTagHelperTest.cs (1)
1262public int ToInt32(IFormatProvider provider)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
50public int ToInt32(IFormatProvider provider) => Value.ToInt32(provider);
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 (16)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
356int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
212int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
547int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1982int IConvertible.ToInt32(IFormatProvider? provider) => throw InvalidCast(nameof(Int32));
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
72int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1064int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
482int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2183int IConvertible.ToInt32(IFormatProvider? provider) => Convert.ToInt32(GetValue());
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
215int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
230int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
227int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
218int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
477int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
209int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
225int IConvertible.ToInt32(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
224int IConvertible.ToInt32(IFormatProvider? provider)
91 references to ToInt32
dotnet-svcutil-lib (2)
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.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
50public int ToInt32(IFormatProvider provider) => Value.ToInt32(provider);
Microsoft.CodeAnalysis (1)
InternalUtilities\EnumUtilties.cs (1)
24int val = value.ToInt32(null);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\EnumUtilties.cs (1)
24int val = value.ToInt32(null);
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\InternalUtilities\EnumUtilties.cs (1)
24int val = value.ToInt32(null);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\EnumUtilties.cs (1)
24int val = value.ToInt32(null);
Microsoft.VisualBasic.Core (63)
Microsoft\VisualBasic\CompilerServices\BooleanType.vb (1)
92Return CBool(ValueInterface.ToInt32(Nothing))
Microsoft\VisualBasic\CompilerServices\ByteType.vb (1)
77Return CByte(ValueInterface.ToInt32(Nothing))
Microsoft\VisualBasic\CompilerServices\Conversions.vb (15)
110Return CBool(ValueInterface.ToInt32(Nothing)) 254Return CByte(ValueInterface.ToInt32(Nothing)) 401Return CSByte(ValueInterface.ToInt32(Nothing)) 544Return CShort(ValueInterface.ToInt32(Nothing)) 690Return CUShort(ValueInterface.ToInt32(Nothing)) 833Return CInt(ValueInterface.ToInt32(Nothing)) 859Return ValueInterface.ToInt32(Nothing) 978Return CUInt(ValueInterface.ToInt32(Nothing)) 1124Return CLng(ValueInterface.ToInt32(Nothing)) 1271Return CULng(ValueInterface.ToInt32(Nothing)) 1430Return CDec(ValueInterface.ToInt32(Nothing)) 1670Return CSng(ValueInterface.ToInt32(Nothing)) 1815Return CDbl(ValueInterface.ToInt32(Nothing)) 2277Return CStr(ValueInterface.ToInt32(Nothing)) 2428Case TypeCode.Int32 : Return CastInt32Enum(iconv.ToInt32(Nothing), TargetType)
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (1)
81Return CDec(valueInterface.ToInt32(Nothing))
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (1)
85Return CDbl(valueInterface.ToInt32(Nothing))
Microsoft\VisualBasic\CompilerServices\IntegerType.vb (1)
77Return CInt(ValueInterface.ToInt32(Nothing))
Microsoft\VisualBasic\CompilerServices\LongType.vb (1)
80Return CLng(ValueInterface.ToInt32(Nothing))
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (35)
524Return ObjTstInt32(conv1.ToInt32(Nothing), 0) 527Return ObjTstInt32(0, conv2.ToInt32(Nothing)) 686Return ObjTstInt32(conv1.ToInt32(Nothing), conv2.ToInt32(Nothing)) 689Return ObjTstInt32(conv1.ToInt32(Nothing), ToVBBool(conv2)) 692Return ObjTstInt32(ToVBBool(conv1), conv2.ToInt32(Nothing)) 993Int64Result = -CType(conv.ToInt32(Nothing), Int64) 1162int32Value = Not iconv.ToInt32(Nothing) 1684Return AddInt32(conv1.ToInt32(Nothing), conv2.ToInt32(Nothing)) 1687Return AddInt32(conv1.ToInt32(Nothing), ToVBBool(conv2)) 1690Return AddInt32(ToVBBool(conv1), conv2.ToInt32(Nothing)) 1983Return SubInt32(conv1.ToInt32(Nothing), conv2.ToInt32(Nothing)) 1986Return SubInt32(conv1.ToInt32(Nothing), ToVBBool(conv2)) 1989Return SubInt32(ToVBBool(conv1), conv2.ToInt32(Nothing)) 2285Return MulInt32(conv1.ToInt32(Nothing), conv2.ToInt32(Nothing)) 2288Return MulInt32(conv1.ToInt32(Nothing), ToVBBool(conv2)) 2291Return MulInt32(ToVBBool(conv1), conv2.ToInt32(Nothing)) 2800Return ModInt32(conv1.ToInt32(Nothing), 0) 2824Return ModInt32(0, conv2.ToInt32(Nothing)) 2925Return ModInt32(conv1.ToInt32(Nothing), conv2.ToInt32(Nothing)) 2928Return ModInt32(conv1.ToInt32(Nothing), ToVBBool(conv2)) 2931Return ModInt32(ToVBBool(conv1), conv2.ToInt32(Nothing)) 3143Return IDivideInt32(conv1.ToInt32(Nothing), 0) 3161Return IDivideInt32(0, conv2.ToInt32(Nothing)) 3175Return IDivideInt32(ToVBBool(conv1), conv2.ToInt32(Nothing)) 3195Return IDivideInt32(conv1.ToInt32(Nothing), ToVBBool(conv2)) 3217Return IDivideInt32(conv1.ToInt32(Nothing), conv2.ToInt32(Nothing)) 3366Return conv1.ToInt32(Nothing) << amount 3403Return conv1.ToInt32(Nothing) >> amount 3659Return iconv.ToInt32(Nothing)
Microsoft\VisualBasic\CompilerServices\ShortType.vb (1)
77Return CShort(ValueInterface.ToInt32(Nothing))
Microsoft\VisualBasic\CompilerServices\SingleType.vb (1)
91Return CSng(ValueInterface.ToInt32(Nothing))
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
124Return FromInteger(ValueInterface.ToInt32(Nothing))
Microsoft\VisualBasic\Conversion.vb (4)
153Return ValueInterface.ToInt32(Nothing) 228Return ValueInterface.ToInt32(Nothing) 310Return Hex(ValueInterface.ToInt32(Nothing)) 422Return Oct(ValueInterface.ToInt32(Nothing))
System.CodeDom (1)
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
817Output.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.Net.Http (1)
System\Net\Http\SocketsHttpHandler\RuntimeSettingParser.cs (1)
67return convertible.ToInt32(NumberFormatInfo.InvariantInfo);
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\AppContextConfigHelper.cs (1)
79result = convertible.ToInt32(NumberFormatInfo.InvariantInfo);
src\libraries\System.Private.CoreLib\src\System\Convert.cs (6)
152TypeCode.Int32 => v.ToInt32(provider), 192return value.ToInt32(provider); 264return ic.ToInt32(provider); 984return value == null ? 0 : ((IConvertible)value).ToInt32(null); 989return value == null ? 0 : ((IConvertible)value).ToInt32(provider); 1100return ((IConvertible)value).ToInt32(null);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
492idx[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);