71 references to _typeUnion
mscorlib (71)
system\Runtime\InteropServices\Variant.cs (71)
150*(IntPtr*)this._typeUnion._unionTypes._byref = IntPtr.Zero; 160*(IntPtr*)this._typeUnion._unionTypes._byref = vArray._typeUnion._unionTypes._byref; 166*(sbyte*)this._typeUnion._unionTypes._byref = (sbyte)value; 170*(byte*)this._typeUnion._unionTypes._byref = (byte)value; 174*(short*)this._typeUnion._unionTypes._byref = (short)value; 178*(ushort*)this._typeUnion._unionTypes._byref = (ushort)value; 182*(short*)this._typeUnion._unionTypes._byref = (bool)value ? (short)-1 : (short)0; 187*(int*)this._typeUnion._unionTypes._byref = (int)value; 192*(uint*)this._typeUnion._unionTypes._byref = (uint)value; 196*(int*)this._typeUnion._unionTypes._byref = ((ErrorWrapper)value).ErrorCode; 200*(Int64*)this._typeUnion._unionTypes._byref = (Int64)value; 204*(UInt64*)this._typeUnion._unionTypes._byref = (UInt64)value; 208*(float*)this._typeUnion._unionTypes._byref = (float)value; 212*(double*)this._typeUnion._unionTypes._byref = (double)value; 216*(double*)this._typeUnion._unionTypes._byref = ((DateTime)value).ToOADate(); 220*(IntPtr*)this._typeUnion._unionTypes._byref = Marshal.GetIUnknownForObject(value); 224*(IntPtr*)this._typeUnion._unionTypes._byref = Marshal.GetIDispatchForObject(value); 228*(IntPtr*)this._typeUnion._unionTypes._byref = Marshal.StringToBSTR((string)value); 232*(long*)this._typeUnion._unionTypes._byref = decimal.ToOACurrency((decimal)value); 236*(decimal*)this._typeUnion._unionTypes._byref = (decimal)value; 240Marshal.GetNativeVariantForObject(value, this._typeUnion._unionTypes._byref); 342return (VarEnum)_typeUnion._vt; 345_typeUnion._vt = (ushort)value; 351return _typeUnion._vt == ((ushort)VarEnum.VT_EMPTY); 357return (_typeUnion._vt & ((ushort)VarEnum.VT_BYREF)) != 0; 377return _typeUnion._unionTypes._i1; 382_typeUnion._unionTypes._i1 = value; 391return _typeUnion._unionTypes._i2; 396_typeUnion._unionTypes._i2 = value; 405return _typeUnion._unionTypes._i4; 410_typeUnion._unionTypes._i4 = value; 419return _typeUnion._unionTypes._i8; 424_typeUnion._unionTypes._i8 = value; 433return _typeUnion._unionTypes._ui1; 438_typeUnion._unionTypes._ui1 = value; 447return _typeUnion._unionTypes._ui2; 452_typeUnion._unionTypes._ui2 = value; 461return _typeUnion._unionTypes._ui4; 466_typeUnion._unionTypes._ui4 = value; 475return _typeUnion._unionTypes._ui8; 480_typeUnion._unionTypes._ui8 = value; 489return _typeUnion._unionTypes._int; 494_typeUnion._unionTypes._int = value; 503return _typeUnion._unionTypes._uint; 508_typeUnion._unionTypes._uint = value; 517return _typeUnion._unionTypes._bool != 0; 522_typeUnion._unionTypes._bool = value ? (short)-1 : (short)0; 531return _typeUnion._unionTypes._error; 536_typeUnion._unionTypes._error = value; 545return _typeUnion._unionTypes._r4; 550_typeUnion._unionTypes._r4 = value; 559return _typeUnion._unionTypes._r8; 564_typeUnion._unionTypes._r8 = value; 575v._typeUnion._vt = 0; 583_typeUnion._vt = (ushort)VarEnum.VT_DECIMAL; 592return Decimal.FromOACurrency(_typeUnion._unionTypes._cy); 597_typeUnion._unionTypes._cy = Decimal.ToOACurrency(value); 606return DateTime.FromOADate(_typeUnion._unionTypes._date); 611_typeUnion._unionTypes._date = value.ToOADate(); 620return (string)Marshal.PtrToStringBSTR(this._typeUnion._unionTypes._bstr); 625this._typeUnion._unionTypes._bstr = Marshal.StringToBSTR(value); 634if (_typeUnion._unionTypes._unknown == IntPtr.Zero) 636return Marshal.GetObjectForIUnknown(_typeUnion._unionTypes._unknown); 642_typeUnion._unionTypes._unknown = IntPtr.Zero; 644_typeUnion._unionTypes._unknown = Marshal.GetIUnknownForObject(value); 653if (_typeUnion._unionTypes._dispatch == IntPtr.Zero) 655return Marshal.GetObjectForIUnknown(_typeUnion._unionTypes._dispatch); 661_typeUnion._unionTypes._dispatch = IntPtr.Zero; 663_typeUnion._unionTypes._dispatch = Marshal.GetIDispatchForObject(value); 674return _typeUnion._unionTypes._pvarVal;