RefEnumerable<T>.TryCopyFrom(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.
Attempts to copy the source ReadOnlySpan<T> into the current RefEnumerable<T> instance.
public bool TryCopyFrom (ReadOnlySpan<T> source);
member this.TryCopyFrom : ReadOnlySpan<'T> -> bool
Public Function TryCopyFrom (source As ReadOnlySpan(Of T)) As Boolean
Parameters
- source
- ReadOnlySpan<T>
The source ReadOnlySpan<T> instance.
Returns
Whether or not the operation was successful.