1 write to Value
System.Private.Windows.Core (1)
Windows.Win32.PWSTR.g.cs (1)
29 internal PWSTR(char* value) => this.Value = value;
22 references to Value
System.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)
12if (Value is null) 17string value = new(Value); 18Marshal.FreeCoTaskMem((IntPtr)Value); 30char* p = Value; 41return checked((int)(p - Value)); 45public bool IsNull => Value is null;
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1891Marshal.FreeCoTaskMem((nint)tvis.item.pszText.Value); 2183Marshal.FreeCoTaskMem((nint)item.pszText.Value);
System.Windows.Forms.Primitives (1)
Windows\Win32\UI\Controls\LVITEMW.cs (1)
27pszText.Value[text.Length] = '\0';
System.Windows.Forms.Tests (2)
System\Windows\Forms\FileDialogTests.cs (2)
658ReadOnlySpan<char> filter = new(o.lpstrFilter.Value, o.lpstrFilter.StringListLength); 754ReadOnlySpan<char> filter = new(o.lpstrFilter.Value, o.lpstrFilter.StringListLength);