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)
24 references to CopyTo
Microsoft.CodeAnalysis (11)
Text\SourceText.cs (7)
563this.CopyTo(offset, buffer, 0, count);
641this.CopyTo(
738sourceText.CopyTo(position, tempBuffer, 0, copyLength);
1075this.CopyTo(position, buffer, 0, contentLength);
1218this.CopyTo(sourceIndex: position, buffer1, destinationIndex: 0, count);
1219other.CopyTo(sourceIndex: position, buffer2, destinationIndex: 0, count);
1355_underlying.CopyTo(sourceIndex, destination, destinationIndex, count);
Microsoft.CodeAnalysis.CSharp (1)
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)