Added UNICODE_STRING.ToString() overload

pull/133/head
dahall 2020-05-20 12:26:37 -06:00
parent fb90105165
commit 0ada485d14
1 changed files with 3 additions and 0 deletions

View File

@ -4152,6 +4152,9 @@ namespace Vanara.PInvoke
/// <summary>Pointer to a wide-character string.</summary>
[MarshalAs(UnmanagedType.LPWStr)]
public string Buffer;
/// <inheritdoc/>
public override string ToString() => Buffer ?? string.Empty;
}
/// <summary>Provides a <see cref="SafeHandle"/> to an object that releases a created handle at disposal using NtClose.</summary>