637 references to FirstOrDefault
Aspire.Components.Common.Tests (1)
Aspire.Dashboard (1)
Aspire.Dashboard.Tests (1)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (3)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Milvus.Tests (2)
Aspire.Hosting.Qdrant.Tests (3)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Testing.Tests (1)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (2)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (3)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (5)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (2)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (5)
Aspire.Oracle.EntityFrameworkCore (2)
Aspire.Oracle.EntityFrameworkCore.Tests (5)
Aspire.Playground.Tests (1)
Aspire.Pomelo.EntityFrameworkCore.MySql (2)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (5)
Aspire.StackExchange.Redis (1)
Aspire.Workload.Tests (1)
BasicWebSite (1)
Contract.Data.IntegrationTests (1)
CSharpSyntaxGenerator (1)
dotnet-svcutil-lib (18)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
FormatterWebSite (1)
Identity.DefaultUI.WebSite (1)
IIS.FunctionalTests (1)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IIS.ShadowCopy.Tests (1)
IIS.Tests (1)
IISExpress.FunctionalTests (2)
illink (6)
InMemory.FunctionalTests (1)
Interop.FunctionalTests (4)
InteropTests (1)
Microsoft.Analyzers.Extra (2)
Microsoft.Analyzers.Local (4)
Microsoft.Arcade.Common (2)
Microsoft.AspNetCore.App.Analyzers (5)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Authentication.Cookies (1)
Microsoft.AspNetCore.Authorization.Test (3)
Microsoft.AspNetCore.Components.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Hosting.Tests (2)
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.InMemory.Test (2)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.Localization (1)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (8)
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
Microsoft.AspNetCore.Mvc.Localization.Test (16)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (3)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (1)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.StaticAssets.Tests (2)
Microsoft.AspNetCore.Testing (1)
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Microsoft.Build (15)
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.Engine.OM.UnitTests (24)
Microsoft.Build.Engine.UnitTests (3)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
Microsoft.Build.Tasks.Core (11)
Microsoft.Build.UnitTests.Shared (1)
Microsoft.Build.Utilities.Core (4)
Microsoft.Cci.Extensions (6)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (9)
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (24)
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Microsoft.CodeAnalysis.EditorFeatures (3)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (4)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.Features (8)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces (20)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (9)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (7)
Microsoft.Data.Analysis.Interactive (1)
Microsoft.DotNet.Arcade.Sdk (5)
Microsoft.DotNet.AsmDiff (2)
Microsoft.DotNet.Build.Tasks.Packaging (5)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (2)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (4)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.DotNet.Helix.Client (4)
Microsoft.DotNet.Helix.JobSender (1)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.PackageTesting (1)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.SignCheckLibrary (3)
Microsoft.DotNet.SignTool (1)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Microsoft.DotNet.VersionTools (9)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (3)
Microsoft.Extensions.DependencyModel (8)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.SourceGeneration (24)
MarshallerShape.cs (24)
209.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 1, ReturnsVoid: true });
219.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 1 } and
262.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 1, ReturnsVoid: false }
293.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 1, ReturnsVoid: false }
302.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 1, ReturnsVoid: false }
314.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 2, ReturnsVoid: false }
346.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 1, ReturnsVoid: false, ReturnType: INamedTypeSymbol returnType }
356.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 2, ReturnsVoid: false, ReturnType: INamedTypeSymbol returnType }
366.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 2, ReturnsVoid: false }
376.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 2, ReturnsVoid: false }
386.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 1, ReturnsVoid: false, ReturnType: INamedTypeSymbol returnType }
396.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 2, ReturnsVoid: false, ReturnType: INamedTypeSymbol returnType }
565.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 1, ReturnsVoid: true }
594.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0, ReturnsVoid: false, ReturnsByRef: false, ReturnsByRefReadonly: false }
602.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0, ReturnsVoid: false, ReturnsByRef: false, ReturnsByRefReadonly: false }
610.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0, ReturnsVoid: false, ReturnsByRef: false, ReturnsByRefReadonly: false });
656.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0, ReturnsVoid: true });
663.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0, ReturnsVoid: true });
670.FirstOrDefault(m => m is { IsStatic: true, Parameters.Length: 1 } and
679.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0 } and
690.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0, ReturnsVoid: false, ReturnType: INamedTypeSymbol returnType }
699.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 0, ReturnsVoid: false, ReturnType: INamedTypeSymbol returnType }
708.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 1, ReturnsVoid: false, ReturnType: INamedTypeSymbol returnType }
718.FirstOrDefault(m => m is { IsStatic: false, Parameters.Length: 1, ReturnsVoid: false, ReturnType: INamedTypeSymbol returnType }
Microsoft.Maui (3)
Microsoft.Maui.Controls (3)
Microsoft.Maui.Controls.Build.Tasks (35)
Microsoft.Maui.Controls.Xaml (12)
Microsoft.Maui.Essentials (3)
Microsoft.ML.AutoML (5)
Microsoft.ML.Core (9)
Microsoft.ML.Data (3)
Microsoft.ML.FastTree (1)
Microsoft.ML.GenAI.Mistral (1)
Microsoft.ML.OnnxTransformer (2)
Microsoft.VisualStudio.LanguageServices (13)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
MSBuild (3)
MSBuildTaskHost (1)
Mvc.Api.Analyzers.Test (2)
Roslyn.Test.PdbUtilities (1)
Stress.AppHost (1)
System.Composition.TypedParts (1)
System.Linq.Parallel (1)
System.ServiceModel.Http.Tests (1)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.Syndication (5)
System.Text.Json.SourceGeneration (2)
System.Windows.Forms.Analyzers.CSharp (2)
System.Windows.Forms.Design (1)
System.Windows.Forms.Design.Tests (2)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
TestTasks (2)
UnitTests.Common (1)
Wasm.Performance.Driver (1)
xunit.assert (1)
xunit.console (13)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (8)
68.Select(lib => compatibleRuntimes.Select(runtime => Tuple.Create(lib, lib.RuntimeAssemblyGroups.FirstOrDefault(libGroup => string.Equals(libGroup.Runtime, runtime))))
69.FirstOrDefault(tuple => tuple.Item2?.AssetPaths != null))
82.Select(lib => compatibleRuntimes.Select(runtime => Tuple.Create(lib, lib.NativeLibraryGroups.FirstOrDefault(libGroup => string.Equals(libGroup.Runtime, runtime))))
83.FirstOrDefault(tuple => tuple.Item2?.AssetPaths != null))
102=> runtimeGraph.FirstOrDefault(x => string.Equals(x.Runtime, currentRuntimeIdentifier, StringComparison.OrdinalIgnoreCase))
103?? runtimeGraph.FirstOrDefault(x => string.Equals(x.Runtime, fallbackRuntimeIdentifier.Value, StringComparison.OrdinalIgnoreCase))
238var resolvedAssemblyPath = assemblies.FirstOrDefault(a => string.Equals(assemblyName, Path.GetFileNameWithoutExtension(a), StringComparison.OrdinalIgnoreCase));
281var resolvedAssemblyPath = assemblies.FirstOrDefault(a => string.Equals(formattedUnmanagedDllName, Path.GetFileName(a), StringComparison.OrdinalIgnoreCase));