From 163a6a7a475552a72ad15a45baea46e99a5ad054 Mon Sep 17 00:00:00 2001 From: jnm2 Date: Sat, 9 Oct 2021 12:03:38 -0400 Subject: [PATCH] [wip] Enable use of APIs using PCSTR/PCWSTR on net35 --- src/Microsoft.Windows.CsWin32/templates/PCSTR.cs | 5 ----- src/Microsoft.Windows.CsWin32/templates/PCWSTR.cs | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/Microsoft.Windows.CsWin32/templates/PCSTR.cs b/src/Microsoft.Windows.CsWin32/templates/PCSTR.cs index 0e64e72c..641932e7 100644 --- a/src/Microsoft.Windows.CsWin32/templates/PCSTR.cs +++ b/src/Microsoft.Windows.CsWin32/templates/PCSTR.cs @@ -39,10 +39,5 @@ internal int Length /// A , or if is . public override string ToString() => this.Value is null ? null : new string((sbyte*)this.Value, 0, this.Length, global::System.Text.Encoding.UTF8); - /// - /// Returns a span of the characters in this string. - /// - internal ReadOnlySpan AsSpan() => this.Value is null ? default(ReadOnlySpan) : new ReadOnlySpan(this.Value, this.Length); - private string DebuggerDisplay => this.ToString(); } diff --git a/src/Microsoft.Windows.CsWin32/templates/PCWSTR.cs b/src/Microsoft.Windows.CsWin32/templates/PCWSTR.cs index 2b5492b9..d85312e4 100644 --- a/src/Microsoft.Windows.CsWin32/templates/PCWSTR.cs +++ b/src/Microsoft.Windows.CsWin32/templates/PCWSTR.cs @@ -39,10 +39,5 @@ internal int Length /// A , or if is . public override string ToString() => this.Value is null ? null : new string(this.Value); - /// - /// Returns a span of the characters in this string. - /// - internal ReadOnlySpan AsSpan() => this.Value is null ? default(ReadOnlySpan) : new ReadOnlySpan(this.Value, this.Length); - private string DebuggerDisplay => this.ToString(); }