1 write to Value
System.Private.Windows.Core (1)
Windows.Win32.BSTR.g.cs (1)
29
internal BSTR(char* value) => this.
Value
= value;
18 references to Value
System.Private.Windows.Core (17)
Windows.Win32.BSTR.g.cs (14)
35
public static implicit operator char*(BSTR value) => value.
Value
;
39
public static bool operator ==(BSTR left, BSTR right) => left.
Value
== right.
Value
;
43
public bool Equals(BSTR other) => this.
Value
== other.
Value
;
47
public override int GetHashCode() => unchecked((int)this.
Value
);
50
public override string ToString() => this.
Value
!= null ? Marshal.PtrToStringBSTR(new IntPtr(this.
Value
)) : null;
52
public static implicit operator IntPtr(BSTR value) => new IntPtr(value.
Value
);
61
internal unsafe int Length => this.
Value
is null ? 0 : checked((int)(*(((uint*)this.
Value
) - 1) / sizeof(char)));
64
public static unsafe implicit operator ReadOnlySpan<char>(BSTR bstr) => bstr.
Value
!= null ? new ReadOnlySpan<char>(bstr.
Value
, *((int*)bstr.
Value
- 1) / 2) : default(ReadOnlySpan<char>);
Windows\Win32\Foundation\BSTR.cs (3)
19
if (
Value
is not null)
21
Marshal.FreeBSTR((nint)
Value
);
46
public bool IsNull =>
Value
is null;
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.VBFormat.cs (1)
40
bstrFormat.
Value
,