29 references to VT_UI2
System.Private.Windows.Core (6)
Windows\Win32\System\Variant\VARIANT.cs (6)
133
case
VT_UI2
:
295
case
VT_UI2
:
534
case
VT_UI2
:
656
VT_UI2
=> typeof(ushort),
704
case
VT_UI2
:
756
case
VT_UI2
:
System.Windows.Forms (1)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
881
VT_UI2
=> typeof(ushort),
System.Windows.Forms.Primitives.Tests (22)
Interop\Oleaut32\VARIANTTests.cs (22)
219
yield return new object[] {
VT_UI2
, (nint)(-10), (ushort)65526 };
220
yield return new object[] {
VT_UI2
, (nint)0, (ushort)0 };
221
yield return new object[] {
VT_UI2
, (nint)10, (ushort)10 };
222
yield return new object[] {
VT_UI2
, (nint)byte.MaxValue, (ushort)byte.MaxValue };
223
yield return new object[] {
VT_UI2
, (nint)ushort.MaxValue, ushort.MaxValue };
226
yield return new object[] {
VT_UI2
, unchecked((nint)uint.MaxValue), ushort.MaxValue };
229
yield return new object[] {
VT_UI2
, (nint)(-1), ushort.MaxValue };
350
yield return new object[] {
VT_UI2
};
1305
Assert.Equal(VT_VECTOR |
VT_UI2
, variant.vt);
1314
using VARIANT variant = Create(VT_VECTOR |
VT_UI2
);
2305
SAFEARRAY* psa = CreateSafeArray(
VT_UI2
, result);
2308
vt = VT_ARRAY |
VT_UI2
,
2330
SAFEARRAY* psa = CreateSafeArray(
VT_UI2
, result, 1);
2333
vt = VT_ARRAY |
VT_UI2
,
2367
SAFEARRAY* psa = CreateSafeArray(
VT_UI2
, result);
2370
vt = VT_ARRAY |
VT_UI2
,
2394
SAFEARRAY* psa = CreateSafeArray(
VT_UI2
, result, 1, 2);
2397
vt = VT_ARRAY |
VT_UI2
,
5250
[InlineData((ushort)
VT_UI2
)]
5328
[InlineData((ushort)VT_I2, (ushort)
VT_UI2
)]
5329
[InlineData((ushort)
VT_UI2
, (ushort)VT_I2)]
5336
[InlineData((ushort)VT_UINT, (ushort)
VT_UI2
)]