mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Allow null array to be implictly casted to Span
This commit is contained in:
parent
4189d10f41
commit
607cca1431
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ namespace System
|
|||
|
||||
public static implicit operator Span<T> (T[] array)
|
||||
{
|
||||
if (array == null)
|
||||
return default;
|
||||
|
||||
return Span<T>(array);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue