<PackageReference Include="Namotion.Reflection" Version="3.0.0" />

ArrayExt

static class ArrayExt
Helper to support old runtimes.
using System.Runtime.CompilerServices; namespace Namotion.Reflection { internal static class ArrayExt { private static class EmptyHolder<[System.Runtime.CompilerServices.Nullable(2)] T> { [System.Runtime.CompilerServices.Nullable(1)] internal static readonly T[] _empty = new T[0]; } [System.Runtime.CompilerServices.NullableContext(1)] public static T[] Empty<[System.Runtime.CompilerServices.Nullable(2)] T>() { return EmptyHolder<T>._empty; } } }