19 implementations of ToInt64
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LinkTagHelperTest.cs (1)
1267
public long
ToInt64
(IFormatProvider provider)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
51
public long
ToInt64
(IFormatProvider provider) => Value.ToInt64(provider);
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
39
public readonly long
ToInt64
(IFormatProvider? provider) => throw new NotSupportedException();
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
366
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
222
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
557
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1984
long IConvertible.
ToInt64
(IFormatProvider? provider) => throw InvalidCast(nameof(Int64));
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
82
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1074
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
492
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2185
long IConvertible.
ToInt64
(IFormatProvider? provider) => Convert.ToInt64(GetValue());
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
225
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
240
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
237
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
228
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
487
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
219
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
235
long IConvertible.
ToInt64
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
234
long IConvertible.
ToInt64
(IFormatProvider? provider)
82 references to ToInt64
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
333
return ((IConvertible)value).
ToInt64
(null);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (1)
427
return new ConstantModel(fieldInfo, ((IConvertible)fieldInfo.GetValue(null)).
ToInt64
(null));
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
51
public long ToInt64(IFormatProvider provider) => Value.
ToInt64
(provider);
Microsoft.VisualBasic.Core (64)
Microsoft\VisualBasic\CompilerServices\BooleanType.vb (1)
100
Return CBool(ValueInterface.
ToInt64
(Nothing))
Microsoft\VisualBasic\CompilerServices\ByteType.vb (1)
84
Return CByte(ValueInterface.
ToInt64
(Nothing))
Microsoft\VisualBasic\CompilerServices\Conversions.vb (15)
125
Return CBool(ValueInterface.
ToInt64
(Nothing))
268
Return CByte(ValueInterface.
ToInt64
(Nothing))
415
Return CSByte(ValueInterface.
ToInt64
(Nothing))
558
Return CShort(ValueInterface.
ToInt64
(Nothing))
704
Return CUShort(ValueInterface.
ToInt64
(Nothing))
847
Return CInt(ValueInterface.
ToInt64
(Nothing))
992
Return CUInt(ValueInterface.
ToInt64
(Nothing))
1138
Return CLng(ValueInterface.
ToInt64
(Nothing))
1150
Return ValueInterface.
ToInt64
(Nothing)
1285
Return CULng(ValueInterface.
ToInt64
(Nothing))
1444
Return CDec(ValueInterface.
ToInt64
(Nothing))
1684
Return CSng(ValueInterface.
ToInt64
(Nothing))
1829
Return CDbl(ValueInterface.
ToInt64
(Nothing))
2283
Return CStr(ValueInterface.
ToInt64
(Nothing))
2430
Case TypeCode.Int64 : Return CastInt64Enum(iconv.
ToInt64
(Nothing), TargetType)
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (1)
84
Return CDec(valueInterface.
ToInt64
(Nothing))
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (1)
92
Return CDbl(valueInterface.
ToInt64
(Nothing))
Microsoft\VisualBasic\CompilerServices\IntegerType.vb (1)
84
Return CInt(ValueInterface.
ToInt64
(Nothing))
Microsoft\VisualBasic\CompilerServices\LongType.vb (1)
87
Return CLng(ValueInterface.
ToInt64
(Nothing))
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (38)
530
Return ObjTstInt64(conv1.
ToInt64
(Nothing), 0)
533
Return ObjTstInt64(0, conv2.
ToInt64
(Nothing))
673
Return ObjTstInt64(conv1.
ToInt64
(Nothing), conv2.
ToInt64
(Nothing))
676
Return ObjTstInt64(conv1.
ToInt64
(Nothing), ToVBBool(conv2))
679
Return ObjTstInt64(ToVBBool(conv1), conv2.
ToInt64
(Nothing))
1005
Int64Result = -conv.
ToInt64
(Nothing)
1170
int64Value = Not iconv.
ToInt64
(Nothing)
1671
Return AddInt64(conv1.
ToInt64
(Nothing), conv2.
ToInt64
(Nothing))
1674
Return AddInt64(conv1.
ToInt64
(Nothing), ToVBBool(conv2))
1677
Return AddInt64(ToVBBool(conv1), conv2.
ToInt64
(Nothing))
1970
Return SubInt64(conv1.
ToInt64
(Nothing), conv2.
ToInt64
(Nothing))
1973
Return SubInt64(conv1.
ToInt64
(Nothing), ToVBBool(conv2))
1976
Return SubInt64(ToVBBool(conv1), conv2.
ToInt64
(Nothing))
2272
Return MulInt64(conv1.
ToInt64
(Nothing), conv2.
ToInt64
(Nothing))
2275
Return MulInt64(conv1.
ToInt64
(Nothing), ToVBBool(conv2))
2278
Return MulInt64(ToVBBool(conv1), conv2.
ToInt64
(Nothing))
2803
Return ModInt64(conv1.
ToInt64
(Nothing), 0)
2827
Return ModInt64(0, conv2.
ToInt64
(Nothing))
2910
Return ModInt64(conv1.
ToInt64
(Nothing), conv2.
ToInt64
(Nothing))
2913
Return ModInt64(conv1.
ToInt64
(Nothing), ToVBBool(conv2))
2916
Return ModInt64(ToVBBool(conv1), conv2.
ToInt64
(Nothing))
3126
Return IDivideInt64(LongType.FromString(conv1.ToString(Nothing)), conv2.
ToInt64
(Nothing))
3149
Return IDivideInt64(conv1.
ToInt64
(Nothing), 0)
3167
Return IDivideInt64(0, conv2.
ToInt64
(Nothing))
3182
Return IDivideInt64(ToVBBool(conv1), conv2.
ToInt64
(Nothing))
3201
Return IDivideInt64(conv1.
ToInt64
(Nothing), ToVBBool(conv2))
3260
Return IDivideInt64(conv1.
ToInt64
(Nothing), conv2.
ToInt64
(Nothing))
3286
lng1 = conv1.
ToInt64
(Nothing)
3302
lng2 = conv2.
ToInt64
(Nothing)
3368
Return conv1.
ToInt64
(Nothing) << amount
3405
Return conv1.
ToInt64
(Nothing) >> amount
3665
Return iconv.
ToInt64
(Nothing)
Microsoft\VisualBasic\CompilerServices\ShortType.vb (1)
84
Return CShort(ValueInterface.
ToInt64
(Nothing))
Microsoft\VisualBasic\CompilerServices\SingleType.vb (1)
98
Return CSng(ValueInterface.
ToInt64
(Nothing))
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
127
Return FromLong(ValueInterface.
ToInt64
(Nothing))
Microsoft\VisualBasic\Conversion.vb (2)
319
LongValue = ValueInterface.
ToInt64
(Nothing)
430
LongValue = ValueInterface.
ToInt64
(Nothing)
System.Data.Common (6)
System\Data\Common\Int64Storage.cs (2)
198
value = ((IConvertible)value).
ToInt64
(FormatProvider);
234
_values[record] = ((IConvertible)value).
ToInt64
(FormatProvider);
System\Data\Common\SQLConvert.cs (1)
531
return ((IConvertible)(string)value).
ToInt64
(formatProvider);
System\Data\Filter\ConstNode.cs (1)
243
return convertible.
ToInt64
(NumberFormatInfo.InvariantInfo);
System\Data\ProviderBase\SchemaMapping.cs (2)
1155
targetColumn.AutoIncrementSeed = ((IConvertible)value).
ToInt64
(CultureInfo.InvariantCulture);
1165
targetColumn.AutoIncrementStep = ((IConvertible)value).
ToInt64
(CultureInfo.InvariantCulture);
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (6)
154
TypeCode.Int64 => v.
ToInt64
(provider),
196
return value.
ToInt64
(provider);
268
return ic.
ToInt64
(provider);
1235
return value == null ? 0 : ((IConvertible)value).
ToInt64
(null);
1240
return value == null ? 0 : ((IConvertible)value).
ToInt64
(provider);
1329
return ((IConvertible)value).
ToInt64
(null);
System.Private.Xml (1)
System\Xml\Serialization\Models.cs (1)
447
return new ConstantModel(fieldInfo, ((IConvertible)fieldInfo.GetValue(null)!).
ToInt64
(null));
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1391
long leftValue = left.
ToInt64
(null);
1392
long rightValue = right.
ToInt64
(null);