Is there any function in C# that remove from string on specific index, for example
string s = \"This is string\"; s.RemoveAt(2);
s is now \"Th
You can write your on extension for this using the Remove method:
public static class MyStringExtensions { public static string RemoveAt(this string s, int index) { return s.Remove(index, 1); } }
usage:
string s = "This is string"; s = s.RemoveAt(2);