mirror of
https://github.com/BepInEx/BepInEx.MelonLoader.Loader.git
synced 2026-11-22 19:09:53 -10:00
18 lines
327 B
C#
18 lines
327 B
C#
using System;
|
|
|
|
namespace ICSharpCode.SharpZipLib.Core
|
|
{
|
|
internal static class Empty
|
|
{
|
|
#if NET45
|
|
internal static class EmptyArray<T>
|
|
{
|
|
public static readonly T[] Value = new T[0];
|
|
}
|
|
public static T[] Array<T>() => EmptyArray<T>.Value;
|
|
#else
|
|
public static T[] Array<T>() => System.Array.Empty<T>();
|
|
#endif
|
|
}
|
|
}
|