CharSpan Constructor
CharSpan(Char[], Int32, Int32)
Initializes a new CharSpan from an array of System.Char.
Declaration
public CharSpan(char[] array, int start, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | array | An array of System.Char. |
Int32 | start | The start index of the span in the |
Int32 | length | The number of characters in the span. |
CharSpan(String, Int32, Int32)
Initializes a new CharSpan from a System.String and specifies the start and lenght of the substring.
Declaration
public CharSpan(string str, int start, int length)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | A string. |
Int32 | start | The index of the first character of the span in |
Int32 | length | The number of characters in the span. |
CharSpan(String)
Initializes a new CharSpan from a System.String, and takes the whole string.
Declaration
public CharSpan(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | A string. |