ReadOnlySpan2D<T>.TryGetSpan(ReadOnlySpan<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to get a ReadOnlySpan<T> instance, if the underlying buffer is contiguous and small enough.
public bool TryGetSpan (out ReadOnlySpan<T> span);
member this.TryGetSpan : ReadOnlySpan -> bool
Public Function TryGetSpan (ByRef span As ReadOnlySpan(Of T)) As Boolean
Parameters
- span
- ReadOnlySpan<T>
The resulting ReadOnlySpan<T>, in case of success.
Returns
Whether or not span
was correctly assigned.