18 implementations of ToInt64
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
39public readonly long ToInt64(IFormatProvider? provider) => throw new NotSupportedException();
System.Private.CoreLib (17)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
366long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
216long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
627long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1958long IConvertible.ToInt64(IFormatProvider? provider) => throw InvalidCast(nameof(Int64));
src\runtime\src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
82long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1069long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
490long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2186long IConvertible.ToInt64(IFormatProvider? provider) => Convert.ToInt64(GetValue());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
219long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
234long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
231long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
222long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
483long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (1)
672long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
213long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
229long IConvertible.ToInt64(IFormatProvider? provider)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
228long IConvertible.ToInt64(IFormatProvider? provider)
18 references to ToInt64
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
333return ((IConvertible)value).ToInt64(null);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (1)
427return new ConstantModel(fieldInfo, ((IConvertible)fieldInfo.GetValue(null)).ToInt64(null));
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\ComInterop\DynamicVariantExtensions.cs (1)
68case TypeCode.Int64: variant = ComVariant.Create(value.ToInt64(ci)); break;
System.Data.Common (6)
System\Data\Common\Int64Storage.cs (2)
198value = ((IConvertible)value).ToInt64(FormatProvider); 234_values[record] = ((IConvertible)value).ToInt64(FormatProvider);
System\Data\Common\SQLConvert.cs (1)
531return ((IConvertible)(string)value).ToInt64(formatProvider);
System\Data\Filter\ConstNode.cs (1)
243return convertible.ToInt64(NumberFormatInfo.InvariantInfo);
System\Data\ProviderBase\SchemaMapping.cs (2)
1155targetColumn.AutoIncrementSeed = ((IConvertible)value).ToInt64(CultureInfo.InvariantCulture); 1165targetColumn.AutoIncrementStep = ((IConvertible)value).ToInt64(CultureInfo.InvariantCulture);
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (6)
153TypeCode.Int64 => v.ToInt64(provider), 195return value.ToInt64(provider); 267return ic.ToInt64(provider); 1234return value == null ? 0 : ((IConvertible)value).ToInt64(null); 1239return value == null ? 0 : ((IConvertible)value).ToInt64(provider); 1328return ((IConvertible)value).ToInt64(null);
System.Private.Xml (1)
System\Xml\Serialization\Models.cs (1)
447return new ConstantModel(fieldInfo, ((IConvertible)fieldInfo.GetValue(null)!).ToInt64(null));
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1391long leftValue = left.ToInt64(null); 1392long rightValue = right.ToInt64(null);