19 implementations of ToInt64
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LinkTagHelperTest.cs (1)
1267public long ToInt64(IFormatProvider provider)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
51public long ToInt64(IFormatProvider provider) => Value.ToInt64(provider);
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 (16)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
366long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
222long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
557long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1984long IConvertible.ToInt64(IFormatProvider? provider) => throw InvalidCast(nameof(Int64));
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
82long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1074long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
492long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2185long IConvertible.ToInt64(IFormatProvider? provider) => Convert.ToInt64(GetValue());
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
225long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
240long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
237long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
228long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
487long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
219long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
235long IConvertible.ToInt64(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
234long IConvertible.ToInt64(IFormatProvider? provider)
82 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.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
51public long ToInt64(IFormatProvider provider) => Value.ToInt64(provider);
Microsoft.VisualBasic.Core (64)
Microsoft\VisualBasic\CompilerServices\BooleanType.vb (1)
100Return CBool(ValueInterface.ToInt64(Nothing))
Microsoft\VisualBasic\CompilerServices\ByteType.vb (1)
84Return CByte(ValueInterface.ToInt64(Nothing))
Microsoft\VisualBasic\CompilerServices\Conversions.vb (15)
125Return CBool(ValueInterface.ToInt64(Nothing)) 268Return CByte(ValueInterface.ToInt64(Nothing)) 415Return CSByte(ValueInterface.ToInt64(Nothing)) 558Return CShort(ValueInterface.ToInt64(Nothing)) 704Return CUShort(ValueInterface.ToInt64(Nothing)) 847Return CInt(ValueInterface.ToInt64(Nothing)) 992Return CUInt(ValueInterface.ToInt64(Nothing)) 1138Return CLng(ValueInterface.ToInt64(Nothing)) 1150Return ValueInterface.ToInt64(Nothing) 1285Return CULng(ValueInterface.ToInt64(Nothing)) 1444Return CDec(ValueInterface.ToInt64(Nothing)) 1684Return CSng(ValueInterface.ToInt64(Nothing)) 1829Return CDbl(ValueInterface.ToInt64(Nothing)) 2283Return CStr(ValueInterface.ToInt64(Nothing)) 2430Case TypeCode.Int64 : Return CastInt64Enum(iconv.ToInt64(Nothing), TargetType)
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (1)
84Return CDec(valueInterface.ToInt64(Nothing))
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (1)
92Return CDbl(valueInterface.ToInt64(Nothing))
Microsoft\VisualBasic\CompilerServices\IntegerType.vb (1)
84Return CInt(ValueInterface.ToInt64(Nothing))
Microsoft\VisualBasic\CompilerServices\LongType.vb (1)
87Return CLng(ValueInterface.ToInt64(Nothing))
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (38)
530Return ObjTstInt64(conv1.ToInt64(Nothing), 0) 533Return ObjTstInt64(0, conv2.ToInt64(Nothing)) 673Return ObjTstInt64(conv1.ToInt64(Nothing), conv2.ToInt64(Nothing)) 676Return ObjTstInt64(conv1.ToInt64(Nothing), ToVBBool(conv2)) 679Return ObjTstInt64(ToVBBool(conv1), conv2.ToInt64(Nothing)) 1005Int64Result = -conv.ToInt64(Nothing) 1170int64Value = Not iconv.ToInt64(Nothing) 1671Return AddInt64(conv1.ToInt64(Nothing), conv2.ToInt64(Nothing)) 1674Return AddInt64(conv1.ToInt64(Nothing), ToVBBool(conv2)) 1677Return AddInt64(ToVBBool(conv1), conv2.ToInt64(Nothing)) 1970Return SubInt64(conv1.ToInt64(Nothing), conv2.ToInt64(Nothing)) 1973Return SubInt64(conv1.ToInt64(Nothing), ToVBBool(conv2)) 1976Return SubInt64(ToVBBool(conv1), conv2.ToInt64(Nothing)) 2272Return MulInt64(conv1.ToInt64(Nothing), conv2.ToInt64(Nothing)) 2275Return MulInt64(conv1.ToInt64(Nothing), ToVBBool(conv2)) 2278Return MulInt64(ToVBBool(conv1), conv2.ToInt64(Nothing)) 2803Return ModInt64(conv1.ToInt64(Nothing), 0) 2827Return ModInt64(0, conv2.ToInt64(Nothing)) 2910Return ModInt64(conv1.ToInt64(Nothing), conv2.ToInt64(Nothing)) 2913Return ModInt64(conv1.ToInt64(Nothing), ToVBBool(conv2)) 2916Return ModInt64(ToVBBool(conv1), conv2.ToInt64(Nothing)) 3126Return IDivideInt64(LongType.FromString(conv1.ToString(Nothing)), conv2.ToInt64(Nothing)) 3149Return IDivideInt64(conv1.ToInt64(Nothing), 0) 3167Return IDivideInt64(0, conv2.ToInt64(Nothing)) 3182Return IDivideInt64(ToVBBool(conv1), conv2.ToInt64(Nothing)) 3201Return IDivideInt64(conv1.ToInt64(Nothing), ToVBBool(conv2)) 3260Return IDivideInt64(conv1.ToInt64(Nothing), conv2.ToInt64(Nothing)) 3286lng1 = conv1.ToInt64(Nothing) 3302lng2 = conv2.ToInt64(Nothing) 3368Return conv1.ToInt64(Nothing) << amount 3405Return conv1.ToInt64(Nothing) >> amount 3665Return iconv.ToInt64(Nothing)
Microsoft\VisualBasic\CompilerServices\ShortType.vb (1)
84Return CShort(ValueInterface.ToInt64(Nothing))
Microsoft\VisualBasic\CompilerServices\SingleType.vb (1)
98Return CSng(ValueInterface.ToInt64(Nothing))
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
127Return FromLong(ValueInterface.ToInt64(Nothing))
Microsoft\VisualBasic\Conversion.vb (2)
319LongValue = ValueInterface.ToInt64(Nothing) 430LongValue = ValueInterface.ToInt64(Nothing)
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\libraries\System.Private.CoreLib\src\System\Convert.cs (6)
154TypeCode.Int64 => v.ToInt64(provider), 196return value.ToInt64(provider); 268return ic.ToInt64(provider); 1235return value == null ? 0 : ((IConvertible)value).ToInt64(null); 1240return value == null ? 0 : ((IConvertible)value).ToInt64(provider); 1329return ((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);