Javatpoint Logo
Javatpoint Logo

C# String SubString()

The C# SubString() method is used to get a substring from a String. The substring starts at a specified character position and continues to the end of the string.

Signature

Parameter

index: it is an integer type parameter which is used to pass index to get a substring.

Return

It returns a string.


C# String SubString() Method Example

Output:

C Sharp




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA