1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-12 05:14:10 +02:00

Allow null array to be implictly casted to Span

This commit is contained in:
disarray2077 2021-06-24 19:02:07 -03:00
parent 4189d10f41
commit 607cca1431

View file

@ -48,6 +48,9 @@ namespace System
public static implicit operator Span<T> (T[] array) public static implicit operator Span<T> (T[] array)
{ {
if (array == null)
return default;
return Span<T>(array); return Span<T>(array);
} }