609 references to Contains
AnalyzerRunner (1)
Aspire.Dashboard.Tests (1)
Aspire.Hosting (3)
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 (1)
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 (12)
Microsoft.Build.Engine.UnitTests (1)
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.Core (3)
Microsoft.Build.UnitTests.Shared (2)
Microsoft.Build.Utilities.Core (6)
Microsoft.Cci.Extensions (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (18)
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 (7)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (42)
Semantics\RawInterpolationTests_Handler.cs (27)
1514verifier.VerifyIL("<top-level-statements-entry-point>", expression.Contains('+')
1566verifier.VerifyIL("<top-level-statements-entry-point>", expression.Contains('+')
2025if (expression.Contains('+'))
2120if (expression.Contains('+'))
2644if (expression.Contains('+'))
2764if (expression1.Contains('+'))
2814if (expression1.Contains('+'))
3651verifier.VerifyIL(@"Program.<>c.<<Main>$>b__0_0()", !expression.Contains('+') ? @"
3777if (expression.Contains('+'))
3922verifier.VerifyIL(@"Program.<>c.<<Main>$>b__0_0(bool)", !expression.Contains('+') ? @"
4081if (expression.Contains('+'))
4101if (expression.Contains('+'))
4194verifier.VerifyIL("<top-level-statements-entry-point>", !expression.Contains('+') ? @"
4462verifier.VerifyIL("<top-level-statements-entry-point>", !expression.Contains('+') ? @"
5085Diagnostic(ErrorCode.ERR_TypeIsNotAnInterpolatedStringHandlerType, "InterpolatedStringHandlerArgumentAttribute").WithArguments("string").WithLocation(expression.Contains('+') ? 12 : 10, 27));
5150Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "string").WithLocation(expression.Contains('+') ? 12 : 10, 70));
5190Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""NonExistant"")").WithArguments("NonExistant", "C.M(CustomHandler)").WithLocation(expression.Contains('+') ? 12 : 10, 27));
5277Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""i"", ""NonExistant"")").WithArguments("NonExistant", "C.M(int, CustomHandler)").WithLocation(expression.Contains('+') ? 12 : 10, 34));
5364Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""NonExistant1"", ""NonExistant2"")").WithArguments("NonExistant1", "C.M(int, CustomHandler)").WithLocation(expression.Contains('+') ? 12 : 10, 34),
5367Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""NonExistant1"", ""NonExistant2"")").WithArguments("NonExistant2", "C.M(int, CustomHandler)").WithLocation(expression.Contains('+') ? 12 : 10, 34));
5454Diagnostic(ErrorCode.ERR_CannotUseSelfAsInterpolatedStringHandlerArgument, @"InterpolatedStringHandlerArgumentAttribute(""c"")").WithLocation(expression.Contains('+') ? 12 : 10, 34));
5541Diagnostic(ErrorCode.ERR_NullInvalidInterpolatedStringHandlerArgumentName, "InterpolatedStringHandlerArgumentAttribute(new string[] { null })").WithLocation(expression.Contains('+') ? 12 : 10, 34));
5722Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.M(CustomHandler)").WithLocation(expression.Contains('+') ? 12 : 10, 27));
5811Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.C(CustomHandler)").WithLocation(expression.Contains('+') ? 12 : 10, 15));
5900Diagnostic(ErrorCode.ERR_TypeIsNotAnInterpolatedStringHandlerType, "InterpolatedStringHandlerArgumentAttribute").WithArguments("T").WithLocation(expression.Contains('+') ? 12 : 10, 27));
6031Diagnostic(ErrorCode.WRN_ParameterOccursAfterInterpolatedStringHandlerParameter, @"InterpolatedStringHandlerArgumentAttribute(""i"")").WithArguments("i", "c").WithLocation(expression.Contains('+') ? 12 : 10, 27));
6073Diagnostic(ErrorCode.WRN_ParameterOccursAfterInterpolatedStringHandlerParameter, @"InterpolatedStringHandlerArgumentAttribute(""i"")").WithArguments("i", "c").WithLocation(expression.Contains('+') ? 12 : 10, 27));
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 (19)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (12)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (3)
Microsoft.CodeAnalysis.UnitTests (14)
Microsoft.CodeAnalysis.Workspaces (31)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.DotNet.Build.Tasks.Feed (4)
Microsoft.DotNet.Build.Tasks.Packaging (1)
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 (2)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Microsoft.Extensions.Http.Diagnostics.Tests (4)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.Identity.Stores (1)
Microsoft.Gen.Logging (1)
Microsoft.Interop.SourceGeneration (3)
Microsoft.Maui (1)
Microsoft.Maui.Controls (20)
Microsoft.Maui.Controls.Build.Tasks (3)
Microsoft.Maui.Controls.Compatibility (4)
Microsoft.Maui.Controls.SourceGen (1)
Microsoft.Maui.Controls.Xaml (1)
Microsoft.Maui.Essentials (1)
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)
PresentationFramework (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 (5)
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)