1 instantiation of UInt16
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10704bamlType.DefaultConstructor = delegate() { return new System.UInt16(); };
730 references to UInt16
mscorlib (94)
microsoft\win32\oavariantlib.cs (1)
45typeof(UInt16),
microsoft\win32\win32native.cs (1)
551BCLDebug.Assert((stringBytes == 0 && buffer == IntPtr.Zero) || (stringBytes > 0 && stringBytes <= UInt16.MaxValue && buffer != IntPtr.Zero),
system\convert.cs (10)
124(RuntimeType)typeof(UInt16), 952if (value < 0 || value > UInt16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16")); 964if (value > UInt16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16")); 972if (value < 0 || value > UInt16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16")); 979if (value > UInt16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16")); 1003return UInt16.Parse(value, CultureInfo.CurrentCulture); 1010return UInt16.Parse(value, NumberStyles.Integer, provider); 2017if (fromBase != 10 && r <= UInt16.MaxValue) 2036if (r < UInt16.MinValue || r > UInt16.MaxValue)
system\decimal.cs (3)
952if (temp < UInt16.MinValue || temp > UInt16.MaxValue) throw new OverflowException(Environment.GetResourceString("Overflow_UInt16")); 1073UInt16 temp;
system\deployment\isolationinterop.cs (5)
2209[MarshalAs(UnmanagedType.U2)] public UInt16 Revision; 2210[MarshalAs(UnmanagedType.U2)] public UInt16 Build; 2211[MarshalAs(UnmanagedType.U2)] public UInt16 Minor; 2212[MarshalAs(UnmanagedType.U2)] public UInt16 Major; 2709[MarshalAs(UnmanagedType.U2)] public UInt16 ProcArch;
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (5)
126: TraceLoggingTypeInfo<UInt16> 136public override void WriteData(TraceLoggingDataCollector collector, ref UInt16 value) 438: TraceLoggingTypeInfo<UInt16[]> 448public override void WriteData(TraceLoggingDataCollector collector, ref UInt16[] value) 717collector.AddScalar(EnumHelper<UInt16>.Cast(value));
System\Diagnostics\Eventing\TraceLogging\Statics.cs (3)
617else if (elementType == typeof(UInt16)) 691else if (underlyingType == typeof(UInt16)) 729else if (dataType == typeof(UInt16))
system\enum.cs (7)
80UInt16 result = (UInt16)(Int16)value; 87UInt16 result = (UInt16)value; 94UInt16 result = (UInt16)(Char)value; 927if (underlyingType == typeof(UInt16))
system\globalization\encodingtable.cs (3)
238internal UInt16 codePage; 248internal UInt16 codePage; 249internal UInt16 uiFamilyCodePage;
system\int16.cs (2)
148if ((i < 0) || (i > UInt16.MaxValue)) { 178if ((i < 0) || i > UInt16.MaxValue) {
system\internal.cs (6)
123new List<UInt16>(); 131new KeyValuePair<Char, UInt16>('\0', UInt16.MinValue); 132new KeyValuePair<UInt16, Double>(UInt16.MinValue, Double.MinValue); 147SZArrayHelper<UInt16>(null);
system\io\unmanagedmemoryaccessor.cs (7)
420public UInt16 ReadUInt16(Int64 position) { 421int sizeOfType = sizeof(UInt16); 424UInt16 result; 436result = *((UInt16*)(pointer)); 915public void Write(Int64 position, UInt16 value) { 916int sizeOfType = sizeof(UInt16); 930*((UInt16*)pointer) = value;
system\resources\resourcereader.cs (1)
627else if (type == typeof(UInt16))
system\resources\resourcewriter.cs (3)
547else if (type == typeof(UInt16)) 615writer.Write((UInt16) (char) value); 631writer.Write((UInt16) value);
system\runtime\compilerservices\AsyncMethodBuilder.cs (3)
782(typeof(TResult) == typeof(UInt16) && default(UInt16) == (UInt16)(object)result) ||
system\runtime\interopservices\typelibconverter.cs (1)
37using WORD = System.UInt16;
system\Runtime\InteropServices\Variant.cs (2)
80[FieldOffset(0)] internal UInt16 _ui2; 444public UInt16 AsUi2 {
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (6)
38new Tuple<Type, PropertyType>(typeof(UInt16), PropertyType.UInt16), 90public UInt16 GetUInt16() 92return CoerceScalarValue<UInt16>(PropertyType.UInt16); 236public UInt16[] GetUInt16Array() 238return CoerceArrayValue<UInt16>(PropertyType.UInt16Array); 456else if (typeof(T) == typeof(UInt16)) {
system\runtime\interopservices\windowsruntime\ipropertyvalue.cs (2)
40UInt16 GetUInt16(); 94UInt16[] GetUInt16Array();
system\runtime\serialization\formatter.cs (1)
163} else if (varType==typeof(UInt16)) {
system\runtime\serialization\formatters\binary\binaryconverter.cs (3)
319array = new UInt16[length]; 504internal static Type typeofUInt16 = typeof(UInt16); 529internal static Type typeofUInt16Array = typeof(UInt16[]);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
148internal void WriteUInt16(UInt16 value)
system\runtime\serialization\formatters\binary\binaryparser.cs (1)
365internal UInt16 ReadUInt16()
system\runtime\serialization\formatters\binary\binaryutilclasses.cs (3)
845UInt16[] uint16A = null; 885uint16A = (UInt16[])array; 928uint16A[index] = UInt16.Parse(value, CultureInfo.InvariantCulture);
system\threading\volatile.cs (1)
88var value = location;
system\uint16.cs (12)
30, IComparable<UInt16>, IEquatable<UInt16> 52if (value is UInt16) { 53return ((int)m_value - (int)(((UInt16)value).m_value)); 58public int CompareTo(UInt16 value) { 63if (!(obj is UInt16)) { 66return m_value == ((UInt16)obj).m_value; 70public bool Equals(UInt16 obj) 144public static bool TryParse(String s, out UInt16 result) { 149public static bool TryParse(String s, NumberStyles style, IFormatProvider provider, out UInt16 result) { 154private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out UInt16 result) { 164result = (UInt16) i;
system\variant.cs (1)
98typeof(UInt16),
PresentationBuildTasks (3)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
193else if (typeof(UInt16).IsAssignableFrom(type))
Framework\System\Windows\Markup\KnownTypes.cs (1)
5492case KnownElements.UInt16: t = typeof(UInt16); break;
Framework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (1)
161else if ( allPositive && max <= UInt16.MaxValue )
PresentationCore (158)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (2)
237else if (typeof(UInt16) == type) 241else if (typeof(UInt16[]) == type)
Core\CSharp\System\Windows\FreezableCollection.cs (1)
45using WORD = System.UInt16;
Core\CSharp\system\windows\generated\TextDecoration.cs (1)
34using WORD = System.UInt16;
Core\CSharp\system\windows\generated\TextDecorationCollection.cs (1)
34using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Animation\Generated\ParallelTimeline.cs (1)
42using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Animation\Generated\Timeline.cs (1)
42using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
42using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineGroup.cs (1)
42using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\ColorTransform.cs (3)
213UInt16[] channel = new UInt16[4]; 228channel[i] = (UInt16)(srcValue[i] * (float)0xFFFF);
Core\CSharp\System\Windows\Media\Effects\Generated\BevelBitmapEffect.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffect.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectGroup.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectInput.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\BlurBitmapEffect.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\BlurEffect.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\DropShadowBitmapEffect.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\DropShadowEffect.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\Effect.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\EmbossBitmapEffect.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\ImplicitInputBrush.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\OuterGlowBitmapEffect.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\PixelShader.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Effects\Generated\ShaderEffect.cs (1)
41using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\ArcSegment.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\BezierSegment.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\BitmapCache.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\BitmapCacheBrush.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\Brush.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\CacheMode.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\CombinedGeometry.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\DashStyle.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\DoubleCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\Drawing.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\DrawingBrush.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\DrawingCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\DrawingGroup.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\DrawingImage.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\EllipseGeometry.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GeneralTransform.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GeneralTransformGroup.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\Geometry.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GeometryCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GeometryDrawing.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GeometryGroup.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GlyphRunDrawing.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GradientBrush.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GradientStop.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GradientStopCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\GuidelineSet.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\ImageBrush.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\ImageDrawing.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\ImageSource.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\Int32Collection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\LinearGradientBrush.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\LineGeometry.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\LineSegment.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\MatrixTransform.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\MediaTimeline.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\PathFigure.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\PathFigureCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\PathGeometry.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\PathSegment.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\PathSegmentCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\Pen.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\PointCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\PolyBezierSegment.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\PolyLineSegment.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\PolyQuadraticBezierSegment.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\QuadraticBezierSegment.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\RadialGradientBrush.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\RectangleGeometry.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\RotateTransform.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\ScaleTransform.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\SkewTransform.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\SolidColorBrush.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\StreamGeometry.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\TextEffect.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\TextEffectCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\TileBrush.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\Transform.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\TransformCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\TransformGroup.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\TranslateTransform.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\VectorCollection.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\VideoDrawing.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Generated\VisualBrush.cs (1)
43using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\GlyphRun.cs (7)
1921command.GlyphCount = checked((UInt16)glyphCount); 1922command.BidiLevel = checked((UInt16)_bidiLevel); 1924command.DWriteTextMeasuringMethod = (UInt16)DWriteTypeConverter. 2046private UInt16 ComposeFlags() 2048UInt16 flags = 0; 2051flags |= (UInt16)MilGlyphRun.Sideways; 2054flags |= (UInt16)MilGlyphRun.HasOffsets;
Core\CSharp\System\Windows\Media\Imaging\Generated\BitmapImage.cs (1)
31using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (1)
31using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Imaging\Generated\CroppedBitmap.cs (1)
31using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (1)
31using WORD = System.UInt16;
Core\CSharp\System\Windows\Media\Imaging\Generated\TransformedBitmap.cs (1)
31using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\AffineTransform3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\AmbientLight.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\AxisAngleRotation3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Camera.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\DiffuseMaterial.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\DirectionalLight.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\EmissiveMaterial.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DGroup.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Geometry3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\GeometryModel3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Light.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Material.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\MaterialCollection.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\MaterialGroup.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Matrix3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\MatrixCamera.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\MatrixTransform3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\MeshGeometry3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Model3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Model3DCollection.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Model3DGroup.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\OrthographicCamera.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\PerspectiveCamera.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Point3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Point3DCollection.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Point4D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\PointLight.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\PointLightBase.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\ProjectionCamera.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Quaternion.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\QuaternionRotation3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Rect3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\RotateTransform3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Rotation3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\ScaleTransform3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Size3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\SpecularMaterial.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\SpotLight.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Transform3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Transform3DGroup.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\TranslateTransform3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Vector3D.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
39using WORD = System.UInt16;
Core\CSharp\System\Windows\Media3D\Quaternion.cs (1)
43using WORD = System.UInt16;
Graphics\include\exports.cs (2)
2186command.countX = (UInt16)countX; 2187command.countY = (UInt16)countY;
Graphics\include\Generated\wgx_commands.cs (6)
241[FieldOffset(8)] internal UInt16 countX; 242[FieldOffset(12)] internal UInt16 countY; 405[FieldOffset(16)] internal UInt16 GlyphRunFlags; 409[FieldOffset(64)] internal UInt16 GlyphCount; 410[FieldOffset(68)] internal UInt16 BidiLevel; 411[FieldOffset(72)] internal UInt16 DWriteTextMeasuringMethod;
PresentationFramework (28)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (2)
539typeof(UInt32), typeof(UInt64), typeof(UInt16), typeof(SByte), // non-CLS compliant types 546typeof(UInt32), typeof(UInt64), typeof(UInt16), typeof(SByte), // non-CLS compliant types
src\Framework\MS\Internal\Printing\NativeMethods.cs (5)
85public UInt16 dmSpecVersion; 86public UInt16 dmDriverVersion; 87public UInt16 dmSize; 88public UInt16 dmDriverExtra; 103public UInt16 dmLogPixels;
src\Framework\System\windows\Documents\SelectionWordBreaker.cs (13)
76UInt16[] charType3 = new UInt16[2]; 154private static bool IsIdeographicCharType(UInt16 charType3) 162private static bool IsSameClass(UInt16 preceedingType3, CharClass preceedingClass, 163UInt16 followingType3, CharClass followingClass) 165const UInt16 IdeographicKanaTypes = SafeNativeMethods.C3_HALFWIDTH | SafeNativeMethods.C3_FULLWIDTH | SafeNativeMethods.C3_KATAKANA | SafeNativeMethods.C3_HIRAGANA; 166const UInt16 IdeographicTypes = IdeographicKanaTypes | SafeNativeMethods.C3_IDEOGRAPH; 177UInt16 typeDelta = (UInt16)((preceedingType3 & IdeographicTypes) ^ (followingType3 & IdeographicTypes)); 229UInt16[] charType1 = new UInt16[1]; 263UInt16 []charType3 = new UInt16[1];
src\Framework\System\Windows\Documents\TextFindEngine.cs (4)
119UInt16[] findPatternStartCharType1 = new UInt16[1]; 120UInt16[] findPatternEndCharType1 = new UInt16[1];
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
787case 695: t = () => typeof(UInt16); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10702typeof(System.UInt16),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6239case KnownElements.UInt16: t = typeof(System.UInt16); break;
src\Framework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (1)
161else if ( allPositive && max <= UInt16.MaxValue )
System (16)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
1197else if (e.Value is UInt16) { 1200Output.Write(((UInt16)e.Value).ToString(CultureInfo.InvariantCulture));
compmod\microsoft\visualbasic\VBCodeProvider.cs (2)
1069else if (e.Value is UInt16) { 1070Output.Write(((UInt16)e.Value).ToString(CultureInfo.InvariantCulture));
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (1)
129temp[typeof(UInt16)] = typeof(UInt16Converter);
compmod\system\componentmodel\UInt16Converter.cs (4)
31return typeof(UInt16); 46return UInt16.Parse(value, NumberStyles.Integer, formatInfo); 54return UInt16.Parse(value, culture); 61return ((UInt16)value).ToString("G", formatInfo);
net\System\Net\Sockets\Socket.cs (2)
2377if (lingerOption.LingerTime < 0 || lingerOption.LingerTime>(int)UInt16.MaxValue) { 2378throw new ArgumentException(SR.GetString(SR.ArgumentOutOfRange_Bounds_Lower_Upper, 0, (int)UInt16.MaxValue), "optionValue.LingerTime");
security\system\security\Authentication\ExtendedProtection\ServiceNameCollection.cs (2)
147UInt16 portValue; 148if (!UInt16.TryParse(port, NumberStyles.Integer, CultureInfo.InvariantCulture, out portValue))
services\monitoring\system\diagnosticts\EventData.cs (1)
24if (value > UInt16.MaxValue || value < 0)
services\monitoring\system\diagnosticts\EventSourceCreationData.cs (1)
73if (value > UInt16.MaxValue || value < 0)
services\monitoring\system\diagnosticts\Process.cs (1)
2775if (envBlock.Length > UInt16.MaxValue)
System.Activities (1)
System\Activities\Debugger\DebugInfo.cs (1)
359else if (t == typeof(UInt16))
System.AddIn (20)
System\Addin\MiniReflection\MetadataReader\Metadata.cs (1)
422(UInt16)(B.ReadByte() << 16) +
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (9)
74UInt16 magic = B.ReadUInt16(); 76UInt16 dataDirectoriesOffset = 0; 95UInt16 NSections = B.ReadUInt16(); 98for (UInt16 i = 0; i < NSections; i++) 218UInt16 NStreams = B.ReadUInt16(); 352UInt16 Major = B.ReadUInt16(); 353UInt16 Minor = B.ReadUInt16(); 354UInt16 Build = B.ReadUInt16(); 355UInt16 Revision = B.ReadUInt16();
System\Addin\MiniReflection\MiniAssembly.cs (4)
282UInt16 major = B.ReadUInt16(); 283UInt16 minor = B.ReadUInt16(); 284UInt16 build = B.ReadUInt16(); 285UInt16 revision = B.ReadUInt16();
System\Addin\MiniReflection\MiniParameterInfo.cs (1)
89return new TypeInfo(typeof(UInt16));
System\Addin\MiniReflection\TypeInfo.cs (5)
152UInt16 major = peFile.B.ReadUInt16(); 153UInt16 minor = peFile.B.ReadUInt16(); 154UInt16 build = peFile.B.ReadUInt16(); 155UInt16 revision = peFile.B.ReadUInt16(); 523UInt16 implFlags = peFile.B.ReadUInt16(); // MethodImplAttributes
System.AddIn.Contract (5)
System\Addin\Contract\RemoteArgument.cs (5)
618public RemoteArgument(System.UInt16 value) 627public RemoteArgument(System.UInt16 value, bool isByRef) 1301public System.UInt16 UInt16Value 1309return default(System.UInt16); 1315return (System.UInt16)this._value;
System.Core (3)
Microsoft\Scripting\Ast\ParameterExpression.cs (1)
74case TypeCode.UInt16: return new PrimitiveParameterExpression<UInt16>(name);
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (2)
1242return ConvertToArray (val,typeof(UInt16), sizeof(UInt16));
System.Data (117)
fx\src\bid\inc\cs\bidPrivateBase.cs (6)
425internal static void TraceBin(string constStrHeader, byte[] buff, UInt16 length) { 430if( (UInt16)buff.Length < length ){ 431length = (UInt16)buff.Length; 441internal static void TraceBinEx(byte[] buff, UInt16 length) { 443if( (UInt16)buff.Length < length ){ 444length = (UInt16)buff.Length;
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (1)
107ht.Add( typeof( System.UInt16 ), ExtendedClrTypeCode.UInt16 );
fx\src\data\System\Data\CodeGen\datacache.cs (1)
853col.DataType == typeof(Int16) || col.DataType == typeof(UInt16) ||
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
41typeof(UInt16),
fx\src\data\System\Data\Common\BigIntegerStorage.cs (4)
69else if (value.GetType() == typeof(UInt16)) { return (BigInteger)(UInt16)value; } 81else if (type == typeof(UInt16)) { return checked((UInt16)value); }
fx\src\data\System\Data\Common\DataStorage.cs (1)
79typeof(UInt16),
fx\src\data\System\Data\Common\ObjectStorage.cs (2)
232else if (valType == typeof(UInt16)){ 233values[recordNo] = BitConverter.GetBytes((UInt16)value);
fx\src\data\System\Data\Common\SQLConvert.cs (8)
74return (UInt16) value; 102return (UInt16)value; 142return (UInt16)value; 190return (UInt16)value; 232return (UInt16)value; 276return (UInt16)value; 506return ((IConvertible)(UInt16)value).ToString(formatProvider); 753return XmlConvert.ToString((UInt16) value);
fx\src\data\System\Data\Common\UInt16Storage.cs (23)
18private const UInt16 defaultValue = UInt16.MinValue; 20private UInt16[] values; 23: base(column, typeof(UInt16), defaultValue, StorageType.UInt16) { 54UInt16 mean; 55checked {mean = (UInt16)(meanSum / meanCount);} 97UInt16 min = UInt16.MaxValue; 111UInt16 max = UInt16.MinValue; 141throw ExprException.Overflow(typeof(UInt16)); 147UInt16 valueNo1 = values[recordNo1]; 148UInt16 valueNo2 = values[recordNo2]; 168UInt16 valueNo1 = values[recordNo]; 172return valueNo1.CompareTo((UInt16)value); 194UInt16 value = values[record]; 214UInt16[] newValues = new UInt16[capacity]; 227return XmlConvert.ToString((UInt16)value); 231return new UInt16[recordCount]; 235UInt16[] typedStore = (UInt16[]) store; 241values = (UInt16[]) store;
fx\src\data\System\Data\Common\UnsafeNativeMethods.cs (4)
49/*SQLUSMALLINT*/UInt16 ColumnNumber, 59/*SQLUSMALLINT*/UInt16 ColumnNumber, 69/*SQLUSMALLINT*/UInt16 ParameterNumber, 205/*SQLUSMALLINT*/UInt16 ColumnNumber,
fx\src\data\System\Data\DataException.cs (1)
1263string xchar = "0x" + ((UInt16)charValue).ToString("X", CultureInfo.InvariantCulture);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (6)
468Value_UI2((UInt16) value); 1016internal UInt16 Value_UI2() { 1019return unchecked((UInt16) RowBinding.ReadInt16(ValueOffset)); 1021private void Value_UI2(UInt16 value) { 1319if (variant is UInt16) { 1320value = (Int32)(UInt16) variant;
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (1)
541UInt16 indexTypeValue;
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (1)
160case VarEnum.VT_UI2: return typeof(System.UInt16);
fx\src\data\System\Data\Sql\SqlNotificationRequest.cs (2)
36if ((null != value) && (UInt16.MaxValue < value.Length)) { 60if ((null != value) && (UInt16.MaxValue < value.Length)) {
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (4)
96UInt16 keyPathLength = BitConverter.ToUInt16(encryptedColumnEncryptionKey, currentIndex); 97currentIndex += sizeof(UInt16); 100UInt16 cipherTextLength = BitConverter.ToUInt16(encryptedColumnEncryptionKey, currentIndex); 101currentIndex += sizeof(UInt16);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (4)
102UInt16 keyPathLength = BitConverter.ToUInt16(encryptedColumnEncryptionKey, currentIndex); 103currentIndex += sizeof(UInt16); 106UInt16 cipherTextLength = BitConverter.ToUInt16(encryptedColumnEncryptionKey, currentIndex); 107currentIndex += sizeof(UInt16);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
2280if (maxSize < -1 || maxSize >= UInt16.MaxValue) { // Do we need this? Is this the right place?
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (2)
410Bid.TraceBin("<sc.SqlInternalConnectionSmi.GetDTCAddress|ADV> whereAbouts", whereAbouts, (UInt16)whereAbouts.Length); 463Bid.TraceBin("<sc.SqlInternalConnectionSmi.PropagateTransactionCookie|ADV> transactionCookie", transactionCookie, (UInt16)transactionCookie.Length);
fx\src\data\System\Data\SqlClient\SqlSecurityUtility.cs (1)
274Debug.Assert(byteLength <= UInt16.MaxValue, @"Encrypted column encryption key cannot be larger than 65536 bytes");
fx\src\data\System\Data\SqlClient\TdsEnums.cs (1)
607public static readonly UInt16[] CODE_PAGE_FROM_SORT_ID = {
fx\src\data\System\Data\SqlClient\TdsParser.cs (24)
2594UInt16 serverLen; 2603UInt16 oldLength; 5151daypartShort = (UInt16)((unencryptedBytes[1] << 8) + unencryptedBytes[0]); 5152timepartShort = (UInt16)((unencryptedBytes[3] << 8) + unencryptedBytes[2]); 8386if (size < 0 || (size >= UInt16.MaxValue && maxsize != -1)) 9310UInt16 flags; 9311flags = (UInt16)(md.updatability << 2); 9312flags |= (UInt16)(md.isNullable ? (UInt16)TdsEnums.Nullable : (UInt16)0); 9313flags |= (UInt16)(md.isIdentity ? (UInt16)TdsEnums.Identity : (UInt16)0); 9318flags |= (UInt16)(md.isEncrypted ? (UInt16)(TdsEnums.IsEncrypted << 8) : (UInt16)0); 9693else if (UInt16.MaxValue < callbackId.Length) { 9700else if (UInt16.MaxValue < service.Length) { 9741Debug.Assert(UInt16.MaxValue >= callbackId.Length, "CallbackId length is out of range"); 9743Debug.Assert(UInt16.MaxValue >= service.Length, "Service length is out of range"); 10073if (0 > dt.DayTicks || dt.DayTicks > UInt16.MaxValue) 10658if (0 > dt.days || dt.days > UInt16.MaxValue) 10845if (0 > dt.days || dt.days > UInt16.MaxValue) 11016if (0 > dt.DayTicks || dt.DayTicks > UInt16.MaxValue)
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (2)
412internal UInt16 Port { get; private set; } 415internal RoutingInfo(byte protocol, UInt16 port, string servername) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (5)
515Bid.TraceBin("<sc.TdsParserStateObject.NullBitmap.Initialize|INFO|ADV> NBCROW bitmap data: ", _nullBitmap, (UInt16)_nullBitmap.Length); 1458value = (UInt16)((buffer[offset + 1] << 8) + buffer[offset]); 2434Bid.TraceBin("<sc.TdsParser.ReadNetworkPacketAsyncCallback|INFO|ADV> Packet read", _inBuff, (UInt16)_inBytesRead); 3062Bid.TraceBin("<sc.TdsParser.WritePacket|INFO|ADV> Packet sent", _outBuff, (UInt16)_outBytesUsed); 3222Bid.TraceBin("<sc.TdsParser.WritePacket|INFO|ADV> Packet sent", _outBuff, (UInt16)_outBytesUsed);
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
507Debug.Assert (0 <= dt.days && dt.days <= UInt16.MaxValue, "Invalid DateTime '" + value + "' for SmallDateTime");
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (4)
881System.Diagnostics.Debug.Assert( path.Length <= ( UInt16.MaxValue / sizeof(char) ) ); 884objectName.length = (UInt16)(path.Length * sizeof(char)); 885objectName.maximumLength = (UInt16)(path.Length * sizeof(char)); 1037if (transactionContext.Length >= UInt16.MaxValue)
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (3)
253internal UInt16 length; 254internal UInt16 maximumLength; 292internal UInt16 EaValueLength;
fx\src\data\System\Data\XDRSchema.cs (1)
247new NameType("ui2" , typeof(UInt16) ), /* XDR */
fx\src\data\System\Data\xmlsaver.cs (1)
232if (type == typeof(UInt16))
fx\src\data\System\Data\XMLSchema.cs (1)
1599new NameType("unsignedShort" , typeof(UInt16) ), /* XSD Apr */
System.Data.Entity (8)
System\Data\Objects\DataClasses\StructuralObject.cs (8)
1227protected internal static UInt16 SetValidValue(UInt16 value, string propertyName) 1244protected internal static UInt16 SetValidValue(UInt16 value) 1263protected internal static Nullable<UInt16> SetValidValue(Nullable<UInt16> value, string propertyName) 1280protected internal static Nullable<UInt16> SetValidValue(Nullable<UInt16> value)
System.Data.Linq (1)
SqlClient\Query\SqlMethodCallConverter.cs (1)
2427targetType = typeof(UInt16);
System.Data.Services.Client (2)
System\Data\Services\Client\ClientConvert.cs (2)
343return XmlConvert.ToString((UInt16)propertyValue); 481types[(int)StorageType.UInt16] = typeof(UInt16);
System.Data.SqlXml (1)
System\Xml\Xsl\XsltOld\Processor.cs (1)
214parameter is Int16 || parameter is UInt16 ||
System.Management (12)
Instrumentation\SchemaMapping.cs (2)
400 else if(t2 == typeof(Int16) || t2 == typeof(UInt16) || t2 == typeof(Char)) 522 else if(t2 == typeof(UInt16))
property.cs (10)
286 val = new UInt16 [length]; 289 ((UInt16[])val) [i] = (UInt16)((Int32)(wmiValueArray.GetValue(i))); 348 val = (UInt16)((Int32)wmiValue); 431 ((Int32[])(wmiValue))[i] = (Int32)(Convert.ToUInt16(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.UInt16)))); 551 wmiValue = (Int32)(Convert.ToUInt16(val,(IFormatProvider)culInfo.GetFormat(typeof(System.UInt16)))); 663 else if (elementType == typeof(System.UInt16)) 671 ((int[])wmiValue) [i] = ((IConvertible)((System.UInt16)(arrayValue[i]))).ToInt32(null); 767 if (valueType == typeof(System.UInt16)) 770 wmiValue = ((IConvertible)((System.UInt16)val)).ToInt32(null);
System.Messaging (2)
System\Messaging\ActiveXMessageFormatter.cs (2)
344else if (obj is UInt16) 347byte[] bytes = BitConverter.GetBytes((UInt16)obj);
System.Numerics (3)
System\Numerics\BigInteger.cs (2)
1148public static implicit operator BigInteger(UInt16 value) 1208public static explicit operator UInt16(BigInteger value)
System\Numerics\Complex.cs (1)
224public static implicit operator Complex(UInt16 value) {
System.Runtime.Remoting (28)
channels\core\socketmanager.cs (3)
367public UInt16 ReadUInt16() 371return (UInt16)(_byteBuffer[0] & 0xFF | _byteBuffer[1] << 8); 374public void WriteUInt16(UInt16 value, Stream outputStream)
channels\ipc\ipcclientmanager.cs (1)
51UInt16 operation;
channels\ipc\ipcmanager.cs (3)
60UInt16 operation; 83UInt16 headerType = ReadUInt16(); 114UInt16 statusCode = ReadUInt16();
channels\tcp\tcpclientsocketmanager.cs (1)
83UInt16 operation;
channels\tcp\tcpsocketmanager.cs (4)
68protected void ReadVersionAndOperation(out UInt16 operation) 94UInt16 header = ReadUInt16(); 121UInt16 headerType = ReadUInt16(); 152UInt16 statusCode = ReadUInt16();
channels\tcp\tcpstreams.cs (1)
293UInt16 operation;
channels\tcp\tcpwireprotocol.cs (14)
27internal const UInt16 Request = 0; 28internal const UInt16 OneWayRequest = 1; 29internal const UInt16 Reply = 2; 34internal const UInt16 ContentLength = 0; 35internal const UInt16 Chunked = 1; 42internal const UInt16 EndOfHeaders = 0; // (can appear once at end of headers) 43internal const UInt16 Custom = 1; 44internal const UInt16 StatusCode = 2; 45internal const UInt16 StatusPhrase = 3; 46internal const UInt16 RequestUri = 4; 47internal const UInt16 CloseConnection = 5; 48internal const UInt16 ContentType = 6; 66internal const UInt16 Success = 0; // data was successfully received 67internal const UInt16 GenericError = 1; // an unknown error occurred
metadata\sudscommon.cs (1)
85internal static Type typeofUInt16 = typeof(UInt16);
System.Runtime.Serialization (7)
System\Runtime\Serialization\DataContract.cs (1)
746type = typeof(UInt16);
System\Runtime\Serialization\XmlReaderDelegator.cs (6)
679public UInt16 ReadElementContentAsUnsignedShort() 684internal UInt16 ReadContentAsUnsignedShort() 689UInt16 ToUInt16(int value) 691if (value < UInt16.MinValue || value > UInt16.MaxValue) 695return (UInt16)value;
System.ServiceModel (2)
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (2)
339else if (obj is UInt16) 341byte[] bytes = BitConverter.GetBytes((UInt16)obj);
System.ServiceModel.Internals (4)
System\Runtime\TypeHelper.cs (4)
353result = (T)(object)(UInt16)byteSource; 404UInt16 uint16Source = (UInt16)source; 517result = (T)(object)(UInt16)charSource;
System.ServiceModel.Web (3)
System\ServiceModel\Dispatcher\QueryStringConverter.cs (3)
35this.defaultSupportedQueryStringTypes.Add(typeof(UInt16), null); 97return parameter == null ? default(UInt16) : XmlConvert.ToUInt16(parameter); 196return XmlConvert.ToString((UInt16) parameter);
System.Web (8)
Profile\HttpProfileBase.cs (1)
596return typeof(UInt16);
State\OutOfProcStateClientManager.cs (2)
212port = UInt16.Parse(ipv6RegexMatch.Groups["port"].Value, CultureInfo.InvariantCulture); 223port = UInt16.Parse(parts[1], CultureInfo.InvariantCulture);
State\SessionStateItemCollection.cs (1)
181t=typeof(UInt16);
UI\PropertyMapper.cs (1)
117(type == typeof(UInt16)) ||
Util\altserialization.cs (2)
104else if (value is UInt16) { 106writer.Write((UInt16) value);
WebSockets\AspNetWebSocket.cs (1)
483|| closeStatus > (WebSocketCloseStatus)UInt16.MaxValue
System.Web.DataVisualization (1)
Common\DataManager\DataSeries.cs (1)
932 type == typeof(UInt16) ||
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
364return typeof(UInt16); 419return typeof(UInt16);
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
606typeof(UInt16),
System.Web.Services (1)
System\Web\Services\Protocols\Scalars.cs (1)
71type == typeof(UInt16) ||
System.Windows.Forms (10)
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (5)
2225[MarshalAs(UnmanagedType.U2)] public UInt16 Revision; 2226[MarshalAs(UnmanagedType.U2)] public UInt16 Build; 2227[MarshalAs(UnmanagedType.U2)] public UInt16 Minor; 2228[MarshalAs(UnmanagedType.U2)] public UInt16 Major; 2725[MarshalAs(UnmanagedType.U2)] public UInt16 ProcArch;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
952return typeof(UInt16);
winforms\Managed\System\WinForms\DataGridTable.cs (1)
1472dataType.Equals(typeof(UInt16)) ||
winforms\Managed\System\WinForms\NativeMethods.cs (3)
4357else if (t == typeof(UInt16)) { 4439return (UInt16)(0xFFFF & (UInt16) val);
System.Windows.Forms.DataVisualization (1)
Common\DataManager\DataSeries.cs (1)
932 type == typeof(UInt16) ||
System.Workflow.Activities (2)
Rules\CodeDomDecompiler.cs (2)
159UInt16 cv = (UInt16)charValue;
System.Xml (27)
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
2891map[(int)BinXmlToken.XSD_UNSIGNEDSHORT] = typeof(UInt16); 3913UInt16 GetUInt16(int pos) { 3915return (UInt16)(data[pos] | data[pos + 1] << 8);
System\Xml\Cache\XPathNode.cs (3)
326Debug.Assert(info != null && idxParent <= UInt16.MaxValue); 395Debug.Assert(pageSibling != null && idxSibling != 0 && idxSibling <= UInt16.MaxValue, "Bad argument"); 412Debug.Assert(pageSimilar != null && idxSimilar != 0 && idxSimilar <= UInt16.MaxValue, "Bad argument");
System\Xml\Cache\XPathNodeHelper.cs (1)
166Debug.Assert(idxNode <= UInt16.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (2)
852if (value < (int) UInt16.MinValue || value > (int) UInt16.MaxValue)
System\Xml\Serialization\CodeExporter.cs (1)
284else if (type == typeof(UInt16)) {
System\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
117WriteElementStringRaw(@"unsignedShort", @"", System.Xml.XmlConvert.ToString((System.UInt16)((System.UInt16)o)));
System\Xml\Serialization\Types.cs (2)
464AddPrimitive(typeof(UInt16), "unsignedShort", "UInt16", TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 560AddSoapEncodedPrimitive(typeof(UInt16), "unsignedShort", ns, "UInt16", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
System\Xml\Serialization\XmlCodeExporter.cs (1)
241type == typeof(UInt16) ||
System\Xml\Serialization\Xmlcustomformatter.cs (1)
99return XmlConvert.ToString((UInt16)value);
System\Xml\Serialization\XmlSerializationReader.cs (3)
350return typeof(UInt16); 413return typeof(UInt16); 740value = default(Nullable<UInt16>);
System\Xml\Serialization\XmlSerializationWriter.cs (1)
280value = XmlConvert.ToString((UInt16)o);
System\Xml\XmlConvert.cs (5)
694public static string ToString(UInt16 value) { 981public static UInt16 ToUInt16 (string s) { 982return UInt16.Parse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 986internal static Exception TryToUInt16(string s, out UInt16 result) { 987if (!UInt16.TryParse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) {
System\Xml\XPath\Internal\ExtensionQuery.cs (2)
103if (value is UInt16) return (double)(UInt16)value;
WindowsBase (150)
Base\MS\Internal\IO\Zip\ZipArchive.cs (5)
375static internal void VerifyVersionNeededToExtract(UInt16 version) 380case (UInt16)ZipIOVersionNeededToExtract.StoredData: break; 381case (UInt16)ZipIOVersionNeededToExtract.VolumeLabel: break; 382case (UInt16)ZipIOVersionNeededToExtract.DeflatedData: break; 383case (UInt16)ZipIOVersionNeededToExtract.Zip64FileFormat: break;
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (3)
247return UInt16.MaxValue; 593internal static int CopyBytes(UInt16 value, byte[] buffer, int offset) 595Debug.Assert(checked(buffer.Length-offset) >= sizeof(UInt16));
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryBlock.cs (1)
307return (Count >= UInt16.MaxValue) ||
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryFileHeader.cs (21)
96if (header._diskNumberStart == UInt16.MaxValue) 171internal UInt16 VersionNeededToExtract 179internal UInt16 GeneralPurposeBitFlag 366_versionNeededToExtract = (UInt16)ZipIOVersionNeededToExtract.Zip64FileFormat; 379_versionNeededToExtract = (UInt16)ZipIOBlockManager.CalcVersionNeededToExtractFromCompression 390_compressionMethod = (UInt16)fileBlock.CompressionMethod; 395_fileNameLength = (UInt16)fileBlock.FileName.Length; // this is safe cast as file name is always validate for size 445(_compressionMethod != (UInt16)fileBlock.CompressionMethod) || 491if ((_versionNeededToExtract < (UInt16)ZipIOVersionNeededToExtract.Zip64FileFormat) && 502if ((_compressionMethod != (UInt16)CompressionMethodEnum.Stored) && 503(_compressionMethod != (UInt16)CompressionMethodEnum.Deflated)) 514private const UInt16 _streamingBitMask = 0x08; // bit #3 520private UInt16 _versionMadeBy; 521private UInt16 _versionNeededToExtract; 522private UInt16 _generalPurposeBitFlag; 523private UInt16 _compressionMethod; 528private UInt16 _fileNameLength; 529private UInt16 _extraFieldLength; 530private UInt16 _fileCommentLength; 531private UInt16 _diskNumberStart; 532private UInt16 _internalFileAttributes;
Base\MS\Internal\IO\Zip\ZipIOEndOfCentralDirectoryBlock.cs (14)
127UInt16 centralDirCount = UInt16.MaxValue; 130UInt16 numberOfTheDiskWithTheStartOfTheCentralDirectory = 0; 131UInt16 numberOfThisDisk = 0; 138centralDirCount = (UInt16)_blockManager.CentralDirectoryBlock.Count; 284return ((_numberOfThisDisk == UInt16.MaxValue) || 285(_numberOfTheDiskWithTheStartOfTheCentralDirectory == UInt16.MaxValue) || 286(_totalNumberOfEntriesInTheCentralDirectoryOnThisDisk == UInt16.MaxValue) || 287(_totalNumberOfEntriesInTheCentralDirectory == UInt16.MaxValue) || 441private UInt16 _numberOfThisDisk; 442private UInt16 _numberOfTheDiskWithTheStartOfTheCentralDirectory; 443private UInt16 _totalNumberOfEntriesInTheCentralDirectoryOnThisDisk; 444private UInt16 _totalNumberOfEntriesInTheCentralDirectory; 447private UInt16 _zipFileCommentLength;
Base\MS\Internal\IO\Zip\ZipIOExtraField.cs (7)
176if (Math.Abs(size) > UInt16.MaxValue) 185_paddingElement.PaddingSize -= (UInt16) size; 215_paddingElement.PaddingSize = (UInt16) size; 221if ((_paddingElement.PaddingSize - size) > UInt16.MaxValue) 225_paddingElement.PaddingSize = (UInt16) (_paddingElement.PaddingSize - size); 230internal UInt16 Size 234UInt16 size = 0;
Base\MS\Internal\IO\Zip\ZipIOExtraFieldElement.cs (15)
52UInt16 id = reader.ReadUInt16(); 53UInt16 size = reader.ReadUInt16(); 100internal virtual void ParseDataField(BinaryReader reader, UInt16 size) 141internal virtual UInt16 SizeField 160internal virtual UInt16 Size 164return checked((UInt16) (_size + _minimumSize)); // the real field size has 2 UInt16 fields for Id and size 171internal static UInt16 MinimumSize 184internal ZipIOExtraFieldElement(UInt16 id) 190private ZipIOExtraFieldElement(UInt16 id, byte[] data) 196_size = checked((UInt16) data.Length); 204private UInt16 _id; 205private UInt16 _size; 210private static readonly UInt16 _minimumSize = (UInt16) (2 * sizeof(UInt16));
Base\MS\Internal\IO\Zip\ZipIOExtraFieldPaddingElement.cs (18)
55internal override void ParseDataField(BinaryReader reader, UInt16 size) 110internal override UInt16 Size 114return checked((UInt16) (SizeField + MinimumSize)); 120internal override UInt16 SizeField 124return checked((UInt16) (_minimumFieldDataSize + _paddingSize)); 128static internal UInt16 ConstantFieldId 136static internal UInt16 MinimumFieldDataSize 144static internal UInt16 SignatureSize 152internal UInt16 PaddingSize 186private const UInt16 _constantFieldId = 0xA220; 187private const UInt16 _signature = 0xA028; 192private const UInt16 _newInitialPaddingSize = 20; 196private static readonly UInt16 _minimumFieldDataSize = 2 * sizeof(UInt16); 197private static readonly UInt16 _signatureSize = sizeof(UInt16); 199private UInt16 _paddingSize; 200private UInt16 _initialRequestedPaddingSize;
Base\MS\Internal\IO\Zip\ZipIOExtraFieldZip64Element.cs (8)
59internal override void ParseDataField(BinaryReader reader, UInt16 size) 158internal override UInt16 Size 168return checked((UInt16)(SizeField + MinimumSize)); 175internal override UInt16 SizeField 179UInt16 size = 0; 212static internal UInt16 ConstantFieldId 333private const UInt16 _constantFieldId = 0x01; 341private UInt16? _ignoredFieldSize;
Base\MS\Internal\IO\Zip\ZipIOLocalFileBlock.cs (2)
522internal UInt16 VersionNeededToExtract 532internal UInt16 GeneralPurposeBitFlag
Base\MS\Internal\IO\Zip\ZipIOLocalFileDataDescriptor.cs (2)
50UInt16 versionNeededToExtract) 106if (versionNeededToExtract < (UInt16)ZipIOVersionNeededToExtract.Zip64FileFormat)
Base\MS\Internal\IO\Zip\ZipIOLocalFileHeader.cs (14)
65header._versionNeededToExtract = (UInt16)ZipIOVersionNeededToExtract.Zip64FileFormat; 68header._versionNeededToExtract = (UInt16)ZipIOBlockManager.CalcVersionNeededToExtractFromCompression( 86header._fileNameLength = (UInt16)asciiName.Length; 166internal UInt16 VersionNeededToExtract 174internal UInt16 GeneralPurposeBitFlag 308_generalPurposeBitFlag |= (UInt16)value; // safe cast because of the enum validation 350_versionNeededToExtract = (UInt16)ZipIOVersionNeededToExtract.Zip64FileFormat; 363(UInt16)ZipIOBlockManager.CalcVersionNeededToExtractFromCompression(CompressionMethod); 396if ((_versionNeededToExtract < (UInt16)ZipIOVersionNeededToExtract.Zip64FileFormat) && 429private UInt16 _versionNeededToExtract; 430private UInt16 _generalPurposeBitFlag; 431private UInt16 _compressionMethod; 436private UInt16 _fileNameLength; 437private UInt16 _extraFieldLength;
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryBlock.cs (8)
281(_sizeOfZip64EndOfCentralDirectory > UInt16.MaxValue)) 334if (zipIoEocd.NumberOfThisDisk < UInt16.MaxValue) 337if (zipIoEocd.NumberOfTheDiskWithTheStartOfTheCentralDirectory < UInt16.MaxValue) 340if (zipIoEocd.TotalNumberOfEntriesInTheCentralDirectoryOnThisDisk < UInt16.MaxValue) 343if (zipIoEocd.TotalNumberOfEntriesInTheCentralDirectory < UInt16.MaxValue) 374if (_versionNeededToExtract != (UInt16)ZipIOVersionNeededToExtract.Zip64FileFormat) 436private UInt16 _versionMadeBy = (ushort)ZipIOVersionNeededToExtract.Zip64FileFormat; 437private UInt16 _versionNeededToExtract = (ushort)ZipIOVersionNeededToExtract.Zip64FileFormat;
Base\System\Windows\Generated\Int32Rect.cs (1)
28using WORD = System.UInt16;
Base\System\Windows\Generated\Point.cs (1)
28using WORD = System.UInt16;
Base\System\Windows\Generated\Rect.cs (1)
28using WORD = System.UInt16;
Base\System\Windows\Generated\Size.cs (1)
28using WORD = System.UInt16;
Base\System\Windows\Generated\Vector.cs (1)
28using WORD = System.UInt16;
Base\System\Windows\Markup\TypeConverterHelper.cs (3)
193else if (typeof(UInt16).IsAssignableFrom(type)) 277else if (type == typeof(UInt16)) 377else if (typeof(UInt16).IsAssignableFrom(type))
Base\System\Windows\Media\Generated\Matrix.cs (1)
29using WORD = System.UInt16;
Shared\MS\Utility\FrugalMap.cs (3)
532private UInt16 _count; 1111private UInt16 _count; 1335private UInt16 _count;
Shared\MS\Win32\HwndWrapper.cs (1)
484private UInt16 _classAtom;
Shared\MS\Win32\NativeMethodsCLR.cs (2)
4751return (UInt16)(0xFFFF & (UInt16) val);
Shared\MS\Win32\SafeNativeMethodsOther.cs (14)
160public const UInt16 C1_SPACE = 0x0008; 161public const UInt16 C1_PUNCT = 0x0010; 162public const UInt16 C1_BLANK = 0x0040; 164public const UInt16 C3_NONSPACING = 0x0001; 165public const UInt16 C3_DIACRITIC = 0x0002; 166public const UInt16 C3_VOWELMARK = 0x0004; 167public const UInt16 C3_KATAKANA = 0x0010; 168public const UInt16 C3_HIRAGANA = 0x0020; 169public const UInt16 C3_HALFWIDTH = 0x0040; 170public const UInt16 C3_FULLWIDTH = 0x0080; 171public const UInt16 C3_IDEOGRAPH = 0x0100; 172public const UInt16 C3_KASHIDA = 0x0200; 180UInt16[] charTypes) 317[Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 3)] UInt16[] charTypes);
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (3)
340internal static extern UInt16 IntRegisterClassEx(NativeMethods.WNDCLASSEX_D wc_d); 346internal static UInt16 RegisterClassEx(NativeMethods.WNDCLASSEX_D wc_d) 348UInt16 result = IntRegisterClassEx(wc_d);
WsatConfig (6)
CommandLine\ArgumentsParser.cs (6)
174UInt16 parsedValue; 175if (UInt16.TryParse(value, out parsedValue)) 192UInt16 parsedValue; 193if (UInt16.TryParse(value, out parsedValue)) 210UInt16 parsedValue; 211if (UInt16.TryParse(value, out parsedValue))
WsatUI (3)
MMCUI\WSATControl.cs (3)
233if (UInt16.TryParse(this.textBoxMaxTimeout.Text, out shortTemp)) 248if (UInt16.TryParse(this.textBoxHttpsPort.Text, out shortTemp)) 260if (UInt16.TryParse(this.textBoxDefaultTimeout.Text, out shortTemp))