19 implementations of ToSByte
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LinkTagHelperTest.cs (1)
1272
public sbyte
ToSByte
(IFormatProvider provider)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
52
public sbyte
ToSByte
(IFormatProvider provider) => Value.ToSByte(provider);
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
40
public readonly sbyte
ToSByte
(IFormatProvider? provider) => throw new NotSupportedException();
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
336
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
192
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
527
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1978
sbyte IConvertible.
ToSByte
(IFormatProvider? provider) => throw InvalidCast(nameof(SByte));
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
52
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1044
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
462
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2179
sbyte IConvertible.
ToSByte
(IFormatProvider? provider) => Convert.ToSByte(GetValue());
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
195
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
210
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
207
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
198
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
457
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
189
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
205
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
204
sbyte IConvertible.
ToSByte
(IFormatProvider? provider)
28 references to ToSByte
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
52
public sbyte ToSByte(IFormatProvider provider) => Value.
ToSByte
(provider);
Microsoft.VisualBasic.Core (18)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (15)
82
Return CBool(ValueInterface.
ToSByte
(Nothing))
226
Return CByte(ValueInterface.
ToSByte
(Nothing))
373
Return CSByte(ValueInterface.
ToSByte
(Nothing))
427
Return ValueInterface.
ToSByte
(Nothing)
516
Return CShort(ValueInterface.
ToSByte
(Nothing))
662
Return CUShort(ValueInterface.
ToSByte
(Nothing))
805
Return CInt(ValueInterface.
ToSByte
(Nothing))
950
Return CUInt(ValueInterface.
ToSByte
(Nothing))
1096
Return CLng(ValueInterface.
ToSByte
(Nothing))
1243
Return CULng(ValueInterface.
ToSByte
(Nothing))
1402
Return CDec(ValueInterface.
ToSByte
(Nothing))
1642
Return CSng(ValueInterface.
ToSByte
(Nothing))
1787
Return CDbl(ValueInterface.
ToSByte
(Nothing))
2265
Return CStr(ValueInterface.
ToSByte
(Nothing))
2424
Case TypeCode.SByte : Return CastSByteEnum(iconv.
ToSByte
(Nothing), TargetType)
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (1)
3650
Return iconv.
ToSByte
(Nothing)
Microsoft\VisualBasic\Conversion.vb (2)
298
Return Hex(ValueInterface.
ToSByte
(Nothing))
414
Return Oct(ValueInterface.
ToSByte
(Nothing))
System.Data.Common (3)
System\Data\Common\SByteStorage.cs (2)
195
value = ((IConvertible)value).
ToSByte
(FormatProvider);
231
_values[record] = ((IConvertible)value).
ToSByte
(FormatProvider);
System\Data\Common\SQLConvert.cs (1)
519
return ((IConvertible)(string)value).
ToSByte
(formatProvider);
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (6)
148
TypeCode.SByte => v.
ToSByte
(provider),
184
return value.
ToSByte
(provider);
256
return ic.
ToSByte
(provider);
535
return value == null ? (sbyte)0 : ((IConvertible)value).
ToSByte
(null);
541
return value == null ? (sbyte)0 : ((IConvertible)value).
ToSByte
(provider);
647
return ((IConvertible)value).
ToSByte
(null);