23 overrides of CopyTo
GenerateDocumentationAndConfigFiles (1)
Metrics (1)
Metrics.Legacy (1)
Microsoft.CodeAnalysis (7)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces (1)
Roslyn.Diagnostics.Analyzers (1)
Test.Utilities (1)
Text.Analyzers (1)
32 references to CopyTo
Microsoft.CodeAnalysis (11)
Text\SourceText.cs (7)
563this.CopyTo(offset, buffer, 0, count);
641this.CopyTo(
738sourceText.CopyTo(position, tempBuffer, 0, copyLength);
1109this.CopyTo(position, buffer, 0, contentLength);
1258this.CopyTo(sourceIndex: position, buffer1, destinationIndex: 0, count);
1259other.CopyTo(sourceIndex: position, buffer2, destinationIndex: 0, count);
1395_underlying.CopyTo(sourceIndex, destination, destinationIndex, count);
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Microsoft.CodeAnalysis.Razor.Workspaces (7)
TextDifferencing\SourceTextDiffer.CharDiffer.cs (4)
51OldText.CopyTo(0, _oldBuffer.Array, 0, Math.Min(OldText.Length, BufferSize));
54NewText.CopyTo(0, _newBuffer.Array, 0, Math.Min(NewText.Length, BufferSize));
85text.CopyTo(start, buffer.Array, 0, BufferSize);
120NewText.CopyTo(newTextPosition, buffer, 0, edit.Length);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.UnitTests (10)
Text\TextChangeTests.cs (7)
242newText.CopyTo(0, destination, 0, 0); //should copy nothing and not throw.
243Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(-1, destination, 0, 2));
244Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, -1, 2));
245Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, 0, -1));
246Assert.Throws<ArgumentNullException>(() => newText.CopyTo(0, null, 0, 2));
247Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(newText.Length - 1, destination, 0, 2));
248Assert.Throws<ArgumentOutOfRangeException>(() => newText.CopyTo(0, destination, destination.Length - 1, 2));
Microsoft.CodeAnalysis.Workspaces (1)