Home » C# String SubString() method

C# String SubString() method

by Online Tutorials Library

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  

You may also like