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;
240
Marshal.GetNativeVariantForObject(value, this.
_typeUnion
._unionTypes._byref);
342
return (VarEnum)
_typeUnion
._vt;
345
_typeUnion
._vt = (ushort)value;
351
return
_typeUnion
._vt == ((ushort)VarEnum.VT_EMPTY);
357
return (
_typeUnion
._vt & ((ushort)VarEnum.VT_BYREF)) != 0;
377
return
_typeUnion
._unionTypes._i1;
382
_typeUnion
._unionTypes._i1 = value;
391
return
_typeUnion
._unionTypes._i2;
396
_typeUnion
._unionTypes._i2 = value;
405
return
_typeUnion
._unionTypes._i4;
410
_typeUnion
._unionTypes._i4 = value;
419
return
_typeUnion
._unionTypes._i8;
424
_typeUnion
._unionTypes._i8 = value;
433
return
_typeUnion
._unionTypes._ui1;
438
_typeUnion
._unionTypes._ui1 = value;
447
return
_typeUnion
._unionTypes._ui2;
452
_typeUnion
._unionTypes._ui2 = value;
461
return
_typeUnion
._unionTypes._ui4;
466
_typeUnion
._unionTypes._ui4 = value;
475
return
_typeUnion
._unionTypes._ui8;
480
_typeUnion
._unionTypes._ui8 = value;
489
return
_typeUnion
._unionTypes._int;
494
_typeUnion
._unionTypes._int = value;
503
return
_typeUnion
._unionTypes._uint;
508
_typeUnion
._unionTypes._uint = value;
517
return
_typeUnion
._unionTypes._bool != 0;
522
_typeUnion
._unionTypes._bool = value ? (short)-1 : (short)0;
531
return
_typeUnion
._unionTypes._error;
536
_typeUnion
._unionTypes._error = value;
545
return
_typeUnion
._unionTypes._r4;
550
_typeUnion
._unionTypes._r4 = value;
559
return
_typeUnion
._unionTypes._r8;
564
_typeUnion
._unionTypes._r8 = value;
575
v.
_typeUnion
._vt = 0;
583
_typeUnion
._vt = (ushort)VarEnum.VT_DECIMAL;
592
return Decimal.FromOACurrency(
_typeUnion
._unionTypes._cy);
597
_typeUnion
._unionTypes._cy = Decimal.ToOACurrency(value);
606
return DateTime.FromOADate(
_typeUnion
._unionTypes._date);
611
_typeUnion
._unionTypes._date = value.ToOADate();
620
return (string)Marshal.PtrToStringBSTR(this.
_typeUnion
._unionTypes._bstr);
625
this.
_typeUnion
._unionTypes._bstr = Marshal.StringToBSTR(value);
634
if (
_typeUnion
._unionTypes._unknown == IntPtr.Zero)
636
return Marshal.GetObjectForIUnknown(
_typeUnion
._unionTypes._unknown);
642
_typeUnion
._unionTypes._unknown = IntPtr.Zero;
644
_typeUnion
._unionTypes._unknown = Marshal.GetIUnknownForObject(value);
653
if (
_typeUnion
._unionTypes._dispatch == IntPtr.Zero)
655
return Marshal.GetObjectForIUnknown(
_typeUnion
._unionTypes._dispatch);
661
_typeUnion
._unionTypes._dispatch = IntPtr.Zero;
663
_typeUnion
._unionTypes._dispatch = Marshal.GetIDispatchForObject(value);
674
return
_typeUnion
._unionTypes._pvarVal;