diff --git a/src/Opc.Ua.Types/Encoders/BinaryDecoder.cs b/src/Opc.Ua.Types/Encoders/BinaryDecoder.cs index 8d6dcc29d2..1a55015d86 100644 --- a/src/Opc.Ua.Types/Encoders/BinaryDecoder.cs +++ b/src/Opc.Ua.Types/Encoders/BinaryDecoder.cs @@ -2435,7 +2435,7 @@ namespace Opc.Ua // an empty array is immutable: all share one instance. if (length == 0) { - return Array.Empty(); + return []; } int capacity = GetInitialArrayCapacity(length); @@ -2534,7 +2534,7 @@ namespace Opc.Ua { if (length == 0) { - return Array.Empty(); + return []; } // The caller verified the length against the remaining bytes. If