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