8 writes to data
System.Private.Windows.Core (8)
Windows\Win32\System\Com\SafeArrayScope.cs (1)
250
public static explicit operator VARIANT(in SafeArrayScope<T> scope) => new() { vt = VARENUM.VT_ARRAY | scope.Value->VarType,
data
= new() { parray = (SAFEARRAY*)scope._value } };
Windows\Win32\System\Variant\VARIANT.cs (7)
888
data
= new() { iVal = value }
901
data
= new() { intVal = value }
914
data
= new() { uintVal = value }
927
data
= new() { bstrVal = new(value) }
935
data
= new() { bstrVal = value }
954
data
= new() { punkVal = value }
970
data
= new() { dblVal = value }
12 references to data
System.Private.Windows.Core (12)
Windows\Win32\System\Variant\VARIANT.cs (12)
25
variant.
data
.boolVal = value ? VARIANT_BOOL.VARIANT_TRUE : VARIANT_BOOL.VARIANT_FALSE;
29
public bool IsEmpty => vt == VT_EMPTY &&
data
.llVal == 0;
102
return ToVector(thisVariant->
data
.ca, vt);
873
=> value.vt == VT_BOOL ? value.
data
.boolVal != VARIANT_BOOL.VARIANT_FALSE : ThrowInvalidCast<bool>();
881
=> value.vt == VT_I2 ? value.
data
.iVal : ThrowInvalidCast<short>();
893
=> value.vt is VT_I4 or VT_INT ? value.
data
.intVal : ThrowInvalidCast<int>();
906
=> value.vt is VT_UI4 or VT_UINT ? value.
data
.uintVal : ThrowInvalidCast<uint>();
919
=> value.vt == VT_BSTR ? value.
data
.bstrVal : ThrowInvalidCast<BSTR>();
940
=> value.vt == VT_CY ? value.
data
.cyVal : ThrowInvalidCast<CY>();
945
VT_CY => decimal.FromOACurrency(value.
data
.cyVal.int64),
959
=> value.vt == VT_UNKNOWN ? value.
data
.punkVal : throw new InvalidCastException();
963
=> value.vt == VT_R8 ? value.
data
.dblVal : ThrowInvalidCast<double>();