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