Method ElementAt
ElementAt(int)
Returns a reference to the byte (not character) at an index.
Declaration
public ref byte ElementAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | A byte index. |
Returns
| Type | Description |
|---|---|
| byte | A reference to the byte at the index. |
Implements
Remarks
Deallocating or reallocating this string's character buffer makes the reference invalid.
Exceptions
| Type | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if the index is out of bounds. |