From cd54d66d540807be9ce88908b2f915a162344a80 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 12 Jun 2024 10:00:38 +0200 Subject: [PATCH] fix the build --- src/libraries/System.Formats.Nrbf/ref/System.Formats.Nrbf.cs | 3 ++- .../System.Formats.Nrbf/ref/System.Formats.Nrbf.csproj | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Formats.Nrbf/ref/System.Formats.Nrbf.cs b/src/libraries/System.Formats.Nrbf/ref/System.Formats.Nrbf.cs index 3e933a3871921..22afcd0607119 100644 --- a/src/libraries/System.Formats.Nrbf/ref/System.Formats.Nrbf.cs +++ b/src/libraries/System.Formats.Nrbf/ref/System.Formats.Nrbf.cs @@ -12,7 +12,8 @@ internal ArrayRecord() { } public override System.Formats.Nrbf.SerializationRecordId Id { get { throw null; } } public abstract System.ReadOnlySpan Lengths { get; } public int Rank { get { throw null; } } - public System.Array GetArray(System.Type expectedArrayType, bool allowNulls=true) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The code for an array of the specified type might not be available.")] + public System.Array GetArray(System.Type expectedArrayType, bool allowNulls = true) { throw null; } } public abstract partial class ClassRecord : System.Formats.Nrbf.SerializationRecord { diff --git a/src/libraries/System.Formats.Nrbf/ref/System.Formats.Nrbf.csproj b/src/libraries/System.Formats.Nrbf/ref/System.Formats.Nrbf.csproj index b42ee4914b74b..5fa89f387034a 100644 --- a/src/libraries/System.Formats.Nrbf/ref/System.Formats.Nrbf.csproj +++ b/src/libraries/System.Formats.Nrbf/ref/System.Formats.Nrbf.csproj @@ -8,12 +8,13 @@ - + +