Пример #1
0
        public override void CopyTo(
            int sourceIndex,
            char[] destination,
            int destinationIndex,
            int count
            )
        {
            var span = GetCompositeSpan(sourceIndex, count);

            UnderlyingText.CopyTo(span.Start, destination, destinationIndex, span.Length);
        }
Пример #2
0
        public override string ToString(TextSpan span)
        {
            CheckSubSpan(span);

            return(UnderlyingText.ToString(GetCompositeSpan(span.Start, span.Length)));
        }