1 write to Value
Microsoft.AspNetCore.Shared.Tests (1)
Windows.Win32.PCWSTR.g.cs (1)
35
internal PCWSTR(char* value) => this.
Value
= value;
15 references to Value
Microsoft.AspNetCore.Shared.Tests (15)
src\Shared\HttpSys\NativeInterop\CookedUrl.cs (4)
23
return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pFullUrl.
Value
, _nativeCookedUrl.FullUrlLength / 2);
32
return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pHost.
Value
, _nativeCookedUrl.HostLength / 2);
41
return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pAbsPath.
Value
, _nativeCookedUrl.AbsPathLength / 2);
50
return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pQueryString.
Value
, _nativeCookedUrl.QueryStringLength / 2);
Windows.Win32.PCWSTR.g.cs (11)
37
public static explicit operator char*(PCWSTR value) => value.
Value
;
41
public bool Equals(PCWSTR other) => this.
Value
== other.
Value
;
45
public override int GetHashCode() => unchecked((int)this.
Value
);
55
char* p = this.
Value
;
60
return checked((int)(p - this.
Value
));
68
/// <returns>A <see langword="string"/>, or <see langword="null"/> if <see cref="
Value
"/> is <see langword="null"/>.</returns>
69
public override string ToString() => this.
Value
is null ? null : new string(this.
Value
);
75
internal ReadOnlySpan<char> AsSpan() => this.
Value
is null ? default(ReadOnlySpan<char>) : new ReadOnlySpan<char>(this.
Value
, this.Length);