17 references to TakeWhile
installer.tasks (4)
RegenerateDownloadTable.cs (2)
65.TakeWhile(line => line != End(LinksComment)) 89.TakeWhile(line => line != Begin(TableComment))
StaticFileRegeneration\TpnSectionHeader.cs (2)
96.TakeWhile(s => !string.IsNullOrWhiteSpace(s)) 134.TakeWhile(s => !string.IsNullOrWhiteSpace(s))
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\EditFormTest.cs (1)
199.TakeWhile(f => f.FrameType == RenderTreeFrameType.Attribute)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ViewDataDictionaryTest.cs (1)
164{ model.TakeWhile(t => t != null) },
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Evaluator_Tests.cs (1)
1922foreach (ProjectProperty property in project.AllEvaluatedProperties.TakeWhile(property => property.Xml == null))
Microsoft.Build.Tasks.Core (2)
Unzip.cs (2)
107foreach (ITaskItem sourceFile in SourceFiles.TakeWhile(i => !_cancellationToken.IsCancellationRequested)) 165foreach (ZipArchiveEntry zipArchiveEntry in sourceArchive.Entries.TakeWhile(i => !_cancellationToken.IsCancellationRequested))
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
75var paramsBeforeCurrentParam = parameterNames.TakeWhile(t => t != parameterName).ToList();
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
226namespaceDeclaration.GetLeadingTrivia().TakeWhile(t => t.Kind() is SyntaxKind.WhitespaceTrivia or SyntaxKind.EndOfLineTrivia));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Structure\AbstractSyntaxNodeStructureProviderTests.cs (1)
47var previousToken = root.DescendantNodesAndTokens(descendIntoTrivia: true).TakeWhile(nodeOrToken => nodeOrToken != node).LastOrDefault(nodeOrToken => nodeOrToken.IsToken).AsToken();
Microsoft.CodeAnalysis.Features (2)
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
261var unnamedArguments = afterPlaceholderArguments.TakeWhile(a => !syntaxFacts.IsNamedArgument(a)).ToImmutableArray();
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
75var paramsBeforeCurrentParam = parameterNames.TakeWhile(t => t != parameterName).ToList();
Microsoft.CodeAnalysis.UnitTests (1)
Collections\ImmutableSegmentedListTest.cs (1)
460foreach (string existingElement in expectedList.TakeWhile(v => v != newElement))
Microsoft.DotNet.VersionTools (1)
src\BuildManifest\Model\XElementParsingExtensions.cs (1)
35.OrderBy(pair => keySortOrder.TakeWhile(o => pair.Key != o).Count())
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (1)
177return Child.AsSequentialQuery(token).TakeWhile(_predicate);