public string GetText(int index, int amount) { if (index < 0 || index + amount > Length) { new ArgumentOutOfRangeException("Index out of range: " + index); } if (amount == 0) { return(string.Empty); } return(new string(_text.ToArray(index, amount))); }
private static string StringFor(PieceTable<char> p) { return new string(p.ToArray()); }
private static string StringFor(PieceTable <char> p) { return(new string(p.ToArray())); }