Click or drag to resize

ReadOnlyMemoryTTryGetArray Method

Tries to get the underlying array segment. Returns false for native-backed memory.

Namespace: System
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
public bool TryGetArray(
	out ArraySegment<T> segment
)

Parameters

segment  ArraySegmentT
When this method returns , the array segment backing this memory

Return Value

Boolean
if the memory is array-backed or empty; if it is native-backed
See Also