1 instantiation of UInt16
PresentationFramework (1)
451 references to UInt16
dotnet-svcutil-lib (37)
Microsoft.AspNetCore.Components.Server (16)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Server.IIS (4)
Microsoft.AspNetCore.Shared.Tests (4)
Microsoft.Build (1)
Microsoft.Build.Tasks.Core (22)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.CodeAnalysis (88)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
Microsoft.Data.Analysis (14)
Microsoft.DotNet.SignCheckLibrary (25)
Interop\PortableExecutable\ImageDosHeader.cs (20)
16public UInt16 e_magic;
20public UInt16 e_cblp;
24public UInt16 e_cp;
28public UInt16 e_crlc;
32public UInt16 e_cparhdr;
36public UInt16 e_minalloc;
40public UInt16 e_maxalloc;
44public UInt16 e_ss;
48public UInt16 e_sp;
52public UInt16 e_csum;
56public UInt16 e_ip;
60public UInt16 e_cs;
64public UInt16 elfarlc;
68public UInt16 e_ovno;
73public UInt16[] e_res;
77public UInt16 e_oemid;
81public UInt16 e_oeminfo;
86public UInt16[] e_res2;
125e_res = new UInt16[] { reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16() },
128e_res2 = new UInt16[] { reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16() },
Microsoft.Extensions.Caching.Hybrid.Tests (8)
PayloadTests.cs (8)
56var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _);
85var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _);
121var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _);
151var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _);
189var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _);
211var result = HybridCachePayload.TryParse(new(bytes), "whatever", TagSet.Empty, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _);
238var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength - 1), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _);
265var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength + 1), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _);
Microsoft.Maui.Controls (6)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.Xaml (2)
Microsoft.ML.Core (2)
Microsoft.ML.Data (66)
Data\Conversion.cs (53)
30using U2 = UInt16;
159AddStd<U1, U2>(Convert);
169AddStd<U2, U1>(Convert);
170AddStd<U2, U2>(Convert);
171AddStd<U2, U4>(Convert);
172AddStd<U2, U8>(Convert);
173AddStd<U2, UG>(Convert);
174AddStd<U2, R4>(Convert);
175AddStd<U2, R8>(Convert);
176AddAux<U2, SB>(Convert);
177AddStd<U2, BL>(Convert);
178AddStd<U2, TX>(Convert);
181AddStd<U4, U2>(Convert);
192AddStd<U8, U2>(Convert);
203AddStd<UG, U2>(Convert);
225AddStd<TX, U2>(Convert);
287AddIsDef<U2>(IsDefault);
296AddHasZero<U2>(HasZero);
305AddTryParse<U2>(TryParse);
785private bool IsDefault(in U2 src) => src == 0;
796private bool HasZero(in VBuffer<U2> src) { if (!src.IsDense) return true; var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (srcValues[i] == 0) return true; } return false; }
840public void Convert(in U2 src, ref U1 dst) => dst = src <= U1.MaxValue ? (U1)src : (U1)0;
847public void Convert(in U1 src, ref U2 dst) => dst = src;
848public void Convert(in U2 src, ref U2 dst) => dst = src;
849public void Convert(in U4 src, ref U2 dst) => dst = src <= U2.MaxValue ? (U2)src : (U2)0;
850public void Convert(in U8 src, ref U2 dst) => dst = src <= U2.MaxValue ? (U2)src : (U2)0;
851public void Convert(in UG src, ref U2 dst) => dst = src.High == 0 && src.Low <= U2.MaxValue ? (U2)src.Low : (U2)0;
856public void Convert(in U2 src, ref U4 dst) => dst = src;
864public void Convert(in U2 src, ref U8 dst) => dst = src;
872public void Convert(in U2 src, ref UG dst) => dst = new UG(src, 0);
884public void Convert(in U2 src, ref R4 dst) => dst = src;
902public void Convert(in U2 src, ref R8 dst) => dst = src;
920public void Convert(in U2 src, ref SB dst) => ClearDst(ref dst).Append(src);
945public void Convert(in U2 src, ref TX dst) => dst = src.ToString().AsMemory();
965public void Convert(in U2 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
1000public bool TryParse(in TX src, out U2 dst)
1003if (!TryParse(in src, out res) || res > U2.MaxValue)
1008dst = (U2)res;
1495private U2 ParseU2(in TX span)
1500if (res > U2.MaxValue)
1502return (U2)res;
1657public void Convert(in TX span, ref U2 value)
Transforms\ValueMapping.cs (2)
1166CastInputTo<UInt16>(ctx, out node, srcVariableName, opType, labelEncoderOutput, NumberDataViewType.Int64);
1168CastInputTo<UInt16>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
Microsoft.ML.OnnxTransformer (3)
Microsoft.ML.Sweeper (1)
Microsoft.ML.TensorFlow (4)
Microsoft.ML.Transforms (1)
Microsoft.VisualBasic.Core (53)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (25)
100If TypeOf Value Is UInt16 Then
101Return CBool(DirectCast(Value, UInt16))
244If TypeOf Value Is UInt16 Then
245Return CByte(DirectCast(Value, UInt16))
391If TypeOf Value Is UInt16 Then
392Return CSByte(DirectCast(Value, UInt16))
534If TypeOf Value Is UInt16 Then
535Return CShort(DirectCast(Value, UInt16))
680If TypeOf Value Is UInt16 Then
681Return CUShort(DirectCast(Value, UInt16))
823If TypeOf Value Is UInt16 Then
824Return CInt(DirectCast(Value, UInt16))
968If TypeOf Value Is UInt16 Then
969Return CUInt(DirectCast(Value, UInt16))
1114If TypeOf Value Is UInt16 Then
1115Return CLng(DirectCast(Value, UInt16))
1261If TypeOf Value Is UInt16 Then
1262Return CULng(DirectCast(Value, UInt16))
1420If TypeOf Value Is UInt16 Then
1421Return CDec(DirectCast(Value, UInt16))
1660If TypeOf Value Is UInt16 Then
1661Return CSng(DirectCast(Value, UInt16))
1805If TypeOf Value Is UInt16 Then
1806Return CDbl(DirectCast(Value, UInt16))
2386Private Shared Function CastUInt16Enum(ByVal Expression As UInt16, ByVal TargetType As Type) As Object
Microsoft\VisualBasic\CompilerServices\Operators.vb (27)
983If TypeOf Operand Is UInt16 Then
984Return NegateUInt16(DirectCast(Operand, UInt16))
1083Private Shared Function NegateUInt16(ByVal operand As UInt16) As Object
1219Private Shared Function NotUInt16(ByVal operand As UInt16, ByVal operandType As Type) As Object
1220Dim result As UInt16 = Not operand
1613Private Shared Function AndUInt16(ByVal left As UInt16, ByVal right As UInt16, Optional ByVal enumType As Type = Nothing) As Object
1614Dim result As UInt16 = left And right
1985Private Shared Function OrUInt16(ByVal left As UInt16, ByVal right As UInt16, Optional ByVal enumType As Type = Nothing) As Object
1986Dim result As UInt16 = left Or right
2378Private Shared Function XorUInt16(ByVal left As UInt16, ByVal right As UInt16, Optional ByVal enumType As Type = Nothing) As Object
2379Dim result As UInt16 = left Xor right
2847Private Shared Function AddUInt16(ByVal left As UInt16, ByVal right As UInt16) As Object
2851If result > UInt16.MaxValue Then
3315Private Shared Function SubtractUInt16(ByVal left As UInt16, ByVal right As UInt16) As Object
3319If result < UInt16.MinValue Then
3755Private Shared Function MultiplyUInt16(ByVal left As UInt16, ByVal right As UInt16) As Object
3759If result > UInt16.MaxValue Then
4607Private Shared Function ModUInt16(ByVal left As UInt16, ByVal right As UInt16) As Object
4999Private Shared Function IntDivideUInt16(ByVal left As UInt16, ByVal right As UInt16) As Object
Microsoft.VisualStudio.LanguageServices (1)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (3)
PresentationCore (23)
PresentationFramework (32)
Roslyn.Test.PdbUtilities (5)
System.Linq.Expressions (3)
System.Private.CoreLib (1)
System.Reflection.Metadata (2)
System.Runtime (1)
UIAutomationTypes (2)