9 overrides of CopyTo
Microsoft.CodeAnalysis (6)
Text\ChangedText.cs (1)
147public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Text\CompositeText.cs (1)
146public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Text\LargeText.cs (1)
156public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Text\StringBuilderText.cs (1)
88public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Text\StringText.cs (1)
86public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Text\SubText.cs (1)
85public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Microsoft.CodeAnalysis.CSharp.Features (1)
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (1)
295public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
310public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
Microsoft.CodeAnalysis.Test.Utilities (1)
Syntax\SourceUtilities.cs (1)
37public override void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
23 references to CopyTo
Microsoft.CodeAnalysis (10)
Text\ChangedText.cs (1)
149_newText.CopyTo(sourceIndex, destination, destinationIndex, count);
Text\CompositeText.cs (1)
160segment.CopyTo(segOffset, destination, destinationIndex, copyLength);
Text\SourceText.cs (6)
563this.CopyTo(offset, buffer, 0, count); 641this.CopyTo( 732this.CopyTo(position, buffer, 0, copyLength); 1052this.CopyTo(position, buffer, 0, contentLength); 1195this.CopyTo(sourceIndex: position, buffer1, destinationIndex: 0, count); 1196other.CopyTo(sourceIndex: position, buffer2, destinationIndex: 0, count);
Text\SourceTextStream.cs (1)
135_source.CopyTo(_sourceOffset, _charBuffer, 0, charsToRead);
Text\SubText.cs (1)
88UnderlyingText.CopyTo(span.Start, destination, destinationIndex, span.Length);
Microsoft.CodeAnalysis.CSharp (2)
Parser\SlidingTextWindow.cs (2)
187_text.CopyTo(position, _characterWindow, 0, amountToRead); 233_text.CopyTo(_basis + _characterWindowCount,
Microsoft.CodeAnalysis.UnitTests (10)
Text\LargeTextTests.cs (3)
82text.CopyTo(0, buffer, destOffset, text.Length); 97text.CopyTo(3, buffer, 0, 3); 129text.CopyTo(start, buffer, 0, HelloWorld.Length);
Text\TextChangeTests.cs (7)
219newText.CopyTo(0, destination, 0, 0); //should copy nothing and not throw. 220Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(-1, destination, 0, 2)); 221Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, -1, 2)); 222Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, 0, -1)); 223Assert.Throws<ArgumentNullException>(() => newText.CopyTo(0, null, 0, 2)); 224Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(newText.Length - 1, destination, 0, 2)); 225Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, destination.Length - 1, 2));
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Extensions\SourceTextExtensions.cs (1)
215sourceText.CopyTo(offset, buffer, 0, count);