545 references to Contains
AnalyzerRunner (1)
Aspire.Dashboard.Tests (1)
Aspire.Hosting (2)
Aspire.Hosting.Dapr (1)
Aspire.Workload.Tests (1)
blazor-devserver (1)
BoundTreeGenerator (1)
ClientSample (1)
CodeGenerator (25)
src\Servers\Kestrel\shared\KnownHeaders.cs (22)
177.OrderBy(header => !requestPrimaryHeaders.Contains(header))
181ClassName = FormattedInternalHeaderNames.Select(x => x.Name).Contains(header) ? "InternalHeaderNames" : "HeaderNames",
184PrimaryHeader = requestPrimaryHeaders.Contains(header),
185ExistenceCheck = requestHeadersExistence.Contains(header),
186FastCount = requestHeadersCount.Contains(header),
193PrimaryHeader = requestPrimaryHeaders.Contains(HeaderNames.ContentLength)
248.OrderBy(header => !responsePrimaryHeaders.Contains(header))
252ClassName = FormattedInternalHeaderNames.Select(x => x.Name).Contains(header) ? "InternalHeaderNames" : "HeaderNames",
255EnhancedSetter = enhancedHeaders.Contains(header),
256ExistenceCheck = responseHeadersExistence.Contains(header),
257PrimaryHeader = responsePrimaryHeaders.Contains(header)
264EnhancedSetter = enhancedHeaders.Contains(HeaderNames.ContentLength),
265PrimaryHeader = responsePrimaryHeaders.Contains(HeaderNames.ContentLength)
275.OrderBy(header => !responsePrimaryHeaders.Contains(header))
279ClassName = FormattedInternalHeaderNames.Select(x => x.Name).Contains(header) ? "InternalHeaderNames" : "HeaderNames",
282EnhancedSetter = enhancedHeaders.Contains(header),
283ExistenceCheck = responseHeadersExistence.Contains(header),
284PrimaryHeader = responsePrimaryHeaders.Contains(header)
298.Where(header => invalidH2H3ResponseHeaders.Contains(header.Name))
303.Where(header => FormattedInternalHeaderNames.Where(x => x.IsPseudoHeader).Select(x => x.Identifier).Contains(header.Identifier))
906{Each(loop.Headers.Where(header => header.Name != HeaderNames.ContentLength && !NonApiHeaders.Contains(header.Identifier)), header => $@"
937{Each(ApiHeaderNames.Where(header => header != "ContentLength" && !loop.Headers.Select(kh => kh.Identifier).Contains(header)), header => $@"
CodeStyleConfigFileGenerator (4)
dotnet-dev-certs (1)
dotnet-openapi (1)
dotnet-svcutil-lib (8)
GenerateRulesMissingDocumentation (1)
GetDocument.Insider (1)
http2cat (1)
Identity.DefaultUI.WebSite (2)
IIS.FunctionalTests (5)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (5)
illink (4)
ILLink.CodeFixProvider (2)
Infrastructure.Common (1)
installer.tasks (10)
Microsoft.AspNetCore.Antiforgery.Test (7)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Authorization.Test (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.InternalTesting.Tests (1)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
src\Servers\Kestrel\shared\KnownHeaders.cs (22)
177.OrderBy(header => !requestPrimaryHeaders.Contains(header))
181ClassName = FormattedInternalHeaderNames.Select(x => x.Name).Contains(header) ? "InternalHeaderNames" : "HeaderNames",
184PrimaryHeader = requestPrimaryHeaders.Contains(header),
185ExistenceCheck = requestHeadersExistence.Contains(header),
186FastCount = requestHeadersCount.Contains(header),
193PrimaryHeader = requestPrimaryHeaders.Contains(HeaderNames.ContentLength)
248.OrderBy(header => !responsePrimaryHeaders.Contains(header))
252ClassName = FormattedInternalHeaderNames.Select(x => x.Name).Contains(header) ? "InternalHeaderNames" : "HeaderNames",
255EnhancedSetter = enhancedHeaders.Contains(header),
256ExistenceCheck = responseHeadersExistence.Contains(header),
257PrimaryHeader = responsePrimaryHeaders.Contains(header)
264EnhancedSetter = enhancedHeaders.Contains(HeaderNames.ContentLength),
265PrimaryHeader = responsePrimaryHeaders.Contains(HeaderNames.ContentLength)
275.OrderBy(header => !responsePrimaryHeaders.Contains(header))
279ClassName = FormattedInternalHeaderNames.Select(x => x.Name).Contains(header) ? "InternalHeaderNames" : "HeaderNames",
282EnhancedSetter = enhancedHeaders.Contains(header),
283ExistenceCheck = responseHeadersExistence.Contains(header),
284PrimaryHeader = responsePrimaryHeaders.Contains(header)
298.Where(header => invalidH2H3ResponseHeaders.Contains(header.Name))
303.Where(header => FormattedInternalHeaderNames.Where(x => x.IsPseudoHeader).Select(x => x.Identifier).Contains(header.Identifier))
906{Each(loop.Headers.Where(header => header.Name != HeaderNames.ContentLength && !NonApiHeaders.Contains(header.Identifier)), header => $@"
937{Each(ApiHeaderNames.Where(header => header != "ContentLength" && !loop.Headers.Select(kh => kh.Identifier).Contains(header)), header => $@"
Microsoft.AspNetCore.SignalR.Core (4)
DefaultHubLifetimeManager.cs (4)
264DefaultHubLifetimeManager<THub>.SendToGroupConnections(methodName, args, group, (connection, state) => !((IReadOnlyList<string>)state!).Contains(connection.ConnectionId), excludedConnectionIds, ref tasks, ref message, cancellationToken);
318return SendToAllConnections(methodName, args, (connection, state) => !((IReadOnlyList<string>)state!).Contains(connection.ConnectionId), excludedConnectionIds, cancellationToken);
324return SendToAllConnections(methodName, args, (connection, state) => ((IReadOnlyList<string>)state!).Contains(connection.ConnectionId), connectionIds, cancellationToken);
330return SendToAllConnections(methodName, args, (connection, state) => ((IReadOnlyList<string>)state!).Contains(connection.UserIdentifier), userIds, cancellationToken);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.Build (14)
Microsoft.Build.Engine.UnitTests (1)
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.Core (4)
Microsoft.Build.UnitTests.Shared (2)
Microsoft.Build.Utilities.Core (7)
Microsoft.Cci.Extensions (3)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (23)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Microsoft.CodeAnalysis.EditorFeatures (5)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (21)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.CodeAnalysis.UnitTests (14)
Microsoft.CodeAnalysis.Workspaces (32)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.GenFacades (6)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.SignCheckLibrary (2)
Microsoft.DotNet.SignTool (1)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.VersionTools (1)
Microsoft.DotNet.XliffTasks (2)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Microsoft.Extensions.Http.Diagnostics.Tests (4)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.Identity.Stores (1)
Microsoft.Gen.Logging (1)
Microsoft.Interop.SourceGeneration (3)
Microsoft.ML.AutoML (8)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Core (6)
Microsoft.ML.Data (17)
Microsoft.ML.FastTree (3)
Microsoft.ML.GenAI.LLaMA (1)
Microsoft.ML.GenAI.Phi (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.OnnxConverter (1)
Microsoft.ML.SearchSpace (2)
Microsoft.ML.StandardTrainers (2)
Microsoft.ML.Sweeper (1)
Microsoft.ML.TimeSeries (2)
Microsoft.ML.TorchSharp (2)
Microsoft.ML.Transforms (1)
Microsoft.ML.Vision (1)
Microsoft.VisualStudio.LanguageServices (9)
Microsoft.VisualStudio.LanguageServices.LiveShare (4)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
MSBuildTaskHost (3)
Mvc.RoutingWebSite (1)
System.ComponentModel.Annotations (1)
System.Composition.Convention (2)
System.Composition.Hosting (1)
System.Drawing.Common.Tests (2)
System.Linq.Expressions (2)
System.Linq.Queryable (1)
System.Private.CoreLib.Generators (1)
System.Text.RegularExpressions.Generator (1)
System.Windows.Forms (7)
System.Windows.Forms.Design (4)
System.Windows.Forms.Design.Tests (4)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.Tests (2)
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (15)
Templates.Tests (4)
TestingAppHost1.AppHost (4)
WinFormsControlsTest (1)
xunit.assert (2)
xunit.console (2)