78 references to AsEnumerable
Aspire.Dashboard (5)
Components\Controls\Chart\MetricTable.razor.cs (1)
29private IQueryable<MetricViewBase> _metricsView => _metrics.Values.AsEnumerable().Reverse().ToList().AsQueryable();
Otlp\Storage\TelemetryRepository.cs (4)
398var results = _logs.AsEnumerable(); 441var applicationKeys = _logPropertyKeys.AsEnumerable(); 468var applicationKeys = _tracePropertyKeys.AsEnumerable(); 504var results = _traces.AsEnumerable();
Aspire.Hosting (1)
src\Shared\SecretsStore.cs (1)
55foreach (var secret in _secrets.AsEnumerable())
ClientSample (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
dotnet-dev-certs (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
dotnet-getdocument (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
dotnet-openapi (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
dotnet-sql-cache (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
dotnet-user-jwts (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
dotnet-user-secrets (2)
Internal\SecretsStore.cs (1)
76foreach (var secret in _secrets.AsEnumerable())
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
GetDocument.Insider (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
Microsoft.AspNetCore.Localization (1)
AcceptLanguageHeaderRequestCultureProvider.cs (1)
34var languages = acceptLanguageHeader.AsEnumerable();
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\ActionSelectorTest.cs (1)
1140return new ActionConstraintCache(descriptorProvider, actionConstraintProviders.AsEnumerable() ?? new List<IActionConstraintProvider>());
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
Microsoft.Build (1)
Globbing\MSBuildGlobWithGaps.cs (1)
70public MSBuildGlobWithGaps(IMSBuildGlob mainGlob, params IMSBuildGlob[] gaps) : this(mainGlob, gaps.AsEnumerable())
Microsoft.CodeAnalysis (1)
src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
39return GetDeclarationInfo(model, node, getSymbol, executableCodeBlocks.AsEnumerable(), cancellationToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
258var allUsings = usingContainer.Usings.AsEnumerable().Concat(usingsFromNamespaces).ToImmutableArray();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
20return typeParameters.AsEnumerable().GenerateConstraintClauses();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\DestructorTests.cs (5)
774var pairA = peFileReader.TypeDefinitions.AsEnumerable(). 782MethodDefinitionHandle handleDestructorA = typeA.GetMethods().AsEnumerable(). 786TypeReferenceHandle handleObject = peFileReader.TypeReferences.AsEnumerable(). 792MemberReferenceHandle handleDestructorObject = peFileReader.MemberReferences.AsEnumerable(). 798MethodImplementation methodImpl = typeA.GetMethodImplementations().AsEnumerable().
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_WellKnownAttributes.cs (2)
2717MethodDefinitionHandle[] methodDefs = metadataReader.MethodDefinitions.AsEnumerable().ToArray(); 2810Assert.Equal(0, metadataReader.FieldDefinitions.AsEnumerable().Count());
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
258var allUsings = usingContainer.Usings.AsEnumerable().Concat(usingsFromNamespaces).ToImmutableArray();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
700}, arguments.CompilationOptions.Usings.AsEnumerable());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelGetSemanticInfoTests.cs (2)
15121var sortedCandidates = semanticInfo.CandidateSymbols.AsEnumerable().OrderBy(s => s.ToDisplayString(), StringComparer.Ordinal).ToArray(); 15128var sortedMethodGroup = semanticInfo.MethodGroup.AsEnumerable().OrderBy(s => s.ToDisplayString(), StringComparer.Ordinal).ToArray();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxNodeTests.cs (2)
991var list1 = children.AsEnumerable().Reverse().ToList(); 1319var reversed = children.AsEnumerable().Reverse().ToList();
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Simplification\Reducers\CSharpExtensionMethodReducer.cs (1)
109var newArguments = SyntaxFactory.SeparatedList<ArgumentSyntax>(argumentList.Arguments.GetWithSeparators().AsEnumerable().Skip(2));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
20return typeParameters.AsEnumerable().GenerateConstraintClauses();
Microsoft.CodeAnalysis.Features (3)
IntroduceVariable\AbstractIntroduceVariableService.cs (2)
457var newMatches = newSemanticDocument.Root.GetCurrentNodes(matches.AsEnumerable()).ToSet(); 487newMatches = newSemanticDocument.Root.GetCurrentNodes(matches.AsEnumerable()).ToSet();
src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
39return GetDeclarationInfo(model, node, getSymbol, executableCodeBlocks.AsEnumerable(), cancellationToken);
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\IRuntimeEnvironment.cs (1)
87return (metadata.Kind == MetadataImageKind.Assembly) ? ((AssemblyMetadata)metadata).GetModules().AsEnumerable() : SpecializedCollections.SingletonEnumerable((ModuleMetadata)metadata);
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
135}.AsEnumerable();
Microsoft.CodeAnalysis.UnitTests (2)
MetadataReferences\MetadataReferenceTests.cs (2)
66: MetadataReference.CreateFromImage(peImage.AsEnumerable(), properties); 82: MetadataReference.CreateFromImage(peImage.AsEnumerable(), MetadataReferenceProperties.Module);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Binding\ForEachTests.vb (2)
3980Dim compilation = CompilationUtils.CreateEmptyCompilationWithReferences(source, ImmutableArray.Create(Of MetadataReference)().AsEnumerable) 4026Dim compilation = CompilationUtils.CreateEmptyCompilationWithReferences(source, ImmutableArray.Create(Of MetadataReference)().AsEnumerable)
FlowAnalysis\FlowDiagnosticTests.vb (1)
915Assert.NotEmpty(Me.FlowDiagnostics(comp).AsEnumerable().Where(Function(e) e.Severity = DiagnosticSeverity.[Warning]))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (8)
Parser\VisualBasicParseOptionsTests.vb (8)
60AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "module")}, symbols.AsEnumerable) 64AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "module")}, symbols.AsEnumerable) 68AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", "Goo"), New KeyValuePair(Of String, Object)("TARGET", 123)}, symbols.AsEnumerable) 72AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", "Goo"), New KeyValuePair(Of String, Object)("TARGET", 123)}, symbols.AsEnumerable) 75AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "exe")}, symbols.AsEnumerable) 78AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "winexe")}, symbols.AsEnumerable) 113AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "appcontainerexe")}, symbols.AsEnumerable) 116AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "winmdobj")}, symbols.AsEnumerable)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlCreation.cs (1)
155element.Add(vbOptions.GlobalImports.AsEnumerable().Select(i => new XElement(GlobalImportElementName, i.Name)));
Microsoft.DotNet.AsmDiff (1)
AssemblySet.cs (1)
89return FromPaths(paths.AsEnumerable(), name);
Microsoft.DotNet.VersionTools (2)
Dependencies\BuildManifest\OrchestratedBuildIdentityMatch.cs (1)
28$"'{string.Join(", ", matches.AsEnumerable())}'");
Dependencies\Submodule\LatestCommitSubmoduleUpdater.cs (1)
52string matchingInfoString = string.Join(", ", matchingInfos.AsEnumerable());
Microsoft.ML.EntryPoints (1)
JsonUtils\JsonManifestUtils.cs (1)
65var propertyInfos = epKind.GetProperties().AsEnumerable();
Microsoft.ML.Fairlearn (1)
Metrics\FairlearnMetricCatalog.cs (1)
190var data = new DataFrame(_eval.Schema.AsEnumerable().Select<DataViewSchema.Column, DataFrameColumn>(column =>
Microsoft.ML.FastTree (8)
TreeEnsemble\InternalTreeEnsemble.cs (1)
329var sortedByGain = gainMap.OrderByDescending(pair => pair.Value).AsEnumerable();
Utils\RegressionTreeBaseUtils.cs (7)
54leftChild.AddRange(trees[i].LeftChild.AsEnumerable()); 58rightChild.AddRange(trees[i].RightChild.AsEnumerable()); 62numericalSplitFeatureIndexes.AddRange(trees[i].NumericalSplitFeatureIndexes.AsEnumerable()); 66numericalSplitThresholds.AddRange(trees[i].NumericalSplitThresholds.AsEnumerable()); 70categoricalSplitFlags.AddRange(trees[i].CategoricalSplitFlags.AsEnumerable()); 75leafValues.AddRange(trees[i].LeafValues.AsEnumerable()); 78splitGains.AddRange(trees[i].SplitGains.AsEnumerable());
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
776var folders = info.Folders.AsEnumerable();
Swaggatherer (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
Templates.Blazor.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
Templates.Mvc.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
Templates.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
Wasm.Performance.ConsoleHost (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
69var expr = Options.AsEnumerable();
WinShimmer (1)
Program.cs (1)
81throw new InvalidProgramException($"The generated program contained errors: \n{string.Join("\n", emit.Diagnostics.AsEnumerable())}");