8 writes to data
System.Private.Windows.Core (8)
Windows\Win32\System\Com\SafeArrayScope.cs (1)
250public 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)
888data = new() { iVal = value } 901data = new() { intVal = value } 914data = new() { uintVal = value } 927data = new() { bstrVal = new(value) } 935data = new() { bstrVal = value } 954data = new() { punkVal = value } 970data = new() { dblVal = value }
12 references to data
System.Private.Windows.Core (12)
Windows\Win32\System\Variant\VARIANT.cs (12)
25variant.data.boolVal = value ? VARIANT_BOOL.VARIANT_TRUE : VARIANT_BOOL.VARIANT_FALSE; 29public bool IsEmpty => vt == VT_EMPTY && data.llVal == 0; 102return 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>(); 945VT_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>();