Javatpoint Logo
Javatpoint Logo

C# String Remove()

The C# Remove() method is used to get a new string after removing all the characters from specified beginIndex till given length. If length is not specified, it removes all the characters after beginIndex.

Signature

Parameter

index: it is an integer type parameter.

Return

It returns a string.


C# String Remove() Method Example

Output:

He

C# String Remove() Method Example 2

Output:

abcdjk





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA