51 references to ToInt32
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathScanner.cs (1)
150_kind = (LexKind)Convert.ToInt32(this.CurerntChar, CultureInfo.InvariantCulture);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
997Ldc(Convert.ToInt32(o, CultureInfo.InvariantCulture));
Microsoft.AspNetCore.DataProtection (3)
RegistryPolicyResolver.cs (3)
132options.EncryptionAlgorithmKeySize = Convert.ToInt32(valueFromRegistry, CultureInfo.InvariantCulture); 168options.EncryptionAlgorithmKeySize = Convert.ToInt32(valueFromRegistry, CultureInfo.InvariantCulture); 186options.EncryptionAlgorithmKeySize = Convert.ToInt32(valueFromRegistry, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
150return Convert.ToInt32(value, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Owin (3)
OwinEnvironment.cs (3)
419{ OwinConstants.ResponseStatusCode, new FeatureMap<IHttpResponseFeature>(feature => feature.StatusCode, () => 200, (feature, value) => feature.StatusCode = Convert.ToInt32(value, CultureInfo.InvariantCulture)) }, 434{ OwinConstants.CommonKeys.LocalPort, new FeatureMap<IHttpConnectionFeature>(feature => PortToString(feature.LocalPort), (feature, value) => feature.LocalPort = Convert.ToInt32(value, CultureInfo.InvariantCulture)) }, 435{ OwinConstants.CommonKeys.RemotePort, new FeatureMap<IHttpConnectionFeature>(feature => PortToString(feature.RemotePort), (feature, value) => feature.RemotePort = Convert.ToInt32(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\aspnetcore\src\SignalR\common\Shared\JsonUtils.cs (1)
131return Convert.ToInt32(reader.Value, CultureInfo.InvariantCulture);
Microsoft.CodeAnalysis.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Security\DoNotUseWeakKDFInsufficientIterationCount.cs (2)
108kind = PropertySetCallbacks.EvaluateLiteralValues(argumentValueContentAbstractValues[2], o => Convert.ToInt32(o, CultureInfo.InvariantCulture) < sufficientIterationCount); 119return PropertySetCallbacks.EvaluateLiteralValues(valueContentAbstractValue, o => Convert.ToInt32(o, CultureInfo.InvariantCulture) < sufficientIterationCount);
Microsoft.NetCore.Analyzers\Security\UseRSAWithSufficientKeySize.cs (2)
92Convert.ToInt32(arguments[0].Value.ConstantValue.Value, CultureInfo.InvariantCulture) < 2048) 161Convert.ToInt32(conversionOperation.Operand.ConstantValue.Value, CultureInfo.InvariantCulture) < 2048) /* Specify the key size is smaller than 2048 explicitly */ )
Microsoft.Win32.Registry (1)
Microsoft\Win32\RegistryKey.cs (1)
1332int data = Convert.ToInt32(value, System.Globalization.CultureInfo.InvariantCulture);
PresentationCore (2)
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
610Int32 stylusTip = Convert.ToInt32(da.StylusTip, System.Globalization.CultureInfo.InvariantCulture);
System\Windows\Media\Imaging\BitmapMetadata.cs (1)
1262return System.Convert.ToInt32(rating, CultureInfo.InvariantCulture);
PresentationFramework (1)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1531pageNumber = Convert.ToInt32(args.Parameter, System.Globalization.CultureInfo.CurrentCulture);
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\RangeAttribute.cs (1)
210Initialize((int)minimum, (int)maximum, v => Convert.ToInt32(v, CultureInfo.InvariantCulture));
System.Data.Common (17)
System\Data\Common\DBSchemaRow.cs (1)
88return Convert.ToInt32(value, CultureInfo.InvariantCulture);
System\Data\Filter\BinaryNode.cs (14)
180return Convert.ToInt32(vLeft, FormatProvider).CompareTo(Convert.ToInt32(vRight, FormatProvider)); 187return Convert.ToInt32(vLeft, FormatProvider).CompareTo(Convert.ToInt32(vRight, FormatProvider)); 204return Convert.ToInt32(DataExpression.ToBoolean(vLeft), FormatProvider) - 205Convert.ToInt32(DataExpression.ToBoolean(vRight), FormatProvider); 376checked { value = Convert.ToInt32(vLeft, FormatProvider) + Convert.ToInt32(vRight, FormatProvider); } 544checked { value = Convert.ToInt32(vLeft, FormatProvider) - Convert.ToInt32(vRight, FormatProvider); } 683checked { value = Convert.ToInt32(vLeft, FormatProvider) * Convert.ToInt32(vRight, FormatProvider); } 789checked { value = Convert.ToInt32(vLeft, FormatProvider) / Convert.ToInt32(vRight, FormatProvider); }
System\Data\Filter\FunctionNode.cs (2)
159argumentValues[i] = Convert.ToInt32(argumentValues[i], FormatProvider); 345return Convert.ToInt32(argumentValues[0], FormatProvider);
System.Data.Odbc (1)
System\Data\Odbc\OdbcMetaDataFactory.cs (1)
144if (Convert.ToInt32(odbcSource, null) == 0)
System.Data.OleDb (2)
OleDbCommandBuilder.cs (1)
255parameter.Size = Convert.ToInt32(dataRow[maxLen, DataRowVersion.Default], CultureInfo.InvariantCulture);
OleDbConnection.cs (1)
86return Convert.ToInt32(value, CultureInfo.InvariantCulture);
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\Context.cs (1)
1135properties.OsVersion = (DomainControllerMode)Convert.ToInt32(searchResponse.Entries[0].Attributes["domainControllerFunctionality"][0], CultureInfo.InvariantCulture);
System.Management (4)
System\Management\Property.cs (3)
421((int[])(wmiValue))[i] = Convert.ToInt32(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(int))); 530wmiValue = Convert.ToInt32(val, (IFormatProvider)culInfo.GetFormat(typeof(int))); 742wmiValue = Convert.ToInt32(val, (IFormatProvider)culInfo.GetFormat(typeof(int)));
System\Management\Qualifier.cs (1)
111((int[])(wmiValue))[i] = Convert.ToInt32(valArray.GetValue(i), (IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(int)));
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\CodeGenerator.cs (1)
823Ldc(Convert.ToInt32(o, CultureInfo.InvariantCulture));
System.Private.Xml (2)
System\Xml\Serialization\CodeGenerator.cs (1)
794Ldc(Convert.ToInt32(o, CultureInfo.InvariantCulture));
System\Xml\XPath\Internal\XPathScanner.cs (1)
147_kind = (LexKind)Convert.ToInt32(CurrentChar, CultureInfo.InvariantCulture);
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\Formatter.cs (1)
122WriteInt32(Convert.ToInt32(data, CultureInfo.InvariantCulture), memberName);
System\Runtime\Serialization\FormatterConverter.cs (1)
73return System.Convert.ToInt32(value, CultureInfo.InvariantCulture);
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\LocalAppContextSwitches.cs (1)
59value = Convert.ToInt32(data, CultureInfo.InvariantCulture);
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3831: Convert.ToInt32(o, CultureInfo.InvariantCulture);