Table of Contents

Struct PCWSTR

Namespace
Windows.Win32.Foundation
Assembly
Ecng.Interop.dll

A pointer to a null-terminated, constant character string.

public readonly struct PCWSTR : IEquatable<PCWSTR>
Implements
Inherited Members
Extension Methods

Constructors

PCWSTR(char*)

public PCWSTR(char* value)

Parameters

value char*

Fields

Value

public readonly char* Value

Field Value

char*

Properties

Length

public int Length { get; }

Property Value

int

Methods

AsSpan()

public ReadOnlySpan<char> AsSpan()

Returns

ReadOnlySpan<char>

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(PCWSTR)

public bool Equals(PCWSTR other)

Parameters

other PCWSTR

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

Returns a string with a copy of this character array, up to the first null character (exclusive).

public override string ToString()

Returns

string

A string, or null if Value is null.

Operators

explicit operator char*(PCWSTR)

public static explicit operator char*(PCWSTR value)

Parameters

value PCWSTR

Returns

char*

implicit operator PCWSTR(char*)

public static implicit operator PCWSTR(char* value)

Parameters

value char*

Returns

PCWSTR