From e7d70feca44ad40924f6af3a3ea158b87d9e4cfe Mon Sep 17 00:00:00 2001 From: Xin Chen Date: Wed, 21 Feb 2024 15:31:39 -0800 Subject: [PATCH] Fix PCL build --- Microsoft.Azure.Amqp/Amqp/Encoding/EncodingCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Microsoft.Azure.Amqp/Amqp/Encoding/EncodingCache.cs b/Microsoft.Azure.Amqp/Amqp/Encoding/EncodingCache.cs index ba41cf20..b7c38151 100644 --- a/Microsoft.Azure.Amqp/Amqp/Encoding/EncodingCache.cs +++ b/Microsoft.Azure.Amqp/Amqp/Encoding/EncodingCache.cs @@ -21,7 +21,7 @@ static class EncodingCache capacity: 43, comparer: ByteArrayComparer.Instance, keyFunc: a => Copy(a), - valueFunc: a => System.Text.Encoding.ASCII.GetString(a.Array, a.Offset, a.Count)); + valueFunc: a => SystemEncoding.ASCII.GetString(a.Array, a.Offset, a.Count)); static readonly UlongCache performativeCodes = new UlongCache(0x10ul, 0x19ul); static readonly UlongCache outcomeCodes = new UlongCache(0x23ul, 0x29ul);