obfuz/Plugins/dnlib/Utils/ArrayEmpty.cs

13 lines
302 B
C#
Raw Normal View History

// dnlib: See LICENSE.txt for more info
// System namespace so it can easily be replaced with Array.Empty<T> later
namespace System {
static class Array2 {
public static T[] Empty<T>() => EmptyClass<T>.Empty;
static class EmptyClass<T> {
public static readonly T[] Empty = new T[0];
}
}
}