20 overrides of CopyTo
Metrics (1)
Metrics.Legacy (1)
Microsoft.CodeAnalysis (6)
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)
Text.Analyzers (1)
23 references to CopyTo
Microsoft.CodeAnalysis (10)
Text\SourceText.cs (6)
563this.CopyTo(offset, buffer, 0, count);
641this.CopyTo(
741sourceText.CopyTo(position, tempBuffer, 0, copyLength);
1078this.CopyTo(position, buffer, 0, contentLength);
1221this.CopyTo(sourceIndex: position, buffer1, destinationIndex: 0, count);
1222other.CopyTo(sourceIndex: position, buffer2, destinationIndex: 0, 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)