namespace DS.Module.Core.Helpers; public static class ArrayHelper { public static T[] Empty() => #if NET45 EmptyArray.Value #else Array.Empty() #endif ; #if NET45 private static class EmptyArray { public static readonly T[] Value = new T[0]; } #endif }