Exemplo n.º 1
0
        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());
		}
Exemplo n.º 3
0
 private static string StringFor(PieceTable <char> p)
 {
     return(new string(p.ToArray()));
 }