DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Insert () Method On The String Type

03.27.2012
| 2084 views |
  • submit to reddit
        Insert () method on the string type

        string sentence = "Dzone Links";
	sentence = sentence.Insert(7, "Snippet ");
	Console.WriteLine(sentence);

Output: Dzone Snippet Links