Home » C# String Remove() method

C# String Remove() method

by Online Tutorials Library

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 

You may also like