Home » C# String Insert() method

C# String Insert() method

by Online Tutorials Library

C# String Insert()

The C# Insert() method is used to insert the specified string at specified index number. The index number starts from 0. After inserting the specified string, it returns a new modified string.

Signature

Parameters

first: It is used to pass as an index.

second: It is used to insert the given string at specified index.

Return

It returns a new modified string.


C# String Insert() Method Example

Output:

You may also like