From b627e7ed981b21cd37ffc2bb9e5160d1e89d7422 Mon Sep 17 00:00:00 2001 From: David Hall Date: Sat, 11 Jan 2025 09:07:57 -0700 Subject: [PATCH] Fixed documentation for PROPVARIANT reference values (#497) --- PInvoke/Ole/Ole32/PropIdl.PROPVARIANT.cs | 42 ++++++++++++------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/PInvoke/Ole/Ole32/PropIdl.PROPVARIANT.cs b/PInvoke/Ole/Ole32/PropIdl.PROPVARIANT.cs index e12a3761e..d99322d91 100644 --- a/PInvoke/Ole/Ole32/PropIdl.PROPVARIANT.cs +++ b/PInvoke/Ole/Ole32/PropIdl.PROPVARIANT.cs @@ -283,22 +283,22 @@ public PROPVARIANT(object? obj, VarEnum type = VarEnum.VT_EMPTY) /// Gets the array of objects. public IEnumerable parray => GetSafeArray(); - /// Gets the "by value" boolean value. + /// Gets the boolean value as a reference accounting for its source potentially being a pointer to NULL.. public bool? pboolVal => GetRawValue(); - /// Gets the "by value" string value. + /// Gets the string value as a reference accounting for its source potentially being a pointer to NULL.. public IntPtr pbstrVal => _ptr; - /// Gets the "by value" byte value. + /// Gets the byte value as a reference accounting for its source potentially being a pointer to NULL.. public byte? pbVal => GetRawValue(); - /// Gets the "by value" CLIPDATA value. + /// Gets the CLIPDATA value as a reference accounting for its source potentially being a pointer to NULL.. public CLIPDATA pclipdata => GetRawValue().GetValueOrDefault(); - /// Gets the "by value" sbyte value. + /// Gets the sbyte value as a reference accounting for its source potentially being a pointer to NULL.. public sbyte? pcVal => GetRawValue(); - /// Gets the "by value" decimal value. + /// Gets the decimal value as a reference accounting for its source potentially being a pointer to NULL.. public decimal? pcyVal { get @@ -308,7 +308,7 @@ public decimal? pcyVal } } - /// Gets the "by value" DateTime value. + /// Gets the DateTime value as a reference accounting for its source potentially being a pointer to NULL.. public DateTime? pdate { get @@ -318,25 +318,25 @@ public DateTime? pdate } } - /// Gets the "by value" double value. + /// Gets the double value as a reference accounting for its source potentially being a pointer to NULL.. public double? pdblVal => GetRawValue(); - /// Gets the "by value" decimal value. + /// Gets the decimal value as a reference accounting for its source potentially being a pointer to NULL.. public decimal? pdecVal => GetRawValue(); - /// Gets the "by value" pointer value. + /// Gets the pointer value as a reference accounting for its source potentially being a pointer to NULL.. public object? pdispVal => punkVal; - /// Gets the "by value" float value. + /// Gets the float value as a reference accounting for its source potentially being a pointer to NULL.. public float? pfltVal => GetRawValue(); - /// Gets the "by value" int value. + /// Gets the int value as a reference accounting for its source potentially being a pointer to NULL.. public int? pintVal => GetRawValue(); - /// Gets the "by value" short value. + /// Gets the short value as a reference accounting for its source potentially being a pointer to NULL.. public short? piVal => GetRawValue(); - /// Gets the "by value" int value. + /// Gets the int value as a reference accounting for its source potentially being a pointer to NULL.. public int? plVal => GetRawValue(); /// Gets the IDispatch value. @@ -345,7 +345,7 @@ public DateTime? pdate /// Gets the IUnknown value. public object ppunkVal => GetRawValue().GetValueOrDefault(); - /// Gets the "by value" Win32Error value. + /// Gets the Win32Error value as a reference accounting for its source potentially being a pointer to NULL.. public Win32Error? pscode { get @@ -364,22 +364,22 @@ public Win32Error? pscode /// Gets the ANSI string value. public string? pszVal => GetString(VarType); - /// Gets the "by value" uint value. + /// Gets the uint value as a reference accounting for its source potentially being a pointer to NULL.. public uint? puintVal => GetRawValue(); - /// Gets the "by value" ushort value. + /// Gets the ushort value as a reference accounting for its source potentially being a pointer to NULL.. public ushort? puiVal => GetRawValue(); - /// Gets the "by value" uint value. + /// Gets the uint value as a reference accounting for its source potentially being a pointer to NULL.. public uint? pulVal => GetRawValue(); - /// Gets the "by value" IUnknown value. + /// Gets the IUnknown value as a reference accounting for its source potentially being a pointer to NULL.. public object? punkVal => _ptr == IntPtr.Zero ? null : Marshal.GetObjectForIUnknown(_ptr); - /// Gets the "by value" Guid value. + /// Gets the Guid value as a reference accounting for its source potentially being a pointer to NULL.. public Guid? puuid => GetRawValue(); - /// Gets the "by value" PROPVARIANT value. + /// Gets the PROPVARIANT value as a reference accounting for its source potentially being a pointer to NULL.. public PROPVARIANT? pvarVal => _ptr.ToStructure(); /// Gets a stream with a Guid version.