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
Methods
AsSpan()
public ReadOnlySpan<char> AsSpan()
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
Equals(PCWSTR)
public bool Equals(PCWSTR other)
Parameters
other
PCWSTR
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
Returns a string with a copy of this character array, up to the first null character (exclusive).
public override string ToString()
Returns
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*