From d97cb8d4e80b8b2e45cf5800d1b88fc57cacc94c Mon Sep 17 00:00:00 2001 From: Xin Chen Date: Wed, 22 Mar 2023 13:33:42 -0700 Subject: [PATCH] Fix PCL build error. --- Microsoft.Azure.Amqp/Amqp/Encoding/AmqpBitConverter.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Microsoft.Azure.Amqp/Amqp/Encoding/AmqpBitConverter.cs b/Microsoft.Azure.Amqp/Amqp/Encoding/AmqpBitConverter.cs index 9c67bf52..7657c8f1 100644 --- a/Microsoft.Azure.Amqp/Amqp/Encoding/AmqpBitConverter.cs +++ b/Microsoft.Azure.Amqp/Amqp/Encoding/AmqpBitConverter.cs @@ -105,6 +105,9 @@ public static double ReadDouble(ByteBuffer buffer) public static Guid ReadUuid(ByteBuffer buffer) { +#if PCL + throw new NotImplementedException(); +#else uint a = ReadUInt(buffer); ushort b = ReadUShort(buffer); ushort c = ReadUShort(buffer); @@ -119,6 +122,7 @@ public static Guid ReadUuid(ByteBuffer buffer) byte k = buffer.Buffer[buffer.Offset + 7]; buffer.Complete(FixedWidth.ULong); return new Guid(a, b, c, d, e, f, g, h, i, j, k); +#endif } public static void ReadBytes(ByteBuffer buffer, byte[] data, int offset, int count)