413 references to Skip
Aspire.Dashboard (1)
Otlp\Model\OtlpHelpers.cs (1)
402var query = results.Skip(startIndex).Take(count);
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
79foreach (var line in lines.Skip(1))
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
79foreach (var line in lines.Skip(1))
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
79foreach (var line in lines.Skip(1))
Aspire.Hosting.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
79foreach (var line in lines.Skip(1))
Aspire.Playground.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
79foreach (var line in lines.Skip(1))
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
174Array_TestData).Skip(9);
blazor-devserver (1)
Server\Program.cs (1)
27var applicationPath = args.SkipWhile(a => a != "--applicationpath").Skip(1).First();
csc (1)
src\Compilers\Shared\BuildClient.cs (1)
365return CommandLineParser.SplitCommandLineIntoArguments(commandLine, removeHashComments: false).Skip(1);
dotnet-dev-certs (1)
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
dotnet-getdocument (1)
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
dotnet-openapi (2)
DebugMode.cs (1)
17args = args.Skip(1).ToArray();
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
dotnet-sql-cache (1)
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
dotnet-user-jwts (1)
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
dotnet-user-secrets (1)
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
GetDocument.Insider (1)
src\Tools\Shared\CommandLine\DebugHelper.cs (1)
21args = args.Skip(1).ToArray();
illink (2)
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
1064await ctx.Response.WriteAsync(string.Join("|", Environment.GetCommandLineArgs().Skip(1)));
installer.tasks (5)
GenerateTestSharedFrameworkDepsFile.cs (1)
125yield return new RuntimeFallbacks(rid, ridFallback.Skip(1));
RegenerateDownloadTable.cs (2)
64.Skip(1) 94.Skip(beforeTable.Length)
StaticFileRegeneration\TpnDocument.cs (1)
33.Skip(headerEndLine)
StaticFileRegeneration\TpnSectionHeader.cs (1)
95.Skip(i + 2)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
AuthorizeRouteViewTest.cs (1)
234batch = _renderer.Batches.Skip(1).Single();
Microsoft.AspNetCore.Components.Endpoints.Tests (8)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (8)
53Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 72Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 93Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 115Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 137Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 160Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 186Assert.All(groupEndpoints.Skip(1).First().Endpoints, e => 212Assert.All(groupEndpoints.Skip(1).First().Endpoints, e =>
Microsoft.AspNetCore.Components.Server.Tests (5)
Circuits\RevalidatingServerAuthenticationStateProviderTest.cs (3)
118Assert.Empty(provider.RevalidationCallLog.Skip(1)); 123Assert.Collection(provider.RevalidationCallLog.Skip(1), 177Assert.Collection(provider.RevalidationCallLog.Skip(1),
Circuits\ServerComponentDeserializerTest.cs (2)
172var secondChain = CreateMarkers(new ServerComponentInvocationSequence(), typeof(TestComponent), typeof(TestComponent)).Skip(1); 185var markers = SerializeMarkers(CreateMarkers(typeof(TestComponent), typeof(TestComponent)).Skip(1).ToArray());
Microsoft.AspNetCore.Components.Tests (10)
CascadingParameterTest.cs (1)
466var batch = renderer.Batches.Skip(1).Single();
RendererTest.cs (9)
119var secondBatch = renderer.Batches.Skip(1).Single(); 304var batch2 = renderer.Batches.Skip(1).Single(); 2649.Skip(childComponentDiff.Edits[0].ReferenceFrameIndex) // Search from where the child component frames start 2776.Skip(childComponentDiff.Edits[0].ReferenceFrameIndex) // Search from where the child component frames start 2953var batch2 = renderer.Batches.Skip(1).Single(); 3067var newBatch = renderer.Batches.Skip(1).Single(); 3292var latestBatch = renderer.Batches.Skip(1).Single(); 3434var batch2 = renderer.Batches.Skip(1).Single(); 5651Assert.Single(logStream.Skip(1),
Microsoft.AspNetCore.Components.Web (2)
Virtualization\Virtualize.cs (2)
254.Skip(_itemsBefore - _loadedItemsStartIndex) 453Items!.Skip(request.StartIndex).Take(request.Count),
Microsoft.AspNetCore.Components.Web.Tests (3)
Forms\InputBaseTest.cs (3)
393var batch2 = renderer.Batches.Skip(1).Single(); 423Assert.Empty(renderer.Batches.Skip(1)); 524var batch2 = renderer.Batches.Skip(1).Single();
Microsoft.AspNetCore.Components.WebAssembly.Tests (3)
PullFromJSDataStreamTest.cs (3)
130return ValueTask.FromResult((TValue)(object)_data.Skip((int)offset).Take(bytesToRead).ToArray()); 149return ValueTask.FromResult((TValue)(object)_data.Skip((int)offset).Take(bytesToRead - 1).ToArray()); 163return ValueTask.FromResult((TValue)(object)_data.Skip((int)offset).Take(bytesToRead + 1).ToArray());
Microsoft.AspNetCore.Components.WebView.Test (1)
WebViewManagerTests.cs (1)
47Assert.Collection(webViewManager.SentIpcMessages.Skip(1),
Microsoft.AspNetCore.Cryptography.Internal.Tests (1)
Cng\BCryptUtilTests.cs (1)
44Guid newGuid = new Guid(bytes.Skip(3).Take(sizeof(Guid)).ToArray());
Microsoft.AspNetCore.Diagnostics (3)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (3)
152.Skip(preErrorLineNumberInFile - 1) 162.Skip(errorStartLineNumberInArray) 166.Skip(errorStartLineNumberInArray + numOfErrorLines)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\JsonTranscodingRouteAdapter.cs (2)
114var suffix = BuildSuffix(tempSegments.Skip(i + 1), pattern.Verb); 115catchAllSuffix = BuildSuffix(tempSegments.Skip(i + remainingSegmentCount - 1), pattern.Verb);
Microsoft.AspNetCore.Hosting (3)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (3)
152.Skip(preErrorLineNumberInFile - 1) 162.Skip(errorStartLineNumberInArray) 166.Skip(errorStartLineNumberInArray + numOfErrorLines)
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
285.Skip(_maxRetainedFiles.Value);
Microsoft.AspNetCore.HttpsPolicy.Tests (2)
HttpsRedirectionMiddlewareTests.cs (2)
277message = logMessages.Skip(1).First(); 365message = logMessages.Skip(1).First();
Microsoft.AspNetCore.InternalTesting (1)
Logging\XunitLoggerProvider.cs (1)
81foreach (var line in lines.Skip(1))
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\ModelBindingHelper.cs (1)
338foreach (var expression in expressions.Skip(1))
Microsoft.AspNetCore.Mvc.Core.Test (7)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
1415.Skip(unorderedStart) 1421.Skip(unorderedStart)
ConsumesAttributeTests.cs (2)
46() => new ConsumesAttribute(contentTypes[0], contentTypes.Skip(1).ToArray())); 66() => new ConsumesAttribute(contentTypes[0], contentTypes.Skip(1).ToArray()));
ProducesAttributeTests.cs (2)
101() => new ProducesAttribute(contentTypes[0], contentTypes.Skip(1).ToArray())); 123() => new ProducesAttribute(contentTypes[0], contentTypes.Skip(1).ToArray()));
ProducesResponseTypeAttributeTests.cs (1)
42() => new ProducesResponseTypeAttribute(typeof(void), StatusCodes.Status200OK, contentTypes[0], contentTypes.Skip(1).ToArray()));
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (7)
52Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 73Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 95Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 118Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 141Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 167Assert.All(groupEndpoints.Skip(1).First().Endpoints, e => 193Assert.All(groupEndpoints.Skip(1).First().Endpoints, e =>
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (7)
61Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 91var endpoints = endpointBuilder.DataSources.Skip(1).First().Endpoints; 123Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 155Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 187Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 222Assert.All(groupEndpoints.Skip(1).First().Endpoints, e => 257Assert.All(groupEndpoints.Skip(1).First().Endpoints, e =>
Microsoft.AspNetCore.RequestDecompression.Tests (1)
RequestDecompressionMiddlewareTests.cs (1)
251AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "The Content-Encoding header is empty or not specified. Skipping request decompression.");
Microsoft.AspNetCore.ResponseCompression.Tests (16)
ResponseCompressionMiddlewareTest.cs (16)
111AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type."); 112AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, "No matching response compression provider found."); 196AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, $"Response compression is not enabled for the Content-Type '{expected}'."); 283AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, $"Response compression is not enabled for the Content-Type '{contentType}'."); 360AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type."); 361AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, "No matching response compression provider found."); 385AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type."); 386AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, "No matching response compression provider found."); 397AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, "Response compression is not enabled for the Content-Type 'text/custom'."); 411AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, "Response compression disabled due to the Content-Range header."); 429AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, "Response compression disabled due to the Content-Encoding header."); 488AssertLog(logMessages.Skip(1).Single(), LogLevel.Debug, "No response compression available for HTTPS requests. See ResponseCompressionOptions.EnableForHttps."); 551AssertLog(logMessages.Skip(1).Single(), LogLevel.Debug, "No response compression available for HTTPS requests. See ResponseCompressionOptions.EnableForHttps."); 610AssertLog(logMessages.Skip(1).Single(), LogLevel.Debug, "No response compression available for HTTPS requests. See ResponseCompressionOptions.EnableForHttps."); 1340AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type."); 1341AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, $"The response will be compressed with '{provider}'.");
Microsoft.AspNetCore.Routing.Tests (1)
RouteCollectionTest.cs (1)
510var second = routeNames.Skip(index).ToArray();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
ResponseHeaderTests.cs (2)
239Assert.Equal("value1b", response.Headers.GetValues("Custom1").Skip(1).First()); 269Assert.Equal("value1b", response.Headers.GetValues("Custom1").Skip(1).First());
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (3)
152.Skip(preErrorLineNumberInFile - 1) 162.Skip(errorStartLineNumberInArray) 166.Skip(errorStartLineNumberInArray + numOfErrorLines)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
BufferWriterTests.cs (1)
87Assert.Equal(array.Skip(offset).Take(length).ToArray(), Read());
Microsoft.AspNetCore.Shared.Tests (11)
SecurityHelperTests.cs (11)
45Assert.Equal("Test3", user.Identities.Skip(0).First().Name); 46Assert.Equal("Test2", user.Identities.Skip(1).First().Name); 47Assert.Equal("Test1", user.Identities.Skip(2).First().Name); 75Assert.Equal(newEmptyIdentity, user.Identities.Skip(0).First()); 76Assert.Equal(identityTwo, user.Identities.Skip(1).First()); 77Assert.Equal(identityNoAuthTypeWithClaim, user.Identities.Skip(2).First()); 78Assert.Equal(identityEmptyWithAuthType, user.Identities.Skip(3).First()); 87Assert.Equal("Test3", user.Identities.Skip(0).First().Name); 88Assert.Equal(identityTwo, user.Identities.Skip(1).First()); 89Assert.Equal(identityNoAuthTypeWithClaim, user.Identities.Skip(2).First()); 90Assert.Equal(identityEmptyWithAuthType, user.Identities.Skip(3).First());
Microsoft.AspNetCore.SignalR.Tests (1)
SerializedHubMessageTests.cs (1)
84Assert.Collection(message.GetAllSerializations().Skip(numberOfSerializationsToPreCache).ToArray(),
Microsoft.Build (2)
BackEnd\Components\SdkResolution\SdkResult.cs (1)
63AdditionalPaths = paths.Skip(1).ToList();
FileUtilities.cs (1)
399return string.Join(DirectorySeparatorString, segments.Skip(headingSegmentsToRemove));
Microsoft.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
553Arguments = string.Join(" ", cmdLine.Skip(1)), 597Arguments = string.Join(" ", cmdLine.Skip(1)),
Microsoft.Build.Engine.OM.UnitTests (2)
Construction\ProjectItemElement_Tests.cs (1)
101ProjectMetadataElement metadatum2 = item.Metadata.Skip(1).First();
FileUtilities.cs (1)
399return string.Join(DirectorySeparatorString, segments.Skip(headingSegmentsToRemove));
Microsoft.Build.Engine.UnitTests (2)
Globbing\CompositeGlob_Tests.cs (1)
169Assert.Same(glob2, composite.Globs.Skip(1).First());
Graph\ResultCacheBasedBuilds_Tests.cs (1)
330(node, localExpectedOutput) => localExpectedOutput[node].Skip(1).ToArray());
Microsoft.Build.Tasks.Core (1)
FileUtilities.cs (1)
399return string.Join(DirectorySeparatorString, segments.Skip(headingSegmentsToRemove));
Microsoft.Build.Utilities.Core (1)
FileUtilities.cs (1)
399return string.Join(DirectorySeparatorString, segments.Skip(headingSegmentsToRemove));
Microsoft.CodeAnalysis (3)
CommandLine\CommonCompiler.cs (1)
1154var generatedSyntaxTrees = compilation.SyntaxTrees.Skip(Arguments.SourceFiles.Length).ToList();
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
1039_customAttributesAdded.Add(parentHandle, previouslyAddedRowIds.AddRange(_customAttributeRowIds.Skip(previousCustomAttributeRowIdsCount)));
FileSystem\PathUtilities.cs (1)
858foreach (var part in parts.Skip(toSkip))
Microsoft.CodeAnalysis.CodeStyle (8)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
858foreach (var part in parts.Skip(toSkip))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
511.Skip(skip)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
74return words.Take(1).Select(DecapitalizeFirstLetter).Concat(words.Skip(1).Select(CapitalizeFirstLetter)); 76return words.Take(1).Select(CapitalizeFirstLetter).Concat(words.Skip(1).Select(DecapitalizeFirstLetter));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (3)
93return node.WithLeadingTrivia(leadingTriviaToKeep.Skip(index)); 141leadingTriviaToKeep = new List<SyntaxTrivia>(leadingTrivia.Skip(ppIndex + 1)); 163return node.WithLeadingTrivia(leadingTriviaToKeep.Skip(index));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (1)
16return node.GetLeadingTrivia().Skip(leadingBlankLines.Length).ToImmutableArray();
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
195newTrivia = newTrivia.AddRange(leadingTrivia.Skip(skipCount));
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
166var remainingArguments = _arguments.Skip(argumentCount).ToImmutableArray(); 178var remainingParameterTypes = ParameterTypes.Skip(argumentCount).ToImmutableArray();
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
714declarationStatement = declarationStatement.WithLeadingTrivia(leadingTrivia.Skip(lastDirectiveIndex + 1));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
166var nodesToVerify = nodesBySemanticBoundary.Where(group => group.Skip(1).Any()).Flatten().ToSet();
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpCompilation.cs (1)
3697SourceAssembly.Modules.Skip(1).Select(m => m.Name), //all modules except the first one
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
146.Skip(addMethod.IsExtensionMethod ? 1 : 0)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
644openBracket = openBracket.WithTrailingTrivia(openBracket.TrailingTrivia.Skip(1));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
23=> [.. list.Take(index).Concat(item).Concat(list.Skip(index))];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaListExtensions.cs (1)
72return new SyntaxTriviaList(triviaList.Skip(triviaInLeadingBlankLines.Count()));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
315withoutBlankLine = token.WithLeadingTrivia(leadingTrivia.Skip(2));
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (5)
543statementsToCheck = bodyOps.Skip(1); 908=> TryGetSuccessCondition(whenTrue, whenFalse, statementsToCheck.Skip(1), 981whenTrue, whenFalse, bodyOps.Skip(1).AsImmutable(), out var successRequirement, out var remainingStatments)) 988statementsToCheck = !remainingStatments.IsEmpty() ? remainingStatments : bodyOps.Skip(1); 1027statementsToCheck = statementsToCheck.Skip(1);
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
90secondBrace.LeadingTrivia.SkipWhile(t => t != lastEndOfLineTrivia).Skip(1));
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (2)
59var remainingLeadingTrivia = SyntaxFactory.TriviaList(leadingTrivia.Skip(skippedTriviaIndex + 1)); 65.WithLeadingTrivia(SyntaxFactory.TriviaList(remainingLeadingTrivia.Skip(trailingTriviaTakeUntil)))
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
133var canUseImplicitArray = invocation.ArgumentList.Arguments.Skip(indexToWrap).Any(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
605block.CloseBraceToken.WithLeadingTrivia(closeBraceTrivia.Skip(splitIndex)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\QueryExpressionSyntaxExtensions.cs (1)
37return query.WithFromClause(fromClause).WithBody(query.Body.WithAllClauses(allClauses.Skip(1)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
141closeBrace.LeadingTrivia.Skip(index + 1));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
38from pair in actualLines.Zip(actualLines.Skip(1), (line1, line2) => new { line1, line2 })
CodeGen\CodeGenCapturing.cs (2)
63.Skip(1) 97.Skip(numVarsAvailable - numToCapture)
CodeGen\CodeGenTupleTest.cs (12)
19231var x1 = model.GetDeclaredSymbol(nodes.OfType<VariableDeclaratorSyntax>().Skip(1).First()); 19234var x2 = model.GetDeclaredSymbol(nodes.OfType<VariableDeclaratorSyntax>().Skip(5).First()); 19396var x1 = model.GetDeclaredSymbol(nodes.OfType<VariableDeclaratorSyntax>().Skip(1).First()); 19399var x2 = model.GetDeclaredSymbol(nodes.OfType<VariableDeclaratorSyntax>().Skip(2).First()); 19426var x1 = model.GetDeclaredSymbol(nodes.OfType<VariableDeclaratorSyntax>().Skip(1).First()); 19664var invocation2 = model.GetSymbolInfo(nodes.OfType<InvocationExpressionSyntax>().Skip(4).First()); 19667var invocation3 = model.GetSymbolInfo(nodes.OfType<InvocationExpressionSyntax>().Skip(5).First()); 19708var invocation2 = model.GetSymbolInfo(nodes.OfType<InvocationExpressionSyntax>().Skip(1).First()); 19711var invocation3 = model.GetSymbolInfo(nodes.OfType<InvocationExpressionSyntax>().Skip(2).First()); 20364var c2 = nodes.OfType<ClassDeclarationSyntax>().Skip(1).First(); 20368var c3 = nodes.OfType<ClassDeclarationSyntax>().Skip(2).First(); 21355var x2 = nodes.OfType<VariableDeclaratorSyntax>().Skip(1).First();
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
CodeGen\IndexAndRangeTests.cs (1)
91var node = tree.GetRoot().DescendantNodes().OfType<ObjectCreationExpressionSyntax>().Skip(2).First();
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
240=> new MetadataAggregator(readers[0], readers.Skip(1).ToArray());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (20)
Attributes\AttributeTests.cs (2)
11641var secondArgument = tree.GetRoot().DescendantNodes().OfType<AttributeArgumentSyntax>().Skip(1).First(); 11645var thirdArgument = tree.GetRoot().DescendantNodes().OfType<AttributeArgumentSyntax>().Skip(2).Single();
FlowAnalysis\RegionAnalysisTests.cs (1)
2537var fieldDataFlowAnalysis = dataFlowAnalysisResults.Skip(1).Single();
OverloadResolutionPriorityTests.cs (1)
979var secondCtor = tree.GetRoot().DescendantNodes().OfType<ConstructorDeclarationSyntax>().Skip(ctorToForce).First();
Semantics\OutVarTests.cs (2)
19332var varRef = GetReferences(tree, "var").Skip(1).Single(); 36412var invocation = tree2.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Skip(1).First();
Semantics\ParamsCollectionTests.cs (1)
4346parameter = (IParameterSymbol)model.GetDeclaredSymbol(tree.GetRoot().DescendantNodes().OfType<ParameterSyntax>().Skip(1).First());
Semantics\PatternMatchingTests.cs (3)
4298var discard2 = GetDiscardDesignations(tree).Skip(1).First(); 4305var discard3 = GetDiscardDesignations(tree).Skip(2).First(); 4312var discard4 = GetDiscardDesignations(tree).Skip(3).First();
Semantics\PrimaryConstructorTests.cs (5)
1422var classDeclarations = tree.GetRoot().DescendantNodes().OfType<ClassDeclarationSyntax>().Skip(1).ToArray(); 1483var classDeclarations = tree.GetRoot().DescendantNodes().OfType<ClassDeclarationSyntax>().Skip(1).ToArray(); 1551var classDeclarations = tree.GetRoot().DescendantNodes().OfType<ClassDeclarationSyntax>().Skip(1).ToArray(); 1640var classDeclarations = tree.GetRoot().DescendantNodes().OfType<ClassDeclarationSyntax>().Skip(1).ToArray(); 2484tree.GetRoot().DescendantNodes().OfType<PrimaryConstructorBaseTypeSyntax>().Skip(1).First();
Semantics\RecordTests.cs (5)
8878var withExpr2 = root.DescendantNodes().OfType<WithExpressionSyntax>().Skip(1).Single(); 21541var recordDeclarations = tree.GetRoot().DescendantNodes().OfType<RecordDeclarationSyntax>().Skip(1).ToArray(); 21602var recordDeclarations = tree.GetRoot().DescendantNodes().OfType<RecordDeclarationSyntax>().Skip(1).ToArray(); 21670var recordDeclarations = tree.GetRoot().DescendantNodes().OfType<RecordDeclarationSyntax>().Skip(1).ToArray(); 21759var recordDeclarations = tree.GetRoot().DescendantNodes().OfType<RecordDeclarationSyntax>().Skip(1).ToArray();
Microsoft.CodeAnalysis.CSharp.Features (18)
ChangeSignature\CSharpChangeSignatureService.cs (2)
907var listOfArguments = SeparatedList(newArguments.Skip(indexInExistingList).Select(a => ((ArgumentSyntax)(SyntaxNode)a).Expression), newArguments.GetSeparators().Skip(indexInExistingList));
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
82statementsCannotBeConverted = array.Skip(i).ToArray();
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (2)
44var newRoot = root.RemoveNodes(root.Members.OfType<GlobalStatementSyntax>().Skip(1), SyntaxGenerator.DefaultRemoveOptions); 140var commentsToPreserve = TriviaList(statement.GetLeadingTrivia().Skip(triviaToMove.Count));
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
191statements.AddRange(methodDeclaration.Body.Statements.Skip(1));
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
301.. statements.Skip(2),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
495nextStatement.WithLeadingTrivia(nextStatementLeading.Skip(nextStatementLeading.IndexOf(precedingEndOfLine) + 1)),
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
315withoutBlankLine = token.WithLeadingTrivia(leadingTrivia.Skip(2));
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (5)
543statementsToCheck = bodyOps.Skip(1); 908=> TryGetSuccessCondition(whenTrue, whenFalse, statementsToCheck.Skip(1), 981whenTrue, whenFalse, bodyOps.Skip(1).AsImmutable(), out var successRequirement, out var remainingStatments)) 988statementsToCheck = !remainingStatments.IsEmpty() ? remainingStatments : bodyOps.Skip(1); 1027statementsToCheck = statementsToCheck.Skip(1);
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
90secondBrace.LeadingTrivia.SkipWhile(t => t != lastEndOfLineTrivia).Skip(1));
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (2)
59var remainingLeadingTrivia = SyntaxFactory.TriviaList(leadingTrivia.Skip(skippedTriviaIndex + 1)); 65.WithLeadingTrivia(SyntaxFactory.TriviaList(remainingLeadingTrivia.Skip(trailingTriviaTakeUntil)))
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
133var canUseImplicitArray = invocation.ArgumentList.Arguments.Skip(indexToWrap).Any(
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IConstructorBodyOperation.cs (1)
1163var node1 = tree.GetRoot().DescendantNodes().OfType<ConstructorDeclarationSyntax>().Skip(1).Single();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\DeconstructionTests.cs (2)
1840var y = nodes.OfType<VariableDeclaratorSyntax>().Skip(1).First(); 3770var literal2 = nodes.OfType<TupleExpressionSyntax>().Skip(1).First();
Semantics\DelegateTypeTests.cs (1)
13208var fewArgs = string.Join(", ", range.Skip(1).Select(i => $"arg{i}: {i * 10}"));
Semantics\NullableContextTests.cs (1)
350var syntax = syntaxTree.GetRoot().DescendantNodes().OfType<ReturnStatementSyntax>().Skip(1).Single();
Semantics\NullableReferenceTypesTests.cs (7)
13511var returnStatement = tree.GetRoot().DescendantNodes().OfType<ReturnStatementSyntax>().Skip(1).Single(); 59238var declarator = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Skip(1).First(); 59272var declarator = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Skip(1).First(); 71881var discard2 = arguments.Skip(1).First().Expression; 71886var discard3 = arguments.Skip(2).First().Expression; 71891var discard4 = arguments.Skip(3).First().Expression; 71934var discard2 = arguments.Skip(1).First().Expression;
Semantics\ObjectAndCollectionInitializerTests.cs (1)
3935var nodes = tree.GetRoot().DescendantNodes().OfType<InitializerExpressionSyntax>().Skip(1).Single().Expressions;
Semantics\RecordStructTests.cs (1)
10782tree.GetRoot().DescendantNodes().OfType<PrimaryConstructorBaseTypeSyntax>().Skip(1).First();
Semantics\TopLevelStatementsTests.cs (4)
989var symbol2 = model1.GetDeclaredSymbol(tree1.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Skip(1).Single()); 991Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "x").Skip(1).Single()).Symbol); 4578var symbol2 = model1.GetDeclaredSymbol(tree1.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().Skip(1).First()); 4580Assert.Same(symbol1, model1.GetSymbolInfo(tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "local1").Skip(1).Single()).Symbol);
SourceGeneration\GeneratorDriverTests.cs (1)
535var filePaths = outputCompilation.SyntaxTrees.Skip(1).Select(t => t.FilePath).ToArray();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\UsedAssembliesTests.cs (1)
98AssertEx.Equal(expected, used.Skip(1));
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1685var mDeclSyntax = syntaxTree.GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().Skip(2).Single();
Symbols\Source\UsingAliasTests.cs (2)
697var node = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "Short").Skip(1).Single(); 740var node = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "Short").Skip(1).Single();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
LexicalAndXml\LexicalTests.cs (15)
3862var token = Lex("{\r\n<<<<<<<").Skip(1).First(); 3865token = Lex("{\r\n <<<<<<<").Skip(1).First(); 3870token = Lex("{\r\n<<<<<< ").Skip(1).First(); 3873token = Lex("{\r\n<<<<<<< ").Skip(1).First(); 3916var token = Lex("{\r\n>>>>>>>").Skip(1).First(); 3919token = Lex("{\r\n >>>>>>>").Skip(1).First(); 3924token = Lex("{\r\n>>>>>> ").Skip(1).First(); 3927token = Lex("{\r\n>>>>>>> ").Skip(1).First(); 4076var token = Lex("{\r\n =======").Skip(1).First(); 4082token = Lex("{\r\n====== ").Skip(1).First(); 4086token = Lex("{\r\n=======").Skip(1).First(); 4092token = Lex("{\r\n======= trailing chars").Skip(1).First(); 4099token = Lex("{\r\n======= Trailing\r\ndisabled text").Skip(1).First(); 4117token = Lex("{\r\n======= Trailing\r\ndisabled text\r\n>>>> still disabled").Skip(1).First(); 4134token = Lex("{\r\n======= Trailing\r\ndisabled text\r\n>>>>>>> Actually the end").Skip(1).First();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (2)
246return lastContainer.GetMembers(string.Join(".", parts.Skip(i))); 269return lastContainer.GetMembers(string.Join(".", parts.Skip(i)));
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2936=> RemoveNodes(declaration, GetSubDeclarations(declaration).Skip(index).Take(count));
Simplification\Reducers\CSharpExtensionMethodReducer.cs (1)
109var newArguments = SyntaxFactory.SeparatedList<ArgumentSyntax>(argumentList.Arguments.GetWithSeparators().AsEnumerable().Skip(2));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
23=> [.. list.Take(index).Concat(item).Concat(list.Skip(index))];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaListExtensions.cs (1)
72return new SyntaxTriviaList(triviaList.Skip(triviaInLeadingBlankLines.Count()));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
605block.CloseBraceToken.WithLeadingTrivia(closeBraceTrivia.Skip(splitIndex)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\QueryExpressionSyntaxExtensions.cs (1)
37return query.WithFromClause(fromClause).WithBody(query.Body.WithAllClauses(allClauses.Skip(1)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
141closeBrace.LeadingTrivia.Skip(index + 1));
Microsoft.CodeAnalysis.EditorFeatures (2)
TextStructureNavigation\AbstractTextStructureNavigatorProvider.TextStructureNavigator.cs (2)
204.Skip(1) 257.Skip(1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Utilities\BloomFilterTests.cs (2)
48var strings = new HashSet<string>(GenerateStrings(2000).Skip(500).Take(1000), comparer); 168var longs = CreateLongs(GenerateStrings(2000).Skip(500).Take(1000).Select(s => s.GetHashCode()).ToList());
Microsoft.CodeAnalysis.Features (21)
CodeRefactorings\MoveType\AbstractMoveTypeService.cs (1)
174=> TopLevelTypeDeclarations(root).Skip(1).Any();
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
152firstFolderInfo.AddFolder(folder.Skip(1));
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
53var nodesToRemove = sections.Skip(1).Select(s => s.SyntaxToRemove).Where(s => s.Parent == ifStatement.Parent);
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (2)
260var afterPlaceholderArguments = arguments.Skip(placeholderIndex + 1).ToImmutableArray(); 262var namedAndUnnamedArguments = afterPlaceholderArguments.Skip(unnamedArguments.Length).ToImmutableArray();
ExtractMethod\MethodExtractor.TriviaResult.cs (2)
89return result.Concat(currentLine).Concat(list.Skip(i - 1)); 117var listWithoutHead = list.Skip(1);
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (4)
177.Concat(surroundingStatements.Skip(declarationStatementIndex + 2))]); // +2 to skip the decl statement and the try statement 230SyntaxList<TStatementSyntax> statementsToSurround = [.. surroundingStatements.Skip(statementIndex + 1)]; 257.Concat(surroundingStatements.Skip(statementIndex + 1 + statementsToSurround.Count))]); 341.Skip(declarationStatementIndex + 1)];
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (3)
477var statementsAfterIf = statements.Skip(index + 1).ToImmutableArray(); 570var statementsAfterIf = statements.Skip(index + 1); 593var statementsAfterIf = statements.Skip(index + 1);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
131var nodeWithTrivia = node.ReplaceTokens(allTokens.Skip(1).Take(allTokens.Count - 2),
SplitOrMergeIfStatements\Nested\AbstractMergeNestedIfStatementsCodeRefactoringProvider.cs (2)
213var remainingStatements = statements.Skip(1); 214var remainingOuterStatements = outerStatements.Skip(outerIfStatementIndex + 1);
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
195newTrivia = newTrivia.AddRange(leadingTrivia.Skip(skipCount));
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
166var remainingArguments = _arguments.Skip(argumentCount).ToImmutableArray(); 178var remainingParameterTypes = ParameterTypes.Skip(argumentCount).ToImmutableArray();
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
714declarationStatement = declarationStatement.WithLeadingTrivia(leadingTrivia.Skip(lastDirectiveIndex + 1));
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
858foreach (var part in parts.Skip(toSkip))
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Extensions\ProtocolConversions.cs (2)
249return "file://" + serverName + "/" + string.Join("/", parts.Skip(3).Select(EscapeUriPart)); 253return "file:///" + parts[0] + "/" + string.Join("/", parts.Skip(1).Select(EscapeUriPart));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Ordering\RequestOrderingTests.cs (2)
124var responses = await Task.WhenAll(waitables.Skip(1)); 148var responses = await Task.WhenAll(waitables.Skip(1));
Microsoft.CodeAnalysis.Rebuild (1)
CompilationFactory.cs (1)
166foreach (var documentHandle in pdbReader.Documents.Skip(sourceFileCount))
Microsoft.CodeAnalysis.Test.Utilities (2)
Assert\AssertEx.cs (1)
849File.AppendAllLines(actualFile, testFileLines.Skip(expectedValueSourceLine + expectedLineCount));
Metadata\AggregatedMetadataReader.cs (1)
31_aggregator = new MetadataAggregator(readers.First(), readers.Skip(1).ToArray());
Microsoft.CodeAnalysis.UnitTests (17)
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (1)
303Assert.Equal(array.Skip(1), nonGeneric.Cast<T>().ToArray());
CryptoBlobParserTests.cs (16)
36var expectedModulus = key.Skip(HEADER_LEN).Take(MOD_LEN).ToArray(); 40var expectedP = key.Skip(HEADER_LEN + MOD_LEN).Take(HALF_LEN).ToArray(); 44var expectedQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN).Take(HALF_LEN).ToArray(); 48var expectedDP = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 2).Take(HALF_LEN).ToArray(); 52var expectedDQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 3).Take(HALF_LEN).ToArray(); 56var expectedInverseQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 4).Take(HALF_LEN).ToArray(); 60var expectedD = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 5).Take(MOD_LEN).ToArray(); 64Assert.True(key.Skip(HEADER_LEN + MOD_LEN * 2 + HALF_LEN * 5).ToArray().Length == 0); 79var expectedModulus = key.Skip(HEADER_LEN).Take(MOD_LEN).ToArray(); 83var expectedP = key.Skip(HEADER_LEN + MOD_LEN).Take(HALF_LEN).ToArray(); 87var expectedQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN).Take(HALF_LEN).ToArray(); 91var expectedDP = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 2).Take(HALF_LEN).ToArray(); 95var expectedDQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 3).Take(HALF_LEN).ToArray(); 99var expectedInverseQ = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 4).Take(HALF_LEN).ToArray(); 103var expectedD = key.Skip(HEADER_LEN + MOD_LEN + HALF_LEN * 5).Take(MOD_LEN).ToArray(); 107Assert.True(key.Skip(HEADER_LEN + MOD_LEN * 2 + HALF_LEN * 5).ToArray().Length == 0);
Microsoft.CodeAnalysis.Workspaces (13)
CodeCleanup\AbstractCodeCleanerService.cs (2)
164var hasMultiplePreviousToken = previousTokens.Skip(1).Any(); 165var hasMultipleNextToken = nextTokens.Skip(1).Any();
Editing\SyntaxGenerator.cs (1)
1536return newRoot.InsertNodesAfter(currentFirst, replacements.Skip(1));
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (1)
40foreach (var change in changes.Skip(1))
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
858foreach (var part in parts.Skip(toSkip))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
511.Skip(skip)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
74return words.Take(1).Select(DecapitalizeFirstLetter).Concat(words.Skip(1).Select(CapitalizeFirstLetter)); 76return words.Take(1).Select(CapitalizeFirstLetter).Concat(words.Skip(1).Select(DecapitalizeFirstLetter));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (3)
93return node.WithLeadingTrivia(leadingTriviaToKeep.Skip(index)); 141leadingTriviaToKeep = new List<SyntaxTrivia>(leadingTrivia.Skip(ppIndex + 1)); 163return node.WithLeadingTrivia(leadingTriviaToKeep.Skip(index));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\IFileBannerFactsExtensions.cs (1)
16return node.GetLeadingTrivia().Skip(leadingBlankLines.Length).ToImmutableArray();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
166var nodesToVerify = nodesBySemanticBoundary.Where(group => group.Skip(1).Any()).Flatten().ToSet();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
858foreach (var part in parts.Skip(toSkip))
Microsoft.Data.Analysis.Tests (1)
DataFrameTests.Utils.cs (1)
226IEnumerable<int> testIndices = randomIndices.Skip((int)(input.Rows.Count * testRatio));
Microsoft.DotNet.Arcade.Sdk (1)
src\GroupItemsBy.cs (1)
61foreach (var item in items.Skip(1))
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
62byte[] reducedHash = fullHash.Take(targetBlockSize).Zip(fullHash.Skip(targetBlockSize), (b1, b2) => (byte)(b1 ^ b2)).ToArray();
Microsoft.DotNet.Deployment.Tasks.Links (1)
Microsoft.DotNet.Helix.Client (1)
generated-code\PagedResponse.cs (1)
108foreach (var prop in parts.Skip(1))
Microsoft.DotNet.SharedFramework.Sdk (1)
src\GenerateSharedFrameworkDepsFile.cs (1)
104.Select(expansion => new RuntimeFallbacks(expansion.First(), expansion.Skip(1))); // ExpandRuntime return runtime itself as first item.
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\WriteUsageReports.cs (2)
187.Elements().Skip(1).FirstOrDefault() 215return pvpSnapshotFiles.Skip(1)
Microsoft.DotNet.SourceBuild.Tasks.Tests (1)
ValidateUsageAgainstBaselineTests.cs (1)
86baseline.Usages.Skip(1).Select(u => u.PackageIdentity).ToArray(),
Microsoft.DotNet.XUnitExtensions (2)
DiscovererHelpers.cs (1)
75foreach (object arg in ctorArgs.Skip(skipFirst)) // First argument is the issue number or reason.
Discoverers\SkipOnCoreClrDiscoverer.cs (1)
35foreach (object arg in traitAttribute.GetConstructorArguments().Skip(1)) // We skip the first one as it is the reason
Microsoft.Extensions.AI.Integration.Tests (1)
ReducingChatClientTests.cs (1)
180return chatMessages.Skip(i + 1).ToList();
Microsoft.Extensions.DependencyModel (1)
DependencyContextPaths.cs (1)
53.Skip(1) // the application path
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
CircularBufferTests.cs (1)
34var expectedBufferElements = elementsToAdd.Skip(Math.Max(0, elementsToAdd.Count - BufferSize)).ToList();
Microsoft.Extensions.Logging.AzureAppServices (1)
FileLoggerProvider.cs (1)
81.Skip(_maxRetainedFiles.Value);
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
495chain = chain.Skip(1);
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
63foreach (string option in equivalenceKey.Split(';').Skip(0))
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
63foreach (string option in equivalenceKey.Split(';').Skip(0))
Microsoft.Maui.Controls (9)
BindablePropertyConverter.cs (1)
44 object parent = parentValuesProvider.ParentObjects.Skip(1).FirstOrDefault();
NavigationPage\NavigationPage.Legacy.cs (1)
157 Element[] childrenToRemove = InternalChildren.Skip(1).ToArray();
ObservableList.cs (1)
74 T[] items = Items.Skip(index).Take(count).ToArray();
Shell\RouteRequestBuilder.cs (2)
225 return Routing.FormatRoute(String.Join(_uriSeparator, _allSegments.Skip(nextMatch))); 237 return _allSegments.Skip(nextMatch).ToList();
Shell\ShellUriHandler.cs (2)
1005 var segments = RetrievePaths(_path).ToList().Skip(1).ToList(); 1033 var segments = RetrievePaths(_path).ToList().Skip(1).ToList();
TemplatedItemsList.cs (1)
1048 TItem[] itemsToMove = _templatedObjects.Skip(e.OldStartingIndex).Take(e.OldItems.Count).ToArray();
Visuals\VisualTypeConverter.cs (1)
188 return _visualTypeMappings.Keys.Skip(_visualTypeMappings.Values.IndexOf(visual)).First();
Microsoft.ML.AutoML (2)
ColumnInference\ColumnTypeInference.cs (2)
79if (RawData.Skip(1) 178if (!col.RawData.Skip(1)
Microsoft.ML.AutoML.Tests (1)
GetNextPipelineTests.cs (1)
77var stage2Runs = history.Skip(allAvailableTrainers.Count());
Microsoft.ML.Data (1)
EntryPoints\EntryPointNode.cs (1)
854_host.Assert(bindings.Skip(1).All(binding => binding.GetType().Equals(firstBinding.GetType())));
Microsoft.ML.FastTree (2)
Utils\LinqExtensions.cs (2)
72foreach (T d in e.Skip(1)) 89foreach (T d in e.Skip(1))
Microsoft.ML.GenAI.Core (2)
Extension\ModuleExtension.cs (1)
225layerSizeMap = layerSizeMap.Skip(count).ToList();
Trainer\CausalLMDataset.cs (1)
62outputIds = outputIds.Skip(inputIds.Count()).ToArray();
Microsoft.ML.GenAI.Mistral (1)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
41var secondSequence = messages.Skip(messages.ToList().FindLastIndex(m => m.GetRole() == Role.User));
Microsoft.ML.Parquet (1)
PartitionedFileLoader.cs (1)
703segments = segments.Skip(segments.Count() - dirCount - 1);
Microsoft.ML.PerformanceTests (1)
FeaturizeTextBench.cs (1)
75foreach (var featurizer in featurizers.Skip(1))
Microsoft.ML.SearchSpace (3)
Option\NestOption.cs (1)
56var feature = values.Skip(startIndex).Take(dim).ToArray();
SearchSpace.cs (1)
118var input = feature.Skip(cur).Take(option.FeatureSpaceDim).ToArray();
Tuner\GridSearchTuner.cs (1)
44foreach (var i_s in CartesianProduct(arrays.Skip(1)))
Microsoft.ML.TensorFlow (3)
TensorflowTransform.cs (1)
410dims = shape.ndim > 0 ? idims.Skip(idims[0] == -1 ? 1 : 0).ToArray() : new int[0];
TensorflowUtils.cs (2)
92(Utils.Size(tensorShape) > 0 && tensorShape.Skip(1).All(x => x > 0))) 99columnType = new VectorDataViewType(mlType, tensorShape[0] > 0 ? tensorShape : tensorShape.Skip(1).ToArray());
Microsoft.ML.Tokenizers (1)
Model\EnglishRobertaTokenizer.cs (1)
1071foreach (var elem in word.Skip(1))
Microsoft.ML.Tokenizers.Tests (13)
LlamaTests.cs (11)
267Assert.Equal(ids.Skip(1), bpeTokens.Select(token => token.Id)); 268Assert.Equal(tokens.Skip(1), bpeTokens.Select(token => token.Value)); 273Assert.Equal(ids.Skip(1), encodedIds); 277Assert.Equal(isEmptyInput ? Array.Empty<int>() : ids.Skip(1).Concat(new[] { bpe.EndOfSentenceId }), bpeTokens.Select(token => token.Id)); 278Assert.Equal(isEmptyInput ? Array.Empty<string>() : tokens.Skip(1).Concat(new[] { bpe.EndOfSentenceToken }), bpeTokens.Select(token => token.Value)); 283Assert.Equal(isEmptyInput ? Array.Empty<int>() : ids.Skip(1).Concat(new[] { bpe.EndOfSentenceId }), encodedIds); 532string[] expectedTokens1 = addBeginningOfSentence ? expectedTokens : expectedTokens.Skip(1).ToArray(); 535(int Index, int Length)[] expectedOffsets1 = addBeginningOfSentence ? expectedOffsets : expectedOffsets.Skip(1).ToArray(); 538int[] expectedIds1 = addBeginningOfSentence ? expectedIds : expectedIds.Skip(1).ToArray(); 572int[] expectedIds1 = addBeginningOfSentence ? expectedIds : expectedIds.Skip(1).ToArray(); 606(int Index, int Length)[] expectedOffsets1 = addBeginningOfSentence ? expectedOffsets.Take(expectedIds1.Length - 6).ToArray() : expectedOffsets.Skip(1).Take(expectedIds1.Length - 6).ToArray();
TokenizerTests.cs (2)
180suffixIds = suffixIds.Skip(1).ToList(); // Skip the start of sentence token <s> 189Assert.Equal(suffixIds, fullIdsList.Skip(fullIdsList.Count - suffixIds.Count));
Microsoft.ML.Transforms (2)
Text\WordEmbeddingsExtractor.cs (2)
682Parallel.ForEach(File.ReadLines(_modelFileNameWithPath).Skip(skippedLinesCount), GetParallelOptions(hostEnvironment), 715float[] firstValue = wordsInFirstLine.Skip(1).Select(x => float.TryParse(x, out temp) ? temp : Single.NaN).ToArray();
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (1)
648int[] dims = shape.ndim > 0 ? shape.dims.Skip(shape.dims[0] == -1 ? 1 : 0).ToArray() : new[] { 0 };
ImageClassificationTrainer.cs (1)
877featurizedImages.Skip(validationSetCount));
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\ConsoleApplicationBaseTests.cs (1)
12string[] expected = System.Environment.GetCommandLineArgs().Skip(1).ToArray();
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
779folders = folders.Skip(1);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
CodeModel\AbstractFileCodeElementTests.cs (1)
73foreach (var pathElement in path.Skip(1))
MSBuild (1)
FileUtilities.cs (1)
399return string.Join(DirectorySeparatorString, segments.Skip(headingSegmentsToRemove));
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTestUtilities.cs (1)
121=> new MetadataAggregator(readers[0], readers.Skip(1).ToArray());
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\ImportEngine.cs (1)
706foreach (PartManager testPart in _recursionStateStack.Skip(1))
System.Linq (1)
System\Linq\Skip.cs (1)
140count <= 0 ? source.Skip(0) :
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (1)
325return wrappedChild.Skip(_count);
System.Windows.Forms.PrivateSourceGenerators.Tests (1)
EnumValidationTests.cs (1)
311string output = outputCompilation.SyntaxTrees.Skip(2).First().ToString();
vbc (1)
src\Compilers\Shared\BuildClient.cs (1)
365return CommandLineParser.SplitCommandLineIntoArguments(commandLine, removeHashComments: false).Skip(1);
VBCSCompiler (1)
src\Compilers\Shared\BuildClient.cs (1)
365return CommandLineParser.SplitCommandLineIntoArguments(commandLine, removeHashComments: false).Skip(1);
xunit.console (1)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextPaths.cs (1)
51.Skip(1) // the application path