1 instantiation of SByte
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9589DefaultConstructor = delegate () { return new System.SByte(); },
181 references to SByte
dotnet-svcutil-lib (25)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
1317else if (e.Value is SByte) 1320Output.Write(((SByte)e.Value).ToString());
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
3290map[(int)BinXmlToken.XSD_BYTE] = typeof(System.SByte);
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
852if (type == typeof(SByte)) return "sbyte";
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (2)
927if (value < (int)SByte.MinValue || value > (int)SByte.MaxValue)
FrameworkFork\Microsoft.Xml\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
130WriteElementStringRaw(@"byte", @"", Microsoft.Xml.XmlConvert.ToString((System.SByte)((System.SByte)o)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
536AddPrimitive(typeof(SByte), "byte", "SByte", TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 632AddSoapEncodedPrimitive(typeof(SByte), "byte", ns, "SByte", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (3)
357return typeof(SByte); 421return typeof(SByte); 769value = default(Nullable<SByte>);
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (5)
715public static string ToString(SByte value) 984public static SByte ToSByte(string s) 986return SByte.Parse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 989internal static Exception TryToSByte(string s, out SByte result) 991if (!SByte.TryParse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\TypeCode.cs (1)
23else if (type == typeof(SByte))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (5)
452internal SByte ReadElementContentAsSignedByte() 458private SByte ToSByte(int value) 460if (value < SByte.MinValue || value > SByte.MaxValue) 464return (SByte)value;
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
125if (type == typeof(SByte))
Metrics (4)
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (4)
138var balance = currentNode.Balance; 450var balance = unbalanced.Balance; 518var rightLeftBalance = rightLeft.Balance; 546var leftRightBalance = leftRight.Balance;
Metrics.Legacy (4)
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (4)
138var balance = currentNode.Balance; 450var balance = unbalanced.Balance; 518var rightLeftBalance = rightLeft.Balance; 546var leftRightBalance = leftRight.Balance;
Microsoft.AspNetCore.Components.Server (12)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\T4\MessagePackReader.Integers.cs (12)
229/// Reads an <see cref="SByte"/> value from: 236public SByte ReadSByte() 244return checked((SByte)byteResult); 247return checked((SByte)sbyteResult); 250return checked((SByte)ushortResult); 253return checked((SByte)shortResult); 256return checked((SByte)uintResult); 259return checked((SByte)intResult); 262return checked((SByte)ulongResult); 265return checked((SByte)longResult); 269return checked((SByte)unchecked((sbyte)code)); 274return (SByte)code;
Microsoft.AspNetCore.Mvc.TagHelpers (1)
InputTagHelper.cs (1)
39{ nameof(SByte), "number" },
Microsoft.Build (1)
Resources\Constants.cs (1)
357availableStaticMethods.TryAdd("System.SByte", new Tuple<string, Type>(null, typeof(SByte)));
Microsoft.CodeAnalysis (3)
Collections\SmallDictionary.cs (3)
338var balance = unbalanced.Balance; 406var rightLeftBalance = rightLeft.Balance; 434var leftRightBalance = leftRight.Balance;
Microsoft.CodeAnalysis.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (4)
138var balance = currentNode.Balance; 450var balance = unbalanced.Balance; 518var rightLeftBalance = rightLeft.Balance; 546var leftRightBalance = leftRight.Balance;
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (4)
138var balance = currentNode.Balance; 450var balance = unbalanced.Balance; 518var rightLeftBalance = rightLeft.Balance; 546var leftRightBalance = leftRight.Balance;
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (4)
138var balance = currentNode.Balance; 450var balance = unbalanced.Balance; 518var rightLeftBalance = rightLeft.Balance; 546var leftRightBalance = leftRight.Balance;
Microsoft.CodeAnalysis.CSharp.Features (1)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
26nameof(SByte),
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (4)
138var balance = currentNode.Balance; 450var balance = unbalanced.Balance; 518var rightLeftBalance = rightLeft.Balance; 546var leftRightBalance = leftRight.Balance;
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (4)
138var balance = currentNode.Balance; 450var balance = unbalanced.Balance; 518var rightLeftBalance = rightLeft.Balance; 546var leftRightBalance = leftRight.Balance;
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
111Assert.Throws<InvalidOperationException>(() => { var c = cvNull.SByteValue; });
Microsoft.CodeAnalysis.Workspaces (1)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
306AddSpecialTypeSymbolAndItsAliases(nameof(SByte), SpecialType.System_SByte);
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
ObjectSerializationTests.cs (6)
279TestRoundTripValue(SByte.MaxValue); 414writer.WriteSByte(SByte.MaxValue); 438Assert.Equal(SByte.MaxValue, reader.ReadSByte()); 468writer.WriteScalarValue(SByte.MaxValue); 506Assert.Equal(SByte.MaxValue, (SByte)reader.ReadScalarValue());
Microsoft.Data.Analysis (14)
DataFrameColumnCollection.cs (1)
427throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(SByte)));
PrimitiveDataFrameColumnComputations.cs (13)
3682var ret = column.Buffers[0].ReadOnlySpan[0]; 3705var ret = sbyte.MinValue; 3746var ret = column.Buffers[0].ReadOnlySpan[0]; 3769var ret = sbyte.MaxValue; 3810var ret = (sbyte)1; 3833var ret = default(sbyte); 3874var ret = (sbyte)0; 3897var ret = default(sbyte); 3938var value = sbyte.MinValue; 3961var value = sbyte.MinValue; 3986var value = sbyte.MaxValue; 4009var value = sbyte.MaxValue; 4078var value = (sbyte)0;
Microsoft.Maui.Controls (2)
Xaml\TypeConversionExtensions.cs (2)
174 if (toType == typeof(SByte)) 175 return SByte.Parse(str, CultureInfo.InvariantCulture);
Microsoft.Maui.Controls.Build.Tasks (1)
NodeILExtensions.cs (1)
237 yield return Instruction.Create(OpCodes.Ldc_I4, unchecked((int)TryFormat(s => SByte.Parse(s, CultureInfo.InvariantCulture), node, str)));
Microsoft.Maui.Controls.Xaml (2)
CreateValuesVisitor.cs (2)
349 if (nodeType == typeof(SByte) && sbyte.TryParse(valuestring, NumberStyles.Number, CultureInfo.InvariantCulture, out var sbyteval))
Microsoft.ML.Core (2)
Data\DataKind.cs (1)
39/// <summary>1-byte integer, type of <see cref="System.SByte"/>.</summary>
Utilities\Stream.cs (1)
286foreach (var v in e)
Microsoft.ML.Data (48)
Data\Conversion.cs (46)
20using I1 = SByte; 118AddStd<I1, I1>(Convert); 119AddStd<I1, I2>(Convert); 120AddStd<I1, I4>(Convert); 121AddStd<I1, I8>(Convert); 122AddStd<I1, R4>(Convert); 123AddStd<I1, R8>(Convert); 124AddAux<I1, SB>(Convert); 125AddStd<I1, BL>(Convert); 126AddStd<I1, TX>(Convert); 128AddStd<I2, I1>(Convert); 138AddStd<I4, I1>(Convert); 148AddStd<I8, I1>(Convert); 222AddStd<TX, I1>(Convert); 240AddStd<BL, I1>(Convert); 278AddIsDef<I1>(IsDefault); 300AddTryParse<I1>(TryParse); 776private bool IsDefault(in I1 src) => src == default(I1); 807public void Convert(in I1 src, ref I1 dst) => dst = src; 808public void Convert(in I2 src, ref I1 dst) => dst = (I1)src; 809public void Convert(in I4 src, ref I1 dst) => dst = (I1)src; 810public void Convert(in I8 src, ref I1 dst) => dst = (I1)src; 814public void Convert(in I1 src, ref I2 dst) => dst = src; 821public void Convert(in I1 src, ref I4 dst) => dst = src; 828public void Convert(in I1 src, ref I8 dst) => dst = src; 879public void Convert(in I1 src, ref R4 dst) => dst = (R4)src; 897public void Convert(in I1 src, ref R8 dst) => dst = (R8)src; 915public void Convert(in I1 src, ref SB dst) { ClearDst(ref dst); dst.Append(src); } 940public void Convert(in I1 src, ref TX dst) => dst = src.ToString().AsMemory(); 960public void Convert(in I1 src, ref BL dst) => dst = System.Convert.ToBoolean(src); 1217public bool TryParse(in TX src, out I1 dst) 1220TryParseSigned(I1.MaxValue, in src, out long? res); 1227Contracts.Check((I1)res == res, "Overflow or underflow occurred while converting value in text to sbyte."); 1228dst = (I1)res; 1451private I1 ParseI1(in TX src) 1453TryParseSigned(I1.MaxValue, in src, out long? res); 1455Contracts.Check((I1)res == res, "Overflow or underflow occurred while converting value in text to sbyte."); 1456return (I1)res; 1645public void Convert(in TX span, ref I1 value) 1722public void Convert(in BL src, ref I1 dst) => dst = System.Convert.ToSByte(src);
Data\DataViewTypeManager.cs (1)
28typeof(Boolean), typeof(SByte), typeof(Byte),
Transforms\Hashing.cs (1)
917foreach (var value in values.DenseValues())
Microsoft.ML.OnnxTransformer (3)
OnnxTypeParser.cs (1)
36scalarType = typeof(System.SByte);
OnnxUtils.cs (2)
507typeof(SByte), 523{ typeof(SByte) , InternalDataKind.I1},
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
786[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.SByte))]
netstandard (1)
netstandard.cs (1)
1820[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.SByte))]
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5503case KnownElements.SByte: t = typeof(SByte); break;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
196else if (typeof(SByte).IsAssignableFrom(type))
PresentationFramework (7)
MS\Internal\Data\DefaultValueConverter.cs (2)
529typeof(UInt32), typeof(UInt64), typeof(UInt16), typeof(SByte), // non-CLS compliant types 536typeof(UInt32), typeof(UInt64), typeof(UInt16), typeof(SByte), // non-CLS compliant types
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
637case 544: t = () => typeof(SByte); break;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
1139SByte flags = _binaryReader.ReadSByte(); 2341private void InjectPropertyAndFrameIfNeeded(XamlType elementType, SByte flags)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9586typeof(System.SByte),
System\Windows\Markup\KnownTypes.cs (1)
6091case KnownElements.SByte: t = typeof(System.SByte); break;
Roslyn.Diagnostics.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (4)
138var balance = currentNode.Balance; 450var balance = unbalanced.Balance; 518var rightLeftBalance = rightLeft.Balance; 546var leftRightBalance = leftRight.Balance;
System.Linq.Expressions (3)
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
70case TypeCode.SByte: return FastCreate<SByte>(target, pi); 114case TypeCode.SByte: return FastCreate<T0, SByte>(target, pi); 156case TypeCode.SByte: return new FuncCallInstruction<T0, T1, SByte>(target);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1961sbyte IConvertible.ToSByte(IFormatProvider? provider) => throw InvalidCast(nameof(SByte));
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
736[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.SByte))]
Test.Utilities (4)
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (4)
138var balance = currentNode.Balance; 450var balance = unbalanced.Balance; 518var rightLeftBalance = rightLeft.Balance; 546var leftRightBalance = leftRight.Balance;
Text.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (4)
138var balance = currentNode.Balance; 450var balance = unbalanced.Balance; 518var rightLeftBalance = rightLeft.Balance; 546var leftRightBalance = leftRight.Balance;
UIAutomationTypes (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (2)
2051return (SByte) (0xFF & (SByte) val);