get substring from text
Published: 14. October 2011 | Updated: 26. October 2011License: Microsoft Public License (MS-PL)
Categories: Framework » Strings
Tags: Basics C# Text
string text = "get substring"; int index = 4; int length = 9; string substring = text.Substring(index, length); Console.WriteLine(substring);Console Output:
substring
| Send us feedback about this snippet » |





