public Span<T> GetValueOrDefault(
Span<T> defaultValue = default
)
Public Function GetValueOrDefault (
Optional defaultValue As Span(Of T) = Nothing
) As Span(Of T)
Dim instance As NullableSpan
Dim defaultValue As Span(Of T)
Dim returnValue As Span(Of T)
returnValue = instance.GetValueOrDefault(defaultValue)
public:
Span<T> GetValueOrDefault(
Span<T> defaultValue = Span<T>()
)
This method provides an alternative to using the ?? operator, which does not work with the NullableSpanT structure.
If the value used for defaultValue is expensive to construct, consider using the GetValueOrDefault(SpanT) overload instead.