1 write to Value
Microsoft.Private.Windows.Core (1)
Windows.Win32.PWSTR.g.cs (1)
29
internal PWSTR(char* value) => this.
Value
= value;
17 references to Value
Microsoft.Private.Windows.Core (17)
Windows.Win32.PWSTR.g.cs (11)
35
public static implicit operator char*(PWSTR value) => value.
Value
;
39
public static bool operator ==(PWSTR left, PWSTR right) => left.
Value
== right.
Value
;
43
public bool Equals(PWSTR other) => this.
Value
== other.
Value
;
47
public override int GetHashCode() => unchecked((int)this.
Value
);
51
public override string ToString() => new PCWSTR(this.
Value
).ToString();
53
public static implicit operator PCWSTR(PWSTR value) => new PCWSTR(value.
Value
);
57
internal int Length => new PCWSTR(this.
Value
).Length;
63
internal Span<char> AsSpan() => this.
Value
is null ? default(Span<char>) : new Span<char>(this.
Value
, this.Length);
Windows\Win32\Foundation\PWSTR.cs (6)
10
if (
Value
is null)
15
string value = new(
Value
);
16
Marshal.FreeCoTaskMem((IntPtr)
Value
);
28
char* p =
Value
;
39
return checked((int)(p -
Value
));
43
public bool IsNull =>
Value
is null;