예제 #1
0
파일: SubText.cs 프로젝트: belav/roslyn
        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)));
        }