PostSharpAPI ReferencePost­Sharp.​Patterns.​FormattersChar­SpanTo­Char­Array­Segment
Open sandboxFocus

CharSpan.ToCharArraySegment Method

ToCharArraySegment()

Converts the current CharSpan into an ArraySegment<T> of System.Char. When the IsBackedByCharArray or IsNull property is true, this method does not allocate memory.

Declaration
public ArraySegment<char> ToCharArraySegment()
Returns
Type Description
ArraySegment<System.Char>