Open sandboxFocus

Operator implicit operator

implicit operator CharSpan(string)

Converts a string into a CharSpan.

Declaration
public static implicit operator CharSpan(string str)
Parameters
Type Name Description
string str
Returns
Type Description
CharSpan

implicit operator CharSpan(ArraySegment<char>)

Converts an ArraySegment<T> into a CharSpan.

Declaration
public static implicit operator CharSpan(ArraySegment<char> str)
Parameters
Type Name Description
ArraySegment<char> str
Returns
Type Description
CharSpan