Method Substring
Substring(Int32)
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 |
---|---|---|
Int32 | startIndex | Index of the first character of the substring. |
Returns
Type | Description |
---|---|
String | The substring starting from |
Substring(Int32, Int32)
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 |
---|---|---|
Int32 | startIndex | Index of the first character of the substring. |
Int32 | length | Number of characters to return. |
Returns
Type | Description |
---|---|
String | The substring starting from |