Csharp/CSharp Tutorial/String/String Remove — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 18:31, 26 мая 2010
String removes from start index to end index
<source lang="csharp">using System;
class MainClass {
public static void Main() { string str = "This is a test"; Console.WriteLine("Original string: " + str); // Remove str = str.Remove(4, 5); Console.WriteLine(str); }
}</source>
Original string: This is a test This test