We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de614cb commit d7aceaaCopy full SHA for d7aceaa
1 file changed
src/common/System/Span.cs
@@ -17,6 +17,8 @@ public Span(T[] array)
17
Length = array.Length;
18
}
19
20
+ public static implicit operator Span<T>(T[]? array) => array is null ? default : new Span<T>(array);
21
+
22
public int Length { get; }
23
24
public T this[int index]
0 commit comments