From: Santiago Fernandez Madero Date: Tue, 12 Nov 2019 03:41:12 +0000 (-0800) Subject: Fix all configurations build break on SqlClient (dotnet/corefx#42548) X-Git-Tag: submit/tizen/20210909.063632~11031^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a19bc919b77c312a2b40a043f36238040a5c88d9;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix all configurations build break on SqlClient (dotnet/corefx#42548) Commit migrated from https://github.com/dotnet/corefx/commit/63c85b9de80d101262be231ec9c33a915b2013c4 --- diff --git a/src/libraries/Common/src/System/Net/Security/NegotiateStreamPal.Unix.cs b/src/libraries/Common/src/System/Net/Security/NegotiateStreamPal.Unix.cs index 948ae79..bec9e8f 100644 --- a/src/libraries/Common/src/System/Net/Security/NegotiateStreamPal.Unix.cs +++ b/src/libraries/Common/src/System/Net/Security/NegotiateStreamPal.Unix.cs @@ -263,7 +263,11 @@ namespace System.Net.Security tokenBytes = tokenBytes.Slice(0, length - 1); } +#if NETSTANDARD2_0 + return Encoding.UTF8.GetString(tokenBytes.ToArray(), 0, tokenBytes.Length); +#else return Encoding.UTF8.GetString(tokenBytes); +#endif } finally {