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