Substring(int)
Returns the substring starting at a given index and ending at the end of the current string.
Declaration
public string Substring(int startIndex)Parameters
| Type | Name | Description |
|---|---|---|
| int | startIndex | Index of the first character of the substring. |
Returns
| Type | Description |
|---|---|
| string | The substring starting from |
Substring(int, int)
Returns the substring starting at a given index and having a specified length.
Declaration
public string Substring(int startIndex, int length)Parameters
| Type | Name | Description |
|---|---|---|
| int | startIndex | Index of the first character of the substring. |
| int | length | Number of characters to return. |
Returns
| Type | Description |
|---|---|
| string | The substring starting from |