1 instantiation of Boolean
PresentationFramework (1)
7496 references to Boolean
Analyzer.Utilities.UnitTests (2)
AnalyzerRunner (1)
aspire (13)
Aspire.Azure.AI.OpenAI (4)
Aspire.Azure.Messaging.EventHubs (1)
Aspire.Azure.Messaging.EventHubs.Tests (1)
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Azure.Npgsql (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Azure.Npgsql.Tests (1)
Aspire.Azure.Security.KeyVault.Tests (1)
Aspire.Cli.Tests (4)
Aspire.Confluent.Kafka (1)
Aspire.Confluent.Kafka.Tests (2)
Aspire.Dashboard (51)
Aspire.Dashboard.Tests (20)
ConsoleLogsTests\UrlParserTests.cs (7)
19var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var _);
30var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var modifiedText);
46var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var modifiedText);
58var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var _);
68var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var _);
78var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var modifiedText);
87var result = UrlParser.TryParse("https://www.example.com?query=string¶m=value", WebUtility.HtmlEncode, out var modifiedText);
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (39)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (5)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Functions (3)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Python.Tests (2)
Aspire.Hosting.RabbitMQ (2)
Aspire.Hosting.Tests (20)
Aspire.Npgsql.Tests (1)
Aspire.OpenAI (1)
Aspire.Playground.Tests (1)
Aspire.Templates.Tests (2)
Binding.ReliableSession.IntegrationTests (2)
Binding.Tcp.IntegrationTests (2)
blazor-devserver (1)
BoundTreeGenerator (2)
BuildActionTelemetryTable (1)
BuildBoss (25)
BuildValidator (6)
ClientSample (4)
CodeGenerator (4)
CodeStyleConfigFileGenerator (1)
ConfigurationSchemaGenerator (7)
csc (3)
CSharpSyntaxGenerator (6)
dotnet-dev-certs (22)
dotnet-getdocument (4)
dotnet-openapi (7)
dotnet-sql-cache (3)
dotnet-svcutil-lib (177)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (12)
301new Type[] { typeof(string), typeof(string), typeof(object), typeof(Boolean) },
788argTypes.Add(typeof(Boolean));
791argTypes.Add(typeof(Boolean));
966argTypes.Add(typeof(Boolean));
969argTypes.Add(typeof(Boolean));
1027new Type[] { typeof(String), typeof(String), typeof(Object), typeof(Boolean) },
1064new Type[] { typeof(Boolean) },
1101new Type[] { typeof(String), typeof(String), typeof(Object), typeof(Boolean), typeof(XmlSerializerNamespaces) },
2124argTypes.Add(typeof(Boolean));
2127argTypes.Add(typeof(Boolean));
2194new Type[] { cast, typeof(String), typeof(String), typeof(Boolean), typeof(Boolean) },
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (127)
310if (((global::System.Boolean)o.@Required) != false)
312WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
338if (((global::System.Boolean)o.@Required) != false)
340WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
366if (((global::System.Boolean)o.@Required) != false)
368WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
671if (((global::System.Boolean)o.@Required) != false)
673WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
720if (((global::System.Boolean)o.@Required) != false)
722WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
875if (((global::System.Boolean)o.@Required) != false)
877WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
912if (((global::System.Boolean)o.@Required) != false)
914WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
990if (((global::System.Boolean)o.@Required) != false)
992WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1042WriteAttribute(@"ignoreCase", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IgnoreCase)));
1076if (((global::System.Boolean)o.@Required) != false)
1078WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1104if (((global::System.Boolean)o.@Required) != false)
1106WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1133if (((global::System.Boolean)o.@Required) != false)
1135WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1173if (((global::System.Boolean)o.@Required) != false)
1175WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1213if (((global::System.Boolean)o.@Required) != false)
1215WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1255if (((global::System.Boolean)o.@Required) != false)
1257WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1296if (((global::System.Boolean)o.@Required) != false)
1298WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1338if (((global::System.Boolean)o.@Required) != false)
1340WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1493if (((global::System.Boolean)o.@Required) != false)
1495WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1520if (((global::System.Boolean)o.@Required) != false)
1522WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1547if (((global::System.Boolean)o.@Required) != false)
1549WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1591if (((global::System.Boolean)o.@Required) != false)
1593WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1619if (((global::System.Boolean)o.@Required) != false)
1621WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1628if (((global::System.Boolean)o.@SoapActionRequired) != false)
1630WriteAttribute(@"soapActionRequired", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@SoapActionRequired)));
1667if (((global::System.Boolean)o.@Required) != false)
1669WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1699if (((global::System.Boolean)o.@Required) != false)
1701WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1727if (((global::System.Boolean)o.@Required) != false)
1729WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
2843if (((global::System.Boolean)o.@IsAbstract) != false)
2845WriteAttribute(@"abstract", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsAbstract)));
2865if (((global::System.Boolean)o.@IsNillable) != false)
2867WriteAttribute(@"nillable", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsNillable)));
3355if (((global::System.Boolean)o.@IsFixed) != false)
3357WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3397if (((global::System.Boolean)o.@IsFixed) != false)
3399WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3439if (((global::System.Boolean)o.@IsFixed) != false)
3441WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3481if (((global::System.Boolean)o.@IsFixed) != false)
3483WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3523if (((global::System.Boolean)o.@IsFixed) != false)
3525WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3565if (((global::System.Boolean)o.@IsFixed) != false)
3567WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3607if (((global::System.Boolean)o.@IsFixed) != false)
3609WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3649if (((global::System.Boolean)o.@IsFixed) != false)
3651WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3691if (((global::System.Boolean)o.@IsFixed) != false)
3693WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3733if (((global::System.Boolean)o.@IsFixed) != false)
3735WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3775if (((global::System.Boolean)o.@IsFixed) != false)
3777WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3817if (((global::System.Boolean)o.@IsFixed) != false)
3819WriteAttribute(@"fixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3957if (((global::System.Boolean)o.@IsAbstract) != false)
3959WriteAttribute(@"abstract", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsAbstract)));
3965if (((global::System.Boolean)o.@IsMixed) != false)
3967WriteAttribute(@"mixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsMixed)));
4399WriteAttribute(@"mixed", @"", Microsoft.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsMixed)));
dotnet-svcutil-lib.Tests (6)
dotnet-user-jwts (4)
dotnet-user-secrets (3)
GenerateDocumentationAndConfigFiles (15)
GenerateRulesMissingDocumentation (2)
GetDocument.Insider (6)
HealthChecksSandbox.AppHost (1)
HelixTestRunner (1)
http2cat (6)
Identity.ExternalClaims (3)
IIS.FunctionalTests (8)
IIS.LongTests (7)
IIS.NewHandler.FunctionalTests (7)
IIS.NewShim.FunctionalTests (7)
IIS.ShadowCopy.Tests (2)
IISExpress.FunctionalTests (6)
illink (16)
ILLink.RoslynAnalyzer (3)
InMemory.FunctionalTests (42)
InProcessWebSite (2)
InteractiveHost.UnitTests (5)
Interop.FunctionalTests (13)
InteropTests (1)
InteropWebsite (1)
IOperationGenerator (3)
KeyManagementSimulator (1)
LocalizationWebsite (1)
Metrics (9)
Metrics.Legacy (9)
Microsoft.Analyzers.Extra (6)
Microsoft.Analyzers.Local (3)
Microsoft.Arcade.Common (4)
Microsoft.Arcade.Test.Common (6)
Microsoft.AspNetCore (2)
Microsoft.AspNetCore.Analyzers (3)
Microsoft.AspNetCore.Analyzers.Test (6)
Microsoft.AspNetCore.Antiforgery (5)
Microsoft.AspNetCore.Antiforgery.Test (19)
DefaultAntiforgeryTokenGeneratorTest.cs (12)
222var isValid = tokenProvider.IsCookieTokenValid(cookieToken);
238var isValid = tokenProvider.IsCookieTokenValid(cookieToken);
258var isValid = tokenProvider.IsCookieTokenValid(cookieToken);
326var result = tokenProvider.TryValidateTokenSet(httpContext, fieldtoken, fieldtoken, out message);
353var result = tokenProvider.TryValidateTokenSet(httpContext, cookieToken, cookieToken, out message);
378var result = tokenProvider.TryValidateTokenSet(httpContext, cookieToken, fieldtoken, out message);
418var result = tokenProvider.TryValidateTokenSet(httpContext, cookieToken, fieldtoken, out message);
456var result = tokenProvider.TryValidateTokenSet(httpContext, cookieToken, fieldtoken, out message);
493var result = tokenProvider.TryValidateTokenSet(httpContext, cookieToken, fieldtoken, out message);
527var result = tokenProvider.TryValidateTokenSet(httpContext, cookieToken, fieldtoken, out message);
561var result = tokenProvider.TryValidateTokenSet(httpContext, cookieToken, fieldtoken, out message);
594var result = tokenProvider.TryValidateTokenSet(httpContext, cookieToken, fieldtoken, out message);
Microsoft.AspNetCore.App.Analyzers (31)
Microsoft.AspNetCore.App.Analyzers.Test (5)
Microsoft.AspNetCore.App.CodeFixes (2)
Microsoft.AspNetCore.App.UnitTests (3)
Microsoft.AspNetCore.Authentication.Abstractions (2)
Microsoft.AspNetCore.Authentication.Certificate (2)
Microsoft.AspNetCore.Authentication.Cookies (5)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.JwtBearer (2)
Microsoft.AspNetCore.Authentication.Negotiate.Test (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.Test (7)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Authorization (9)
Microsoft.AspNetCore.Authorization.Policy (2)
Microsoft.AspNetCore.Authorization.Test (5)
Microsoft.AspNetCore.BrowserTesting (2)
Microsoft.AspNetCore.Components (53)
Microsoft.AspNetCore.Components.Endpoints (19)
Microsoft.AspNetCore.Components.Endpoints.Tests (11)
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Components.Forms.Tests (7)
Microsoft.AspNetCore.Components.QuickGrid (2)
Microsoft.AspNetCore.Components.Server (10)
Microsoft.AspNetCore.Components.Server.Tests (17)
Microsoft.AspNetCore.Components.Tests (73)
BindConverterTest.cs (13)
21var value = true;
22var expected = true;
25var actual = BindConverter.FormatValue(value);
35var value = true;
36var expected = true;
50var expected = true;
63var value = true;
64var expected = true;
309var successfullyConverted = BindConverter.TryConvertTo<Guid>(incomingValue, CultureInfo.CurrentCulture, out var actual);
323var successfullyConverted = BindConverter.TryConvertTo<Guid>(incomingValue, CultureInfo.CurrentCulture, out var actual);
338var successfullyConverted = BindConverter.TryConvertTo<Guid?>(incomingValue, CultureInfo.CurrentCulture, out var actual);
351var successfullyConverted = BindConverter.TryConvertTo<Guid?>(incomingValue, CultureInfo.CurrentCulture, out var actual);
365var successfullyConverted = BindConverter.TryConvertTo<Guid?>(value, CultureInfo.CurrentCulture, out var actual);
Microsoft.AspNetCore.Components.Web (16)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebAssembly.Server (13)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.Components.WebView.Maui (2)
Microsoft.AspNetCore.Components.WebView.Photino (1)
Microsoft.AspNetCore.Components.WebView.Test (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.Components.WebViewE2E.Test (2)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (4)
Microsoft.AspNetCore.Connections.Abstractions (3)
Microsoft.AspNetCore.CookiePolicy (2)
Microsoft.AspNetCore.CookiePolicy.Test (2)
Microsoft.AspNetCore.Cors (6)
Microsoft.AspNetCore.Cors.Test (4)
Microsoft.AspNetCore.DataProtection (12)
Microsoft.AspNetCore.DataProtection.Tests (18)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (18)
Microsoft.AspNetCore.Diagnostics (3)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (7)
Microsoft.AspNetCore.FunctionalTests (4)
Microsoft.AspNetCore.Grpc.JsonTranscoding (9)
Microsoft.AspNetCore.Grpc.Swagger (6)
Microsoft.AspNetCore.HeaderPropagation (1)
Microsoft.AspNetCore.Hosting (9)
Microsoft.AspNetCore.Hosting.Tests (11)
Microsoft.AspNetCore.Http (12)
Microsoft.AspNetCore.Http.Abstractions (13)
Microsoft.AspNetCore.Http.Abstractions.Tests (89)
RouteValueDictionaryTests.cs (61)
224var value = Assert.IsType<bool>(kvp.Value);
245var value = Assert.IsType<bool>(kvp.Value);
297var value = Assert.IsType<bool>(kvp.Value);
303var value = Assert.IsType<bool>(kvp.Value);
432var result = ((ICollection<KeyValuePair<string, object?>>)dict).IsReadOnly;
1024var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1043var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1062var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1082var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1098var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1118var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1138var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1159var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
1177var result = dict.ContainsKey("key");
1190var result = dict.ContainsKey("");
1203var result = dict.ContainsKey("other");
1218var result = dict.ContainsKey("key");
1233var result = dict.ContainsKey("kEy");
1251var result = dict.ContainsKey("other");
1268var result = dict.ContainsKey("key");
1285var result = dict.ContainsKey("kEy");
1329var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
1349var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
1369var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
1390var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
1405var result = dict.Remove("key");
1418var result = dict.Remove("");
1431var result = dict.Remove("other");
1446var result = dict.Remove("other");
1461var result = dict.Remove("key");
1476var result = dict.Remove("kEy");
1494var result = dict.Remove("other");
1512var result = dict.Remove("key");
1530var result = dict.Remove("kEy");
1545var result = dict.Remove("key", out var removedValue);
1559var result = dict.Remove("", out var removedValue);
1573var result = dict.Remove("other", out var removedValue);
1589var result = dict.Remove("other", out var removedValue);
1606var result = dict.Remove("key", out var removedValue);
1623var result = dict.Remove("kEy", out var removedValue);
1642var result = dict.Remove("other", out var removedValue);
1662var result = dict.Remove("key", out var removedValue);
1682var result = dict.Remove("kEy", out var removedValue);
1704var result = dict.Remove("key", out var removedValue);
1729var result = dict.Remove("key", out var removedValue);
1754var result = dict.Remove("key", out var removedValue);
1773var result = dict.TryAdd("", "foo");
1786var result = dict.TryAdd("otherKey", "value");
1806var result = dict.TryAdd("key", "value");
1824var result = dict.TryAdd("key", "value");
1846var result = dict.TryAdd("key1", "value1");
1871var result = dict.TryAdd("key4", "value4");
1897var result = dict.TryAdd("key0", "value1");
1916var result = dict.TryGetValue("key", out var value);
1930var result = dict.TryGetValue("", out var value);
1944var result = dict.TryGetValue("other", out var value);
1959var result = dict.TryGetValue("key", out var value);
1974var result = dict.TryGetValue("kEy", out var value);
1992var result = dict.TryGetValue("other", out var value);
2010var result = dict.TryGetValue("key", out var value);
2028var result = dict.TryGetValue("kEy", out var value);
Microsoft.AspNetCore.Http.Connections (5)
Microsoft.AspNetCore.Http.Connections.Client (9)
Microsoft.AspNetCore.Http.Connections.Common (2)
Microsoft.AspNetCore.Http.Connections.Tests (12)
Microsoft.AspNetCore.Http.Extensions (32)
RequestDelegateFactory.cs (20)
655args[i] = CreateArgument(parameters[i], factoryContext, out var hasTryParse, out var hasBindAsync, out var isAsParameters);
787var useSimpleBinding = parameter.ParameterType == typeof(string) ||
1033var isAwaitable = false;
1563var isNullable = Nullable.GetUnderlyingType(parameterType) != null ||
1587constructorArguments[i] = CreateArgument(parameterInfo, factoryContext, out var hasTryParse, out var hasBindAsync, out var _);
1612bindings.Add(Expression.Bind(properties[i], CreateArgument(parameterInfo, factoryContext, out var hasTryParse, out var hasBindAsync, out var _)));
1636var isOptional = IsOptionalParameter(parameter, factoryContext);
1647var isOptional = IsOptionalParameter(parameter, factoryContext);
1668var isOptional = IsOptionalParameter(parameter, factoryContext);
1680var isNotNullable = underlyingNullableType is null;
1803var elementTypeOptional = !isNotNullable || (elementTypeNullabilityInfo?.ReadState != NullabilityState.NotNull);
1894var isOptional = IsOptionalParameter(parameter, factoryContext);
1984var isOptional = IsOptionalParameter(parameter, factoryContext);
2291var isOptional = IsOptionalParameter(parameter, factoryContext);
Microsoft.AspNetCore.Http.Extensions.Tests (13)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (24)
Microsoft.AspNetCore.Http.Results (5)
Microsoft.AspNetCore.Http.Results.Tests (14)
Microsoft.AspNetCore.Http.Tests (2)
Microsoft.AspNetCore.Http.ValidationsGenerator (6)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.HttpOverrides (1)
Microsoft.AspNetCore.HttpOverrides.Tests (12)
Microsoft.AspNetCore.Identity (7)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (2)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Identity.InMemory.Test (2)
Microsoft.AspNetCore.Identity.Test (10)
Microsoft.AspNetCore.Identity.UI (11)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.InternalTesting.Tests (7)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (58)
Internal\DictionaryAdapterTest.cs (17)
25var addStatus = dictionaryAdapter.TryAdd(dictionary, key, serializerOptions, 200, out var message);
45var addStatus = dictionaryAdapter.TryAdd(dictionary, intKey.ToString(CultureInfo.InvariantCulture), serializerOptions, "James", out var message);
64var addStatus = dictionaryAdapter.TryAdd(dictionary, key.ToString(CultureInfo.InvariantCulture), serializerOptions, "James", out var message);
74var getStatus = dictionaryAdapter.TryGet(dictionary, guidKey.ToString(), serializerOptions, out var outValue, out message);
92var addStatus = dictionaryAdapter.TryAdd(dictionary, nameKey, serializerOptions, "James", out var message);
101var getStatus = dictionaryAdapter.TryGet(dictionary, nameKey.ToUpperInvariant(), serializerOptions, out var outValue, out message);
119var addStatus = dictionaryAdapter.TryAdd(dictionary, nameKey, serializerOptions, "James", out var message);
147var replaceStatus = dictionaryAdapter.TryReplace(dictionary, nameKey, serializerOptions, "James", out var message);
167var replaceStatus = dictionaryAdapter.TryReplace(dictionary, guidKey.ToString(), serializerOptions, "James", out var message);
187var replaceStatus = dictionaryAdapter.TryReplace(dictionary, guidKey.ToString(), serializerOptions, "test", out var message);
205var replaceStatus = dictionaryAdapter.TryReplace(dictionary, nameKey, serializerOptions, "Mike", out var message);
223var removeStatus = dictionaryAdapter.TryRemove(dictionary, nameKey, serializerOptions, out var message);
246var replaceStatus = dictionaryAdapter.TryReplace(dictionary, nameKey, serializerOptions, "James", out var message);
266var removeStatus = dictionaryAdapter.TryRemove(dictionary, nameKey, serializerOptions, out var message);
285var removeStatus = dictionaryAdapter.TryRemove(dictionary, uriKey.ToString(), serializerOptions, out var message);
310var testStatus = dictionaryAdapter.TryTest(dictionary, key, serializerOptions, value, out var message);
329var testStatus = dictionaryAdapter.TryTest(dictionary, key, serializerOptions, "John", out var errorMessage);
Internal\ListAdapterTest.cs (21)
23var addStatus = listAdapter.TryAdd(targetObject, "0", serializerOptions, "40", out var message);
41var addStatus = listAdapter.TryAdd(targetObject, "-", serializerOptions, "40", out var message);
58var addStatus = listAdapter.TryAdd(targetObject, position, serializerOptions, "Rob", out var message);
79var addStatus = listAdapter.TryAdd(targetObject, position, serializerOptions, "40", out var message);
97var addStatus = listAdapter.TryAdd(targetObject, position, serializerOptions, "40", out var message);
131var addStatus = listAdapter.TryAdd(targetObject, "-", serializerOptions, 20, out var message);
149var addStatus = listAdapter.TryAdd(targetObject, "-", serializerOptions, value: null, errorMessage: out var message);
169var addStatus = listAdapter.TryAdd(targetObject, "-", serializerOptions, iDto, out var message);
187var addStatus = listAdapter.TryAdd(targetObject, "-", serializerOptions, "James", out var message);
237var addStatus = listAdapter.TryAdd(targetObject, position, serializerOptions, value, out var message);
292var addStatus = listAdapter.TryAdd(targetObject, position, serializerOptions, value, out var message);
313var getStatus = listAdapter.TryGet(targetObject, position, serializerOptions, out var value, out var message);
332var getStatus = listAdapter.TryGet(targetObject, position, serializerOptions, out var value, out var message);
352var removeStatus = listAdapter.TryRemove(targetObject, position, serializerOptions, out var message);
371var removeStatus = listAdapter.TryRemove(targetObject, position, serializerOptions, out var message);
387var replaceStatus = listAdapter.TryReplace(targetObject, "-", serializerOptions, "James", out var message);
403var replaceStatus = listAdapter.TryReplace(targetObject, "-", serializerOptions, 30, out var message);
439var replaceStatus = listAdapter.TryReplace(targetObject, position, serializerOptions, 30, out var message);
458var testStatus = listAdapter.TryTest(targetObject, "0", serializerOptions, "10", out var message);
475var testStatus = listAdapter.TryTest(targetObject, "1", serializerOptions, 10, out var errorMessage);
492var testStatus = listAdapter.TryTest(targetObject, "2", serializerOptions, "10", out var errorMessage);
Internal\ObjectVisitorTest.cs (8)
51var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
85var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
129var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
149var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
167var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
183var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
199var visitStatus = visitor.TryVisit(ref target, out var adapter, out var message);
215var visitStatus = visitor.TryVisit(ref target, out var adapter, out var message);
Internal\PocoAdapterTest.cs (12)
24var addStatus = adapter.TryAdd(model, "Name", serializerOptions, "John", out var errorMessage);
45var addStatus = adapter.TryAdd(model, "LastName", serializerOptions, "Smith", out var errorMessage);
64var getStatus = adapter.TryGet(model, "Name", serializerOptions, out var value, out var errorMessage);
85var getStatus = adapter.TryGet(model, "LastName", serializerOptions, out var value, out var errorMessage);
105var removeStatus = adapter.TryRemove(model, "Name", serializerOptions, out var errorMessage);
126var removeStatus = adapter.TryRemove(model, "LastName", serializerOptions, out var errorMessage);
145var replaceStatus = adapter.TryReplace(model, "Name", serializerOptions, "John", out var errorMessage);
167var replaceStatus = adapter.TryReplace(model, "Age", serializerOptions, "TwentySix", out var errorMessage);
188var replaceStatus = adapter.TryReplace(model, "LastName", serializerOptions, "Smith", out var errorMessage);
215var replaceStatus = adapter.TryReplace(model, "Rectangle", serializerOptions, "Oval", out var errorMessage);
234var testStatus = adapter.TryTest(model, "Name", serializerOptions, "Joana", out var errorMessage);
255var testStatus = adapter.TryTest(model, "Name", serializerOptions, "John", out var errorMessage);
Microsoft.AspNetCore.JsonPatch.Tests (59)
Internal\DictionaryAdapterTest.cs (17)
28var addStatus = dictionaryAdapter.TryAdd(dictionary, key, resolver, 200, out var message);
48var addStatus = dictionaryAdapter.TryAdd(dictionary, intKey.ToString(CultureInfo.InvariantCulture), resolver, "James", out var message);
67var addStatus = dictionaryAdapter.TryAdd(dictionary, key.ToString(CultureInfo.InvariantCulture), resolver, "James", out var message);
77var getStatus = dictionaryAdapter.TryGet(dictionary, guidKey.ToString(), resolver, out var outValue, out message);
95var addStatus = dictionaryAdapter.TryAdd(dictionary, nameKey, resolver, "James", out var message);
104var getStatus = dictionaryAdapter.TryGet(dictionary, nameKey.ToUpperInvariant(), resolver, out var outValue, out message);
122var addStatus = dictionaryAdapter.TryAdd(dictionary, nameKey, resolver, "James", out var message);
150var replaceStatus = dictionaryAdapter.TryReplace(dictionary, nameKey, resolver, "James", out var message);
170var replaceStatus = dictionaryAdapter.TryReplace(dictionary, guidKey.ToString(), resolver, "James", out var message);
190var replaceStatus = dictionaryAdapter.TryReplace(dictionary, guidKey.ToString(), resolver, "test", out var message);
208var replaceStatus = dictionaryAdapter.TryReplace(dictionary, nameKey, resolver, "Mike", out var message);
226var removeStatus = dictionaryAdapter.TryRemove(dictionary, nameKey, resolver, out var message);
248var replaceStatus = dictionaryAdapter.TryReplace(dictionary, nameKey, resolver, "James", out var message);
268var removeStatus = dictionaryAdapter.TryRemove(dictionary, nameKey, resolver, out var message);
287var removeStatus = dictionaryAdapter.TryRemove(dictionary, uriKey.ToString(), resolver, out var message);
312var testStatus = dictionaryAdapter.TryTest(dictionary, key, resolver, value, out var message);
331var testStatus = dictionaryAdapter.TryTest(dictionary, key, resolver, "John", out var errorMessage);
Internal\ListAdapterTest.cs (21)
23var addStatus = listAdapter.TryAdd(targetObject, "0", resolver, "40", out var message);
41var addStatus = listAdapter.TryAdd(targetObject, "-", resolver, "40", out var message);
58var addStatus = listAdapter.TryAdd(targetObject, position, resolver, "Rob", out var message);
79var addStatus = listAdapter.TryAdd(targetObject, position, resolver, "40", out var message);
97var addStatus = listAdapter.TryAdd(targetObject, position, resolver, "40", out var message);
131var addStatus = listAdapter.TryAdd(targetObject, "-", resolver, "20", out var message);
149var addStatus = listAdapter.TryAdd(targetObject, "-", resolver, value: null, errorMessage: out var message);
169var addStatus = listAdapter.TryAdd(targetObject, "-", resolver, iDto, out var message);
187var addStatus = listAdapter.TryAdd(targetObject, "-", resolver, "James", out var message);
237var addStatus = listAdapter.TryAdd(targetObject, position, resolver, value, out var message);
292var addStatus = listAdapter.TryAdd(targetObject, position, resolver, value, out var message);
313var getStatus = listAdapter.TryGet(targetObject, position, resolver, out var value, out var message);
332var getStatus = listAdapter.TryGet(targetObject, position, resolver, out var value, out var message);
352var removeStatus = listAdapter.TryRemove(targetObject, position, resolver, out var message);
371var removeStatus = listAdapter.TryRemove(targetObject, position, resolver, out var message);
387var replaceStatus = listAdapter.TryReplace(targetObject, "-", resolver, "James", out var message);
403var replaceStatus = listAdapter.TryReplace(targetObject, "-", resolver, "30", out var message);
439var replaceStatus = listAdapter.TryReplace(targetObject, position, resolver, "30", out var message);
456var testStatus = listAdapter.TryTest(targetObject, "0", resolver, "10", out var message);
473var testStatus = listAdapter.TryTest(targetObject, "1", resolver, "10", out var errorMessage);
490var testStatus = listAdapter.TryTest(targetObject, "2", resolver, "10", out var errorMessage);
Internal\ObjectVisitorTest.cs (9)
51var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
84var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
114var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
146var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
166var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
184var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
200var visitStatus = visitor.TryVisit(ref targetObject, out var adapter, out var message);
216var visitStatus = visitor.TryVisit(ref target, out var adapter, out var message);
232var visitStatus = visitor.TryVisit(ref target, out var adapter, out var message);
Internal\PocoAdapterTest.cs (12)
30var addStatus = adapter.TryAdd(model, "Name", contractResolver, "John", out var errorMessage);
51var addStatus = adapter.TryAdd(model, "LastName", contractResolver, "Smith", out var errorMessage);
70var getStatus = adapter.TryGet(model, "Name", contractResolver, out var value, out var errorMessage);
91var getStatus = adapter.TryGet(model, "LastName", contractResolver, out var value, out var errorMessage);
111var removeStatus = adapter.TryRemove(model, "Name", contractResolver, out var errorMessage);
132var removeStatus = adapter.TryRemove(model, "LastName", contractResolver, out var errorMessage);
151var replaceStatus = adapter.TryReplace(model, "Name", contractResolver, "John", out var errorMessage);
173var replaceStatus = adapter.TryReplace(model, "Age", contractResolver, "TwentySix", out var errorMessage);
194var replaceStatus = adapter.TryReplace(model, "LastName", contractResolver, "Smith", out var errorMessage);
217var replaceStatus = adapter.TryReplace(model, "Rectangle", contractResolver, "Oval", out var errorMessage);
235var testStatus = adapter.TryTest(model, "Name", contractResolver, "Joana", out var errorMessage);
256var testStatus = adapter.TryTest(model, "Name", contractResolver, "John", out var errorMessage);
Microsoft.AspNetCore.Mvc.Abstractions (7)
Microsoft.AspNetCore.Mvc.Abstractions.Test (17)
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
Microsoft.AspNetCore.Mvc.ApiExplorer (8)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.Core (73)
Microsoft.AspNetCore.Mvc.Core.Test (219)
ApiExplorer\ApiConventionMatcherTest.cs (30)
19var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Any);
33var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Exact);
47var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Exact);
61var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Exact);
75var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Exact);
89var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Exact);
103var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Prefix);
117var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Prefix);
131var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Prefix);
145var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Prefix);
159var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Prefix);
173var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Prefix);
187var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Suffix);
201var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Suffix);
215var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Suffix);
229var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Suffix);
243var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Suffix);
255var result = ApiConventionMatcher.IsNameMatch(name, conventionName, ApiConventionNameMatchBehavior.Suffix);
268var result = ApiConventionMatcher.IsTypeMatch(type, conventionType, ApiConventionTypeMatchBehavior.Any);
282var result = ApiConventionMatcher.IsTypeMatch(type, conventionType, ApiConventionTypeMatchBehavior.AssignableFrom);
296var result = ApiConventionMatcher.IsTypeMatch(type, conventionType, ApiConventionTypeMatchBehavior.AssignableFrom);
310var result = ApiConventionMatcher.IsTypeMatch(type, conventionType, ApiConventionTypeMatchBehavior.AssignableFrom);
324var result = ApiConventionMatcher.IsTypeMatch(type, conventionType, ApiConventionTypeMatchBehavior.AssignableFrom);
338var result = ApiConventionMatcher.IsMatch(method, conventionMethod);
352var result = ApiConventionMatcher.IsMatch(method, conventionMethod);
366var result = ApiConventionMatcher.IsMatch(method, conventionMethod);
380var result = ApiConventionMatcher.IsMatch(method, conventionMethod);
394var result = ApiConventionMatcher.IsMatch(method, conventionMethod);
408var result = ApiConventionMatcher.IsMatch(method, conventionMethod);
422var result = ApiConventionMatcher.IsMatch(method, conventionMethod);
ApiExplorer\ApiConventionResultTest.cs (8)
16var result = ApiConventionResult.TryGetApiConvention(method, new[] { attribute }, out var conventionResult);
37var result = ApiConventionResult.TryGetApiConvention(method, new[] { attribute }, out var conventionResult);
77var result = ApiConventionResult.TryGetApiConvention(method, attributes, result: out var conventionResult);
102var result = ApiConventionResult.TryGetApiConvention(method, attributes, out var conventionResult);
122var result = ApiConventionResult.TryGetApiConvention(method, attributes, out var conventionResult);
145var result = ApiConventionResult.TryGetApiConvention(method, conventions, out var conventionResult);
169var result = ApiConventionResult.TryGetApiConvention(method, conventions, out var conventionResult);
193var result = ApiConventionResult.TryGetApiConvention(method, conventions, out var conventionResult);
ApplicationModels\DefaultApplicationModelProviderTest.cs (15)
487var isValid = DefaultApplicationModelProvider.IsAction(typeof(DerivedController).GetTypeInfo(), method);
502var isValid = DefaultApplicationModelProvider.IsAction(typeof(BaseController).GetTypeInfo(), method);
519var isValid = DefaultApplicationModelProvider.IsAction(typeof(DerivedController).GetTypeInfo(), method);
535var isValid = DefaultApplicationModelProvider.IsAction(typeof(OperatorOverloadingController).GetTypeInfo(), method);
550var isValid = DefaultApplicationModelProvider.IsAction(typeof(DerivedController).GetTypeInfo(), method);
565var isValid = DefaultApplicationModelProvider.IsAction(typeof(DerivedController).GetTypeInfo(), method);
586var isValid = DefaultApplicationModelProvider.IsAction(typeof(DerivedController).GetTypeInfo(), method);
604var isValid = DefaultApplicationModelProvider.IsAction(typeInfo, method);
625var isValid = DefaultApplicationModelProvider.IsAction(typeInfo, method);
642var isValid = DefaultApplicationModelProvider.IsAction(typeInfo, method);
658var isValid = DefaultApplicationModelProvider.IsAction(typeInfo, method);
676var isValid = DefaultApplicationModelProvider.IsAction(typeInfo, method);
697var isValid = DefaultApplicationModelProvider.IsAction(typeInfo, method);
717var isValid = DefaultApplicationModelProvider.IsAction(typeInfo, method);
738var isValid = DefaultApplicationModelProvider.IsAction(typeof(DerivedController).GetTypeInfo(), method);
ModelBinding\Metadata\DefaultModelMetadataTest.cs (34)
309var isBindingAllowed = metadata.IsBindingAllowed;
336var isBindingRequired = metadata.IsBindingRequired;
363var isParseableType = metadata.IsParseableType;
386var isParseableType = metadata.IsParseableType;
407var isParseableType = metadata.IsParseableType;
429var isRequired = metadata.IsRequired;
450var isRequired = metadata.IsRequired;
744var isReadOnly = metadata.IsReadOnly;
763var isReadOnly = metadata.Properties["PublicGetPrivateSetProperty"].IsReadOnly;
782var isReadOnly = metadata.Properties["PublicGetProtectedSetProperty"].IsReadOnly;
801var isReadOnly = metadata.Properties["PublicGetPublicSetProperty"].IsReadOnly;
825var validateChildren = metadata.ValidateChildren;
852var validateChildren = metadata.ValidateChildren;
915var validateChildren = metadata.ValidateChildren;
940var validateChildren = metadata.ValidateChildren;
997var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1015var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1031var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1045var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1059var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1084var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1111var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1135var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1162var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1203var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1246var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1275var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1318var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1363var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1404var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1454var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1499var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1544var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1587var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
Routing\KnownRouteValueConstraintTests.cs (7)
51var match = knownRouteValueConstraint.Match(httpContext: null, route: null, "area", values, RouteDirection.IncomingRequest);
76var match = constraint.Match(httpContext, route, keyName, values, direction);
112var match = constraint.Match(httpContext, route, keyName, values, direction);
150var match = constraint.Match(httpContext, route, keyName, values, direction);
175var match = constraint.Match(httpContext, route, "area", values, direction);
234var match = constraint.Match(httpContext: null, route: null, keyName, values, direction);
263var match = constraint.Match(httpContext: null, route: null, "randomKey", values, direction);
Microsoft.AspNetCore.Mvc.Cors (3)
Microsoft.AspNetCore.Mvc.Cors.Test (3)
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (13)
Microsoft.AspNetCore.Mvc.Formatters.Xml (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (14)
Microsoft.AspNetCore.Mvc.FunctionalTests (9)
Microsoft.AspNetCore.Mvc.IntegrationTests (33)
TryUpdateModelIntegrationTest.cs (28)
38var result = await TryUpdateModelAsync(model, string.Empty, testContext);
73var result = await TryUpdateModelAsync(model, string.Empty, testContext);
131var result = await TryUpdateModelAsync(model, string.Empty, testContext);
181var result = await TryUpdateModelAsync(model, string.Empty, testContext);
222var result = await TryUpdateModelAsync(model, string.Empty, testContext);
262var result = await TryUpdateModelAsync(model, string.Empty, testContext);
324var result = await TryUpdateModelAsync(model, string.Empty, testContext);
365var result = await TryUpdateModelAsync(model, string.Empty, testContext);
394var result = await TryUpdateModelAsync(model, "prefix", testContext);
428var result = await TryUpdateModelAsync(model, string.Empty, testContext);
475var result = await TryUpdateModelAsync(model, string.Empty, testContext);
517var result = await TryUpdateModelAsync(model, string.Empty, testContext);
558var result = await TryUpdateModelAsync(model, string.Empty, testContext);
605var result = await TryUpdateModelAsync(model, string.Empty, testContext);
645var result = await TryUpdateModelAsync(model, "prefix", testContext);
680var result = await TryUpdateModelAsync(model, "prefix", testContext);
731var result = await TryUpdateModelAsync(model, "prefix", testContext);
781var result = await TryUpdateModelAsync(model, "prefix", testContext);
817var result = await TryUpdateModelAsync(model, "prefix", testContext);
857var result = await TryUpdateModelAsync(model, "prefix", testContext);
909var result = await TryUpdateModelAsync(model, "prefix", testContext);
945var result = await TryUpdateModelAsync(model, "prefix", testContext);
992var result = await TryUpdateModelAsync(model, "prefix", testContext);
1029var result = await TryUpdateModelAsync(model, "prefix", testContext);
1061var result = await TryUpdateModelAsync(model, prefix: "files", testContext: testContext);
1115var result = await TryUpdateModelAsync(model, string.Empty, testContext);
1183var result = await TryUpdateModelAsync(model, string.Empty, testContext);
1235var result = await TryUpdateModelAsync(model, string.Empty, testContext);
Microsoft.AspNetCore.Mvc.Localization (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (11)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (5)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (13)
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
Microsoft.AspNetCore.Mvc.TagHelpers (24)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (16)
Microsoft.AspNetCore.Mvc.Test (2)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (30)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (17)
AttributeDictionaryTest.cs (11)
91var result = attributes.Contains(new KeyValuePair<string, string>("zero", "0"));
108var result = attributes.Contains(new KeyValuePair<string, string>("zero", "nada"));
125var result = attributes.ContainsKey("one");
142var result = attributes.ContainsKey("one!");
179var result = attributes.IsReadOnly;
218var result = attributes.Remove("one");
240var result = attributes.Remove("nada");
263var result = attributes.Remove(new KeyValuePair<string, string>("one", "1"));
285var result = attributes.Remove(new KeyValuePair<string, string>("one", "0"));
310var result = attributes.TryGetValue("two", out value);
330var result = attributes.TryGetValue("nada", out value);
Microsoft.AspNetCore.OpenApi (22)
Microsoft.AspNetCore.OpenApi.SourceGenerators (5)
Microsoft.AspNetCore.OpenApi.Tests (9)
Microsoft.AspNetCore.OutputCaching (3)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.RateLimiting.Tests (15)
Microsoft.AspNetCore.Razor (5)
Microsoft.AspNetCore.Razor.Runtime.Test (2)
Microsoft.AspNetCore.Razor.Test (9)
Microsoft.AspNetCore.ResponseCaching (2)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.ResponseCompression (2)
Microsoft.AspNetCore.ResponseCompression.Tests (2)
Microsoft.AspNetCore.Rewrite (21)
IISUrlRewrite\UrlRewriteFileParser.cs (7)
72var stopProcessing = ParseBool(rule, RewriteTags.StopProcessing, defaultValue: false);
99var ignoreCase = ParseBool(match, RewriteTags.IgnoreCase, defaultValue: true);
100var negate = ParseBool(match, RewriteTags.Negate, defaultValue: false);
112var trackAllCaptures = ParseBool(conditions, RewriteTags.TrackAllCaptures, defaultValue: false);
129var ignoreCase = ParseBool(conditionElement, RewriteTags.IgnoreCase, defaultValue: true);
130var negate = ParseBool(conditionElement, RewriteTags.Negate, defaultValue: false);
210var appendQuery = ParseBool(urlAction, RewriteTags.AppendQueryString, defaultValue: true);
Microsoft.AspNetCore.Routing (52)
Microsoft.AspNetCore.Routing.Abstractions (2)
Microsoft.AspNetCore.Routing.Tests (233)
Constraints\FileNameRouteConstraintTest.cs (3)
38var result = constraint.Match(httpContext: null, route: null, "path", values, RouteDirection.IncomingRequest);
76var result = constraint.Match(httpContext: null, route: null, "path", values, RouteDirection.IncomingRequest);
91var result = constraint.Match(httpContext: null, route: null, "path", values, RouteDirection.IncomingRequest);
Constraints\HttpMethodRouteConstraintTests.cs (4)
26var result = constraint.Match(httpContext, route, "httpMethod", values, RouteDirection.IncomingRequest);
47var result = constraint.Match(httpContext, route, "httpMethod", values, RouteDirection.IncomingRequest);
67var result = constraint.Match(httpContext, route, "httpMethod", values, RouteDirection.UrlGeneration);
87var result = constraint.Match(httpContext, route, "httpMethod", values, RouteDirection.UrlGeneration);
Constraints\NonFIleNameRouteConstraintTest.cs (3)
19var result = constraint.Match(httpContext: null, route: null, "path", values, RouteDirection.IncomingRequest);
36var result = constraint.Match(httpContext: null, route: null, "path", values, RouteDirection.IncomingRequest);
51var result = constraint.Match(httpContext: null, route: null, "path", values, RouteDirection.IncomingRequest);
Patterns\RoutePatternMatcherTest.cs (38)
20var match = matcher.TryMatch("/Bank/DoAction/123", values);
38var match = matcher.TryMatch("/Bank/DoAction", values);
53var match = matcher.TryMatch("/Bank/DoAction", values);
71var match = matcher.TryMatch("/Bank", values);
86var match = matcher.TryMatch("/moo/111/bar/222", values);
103var match = matcher.TryMatch("/moo/111/bar/", values);
126var match = matcher.TryMatch(path, values);
159var match = matcher.TryMatch(path, values);
194var match = matcher.TryMatch(path, values);
232var match = matcher.TryMatch(path, values);
247var match = matcher.TryMatch("/moo/bar", values);
263var match = matcher.TryMatch("/moo/bar", values);
278var match = matcher.TryMatch("/moo/bar/", values);
294var match = matcher.TryMatch("/moo/bar", values);
310var match = matcher.TryMatch("/moo/bar", values);
327var match = matcher.TryMatch("/moo/bar/boo", values);
342var match = matcher.TryMatch("/moo/bar", values);
357var match = matcher.TryMatch("/default.aspx", values);
379var match = matcher.TryMatch(path, values);
394var match = matcher.TryMatch("/v1", values);
415var match = matcher.TryMatch("/date/2007/08", values);
703var match = matcher.TryMatch("/v1/v2/v3", values);
721var match = matcher.TryMatch("/v1/", values);
739var match = matcher.TryMatch("/v1", values);
757var match = matcher.TryMatch("/v1", values);
775var match = matcher.TryMatch("/v1", values);
793var match = matcher.TryMatch("/v1/hello/whatever", values);
906var match = route.TryMatch(url, values);
925var match = route.TryMatch(url, values);
944var match = route.TryMatch(url, values);
962var match = route.TryMatch(url, values);
979var match = route.TryMatch(url, values);
1004var match = route.TryMatch(url, values);
1027var match = route.TryMatch(url, values);
1050var match = route.TryMatch(url, values);
1067var match = route.TryMatch(url, values);
1084var match = route.TryMatch(url, values);
1111var match = matcher.TryMatch(new PathString(path), values);
Template\TemplateMatcherTests.cs (38)
19var match = matcher.TryMatch("/Bank/DoAction/123", values);
37var match = matcher.TryMatch("/Bank/DoAction", values);
52var match = matcher.TryMatch("/Bank/DoAction", values);
70var match = matcher.TryMatch("/Bank", values);
85var match = matcher.TryMatch("/moo/111/bar/222", values);
102var match = matcher.TryMatch("/moo/111/bar/", values);
125var match = matcher.TryMatch(path, values);
158var match = matcher.TryMatch(path, values);
193var match = matcher.TryMatch(path, values);
231var match = matcher.TryMatch(path, values);
246var match = matcher.TryMatch("/moo/bar", values);
262var match = matcher.TryMatch("/moo/bar", values);
277var match = matcher.TryMatch("/moo/bar/", values);
293var match = matcher.TryMatch("/moo/bar", values);
309var match = matcher.TryMatch("/moo/bar", values);
326var match = matcher.TryMatch("/moo/bar/boo", values);
341var match = matcher.TryMatch("/moo/bar", values);
356var match = matcher.TryMatch("/default.aspx", values);
378var match = matcher.TryMatch(path, values);
393var match = matcher.TryMatch("/v1", values);
414var match = matcher.TryMatch("/date/2007/08", values);
702var match = matcher.TryMatch("/v1/v2/v3", values);
720var match = matcher.TryMatch("/v1/", values);
738var match = matcher.TryMatch("/v1", values);
756var match = matcher.TryMatch("/v1", values);
774var match = matcher.TryMatch("/v1", values);
792var match = matcher.TryMatch("/v1/hello/whatever", values);
905var match = route.TryMatch(url, values);
924var match = route.TryMatch(url, values);
943var match = route.TryMatch(url, values);
961var match = route.TryMatch(url, values);
978var match = route.TryMatch(url, values);
1003var match = route.TryMatch(url, values);
1026var match = route.TryMatch(url, values);
1049var match = route.TryMatch(url, values);
1066var match = route.TryMatch(url, values);
1083var match = route.TryMatch(url, values);
1110var match = matcher.TryMatch(new PathString(path), values);
Microsoft.AspNetCore.Server.HttpSys (19)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (21)
Microsoft.AspNetCore.Server.IIS (14)
Microsoft.AspNetCore.Server.IISIntegration (1)
Microsoft.AspNetCore.Server.IISIntegration.Tests (5)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (3)
Microsoft.AspNetCore.Server.Kestrel.Core (93)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (45)
HttpParserTests.cs (8)
570var result = ParseRequestLine(parser, requestHandler, buffer, out var consumed, out var examined);
646var result = parser.ParseHeaders(requestHandler, ref reader);
660var result = parser.ParseHeaders(requestHandler, ref reader);
674var result = parser.ParseHeaders(requestHandler, ref reader);
692var result = parser.ParseHeaders(requestHandler, ref reader);
708var result = parser.ParseHeaders(requestHandler, ref reader);
731var result = parser.ParseHeaders(requestHandler, ref reader);
746var result = parser.ParseHeaders(requestHandler, ref reader);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (8)
Microsoft.AspNetCore.Server.Kestrel.Tests (34)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Session.Tests (1)
Microsoft.AspNetCore.Shared.Tests (59)
AdaptiveCapacityDictionaryTests.cs (36)
94var result = ((ICollection<KeyValuePair<string, object?>>)dict).IsReadOnly;
500var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
519var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
538var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
558var result = ((ICollection<KeyValuePair<string, object?>>)dict).Contains(input);
572var result = dict.ContainsKey("key");
585var result = dict.ContainsKey("");
601var result = dict.ContainsKey("other");
618var result = dict.ContainsKey("key");
635var result = dict.ContainsKey("kEy");
679var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
699var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
719var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
740var result = ((ICollection<KeyValuePair<string, object?>>)dict).Remove(input);
755var result = dict.Remove("key");
768var result = dict.Remove("");
784var result = dict.Remove("other");
802var result = dict.Remove("key");
820var result = dict.Remove("kEy");
835var result = dict.Remove("key", out var removedValue);
849var result = dict.Remove("", out var removedValue);
866var result = dict.Remove("other", out var removedValue);
886var result = dict.Remove("key", out var removedValue);
906var result = dict.Remove("kEy", out var removedValue);
928var result = dict.Remove("key", out var removedValue);
953var result = dict.Remove("key", out var removedValue);
978var result = dict.Remove("key", out var removedValue);
997var result = dict.TryAdd("", "foo");
1010var result = dict.TryAdd("key", "value");
1038var result = dict.TryAdd("key1", "value1");
1066var result = dict.TryAdd("key0", "value1");
1091var result = dict.TryGetValue("key", out var value);
1105var result = dict.TryGetValue("", out var value);
1122var result = dict.TryGetValue("other", out var value);
1140var result = dict.TryGetValue("key", out var value);
1158var result = dict.TryGetValue("kEy", out var value);
Microsoft.AspNetCore.SignalR.Client.Core (3)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (3)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (4)
Microsoft.AspNetCore.SignalR.Client.Tests (24)
Microsoft.AspNetCore.SignalR.Common.Tests (3)
Microsoft.AspNetCore.SignalR.Core (18)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (6)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (5)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (5)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (10)
Microsoft.AspNetCore.SpaProxy (4)
Microsoft.AspNetCore.SpaServices.Extensions (4)
Microsoft.AspNetCore.StaticAssets (7)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.StaticFiles.Tests (19)
StaticFileContextTest.cs (15)
22var validateResult = StaticFileMiddleware.ValidatePath(httpContext, pathString, out var subPath);
23var contentTypeResult = StaticFileMiddleware.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);
27var lookupResult = context.LookupFileInfo();
48var validateResult = StaticFileMiddleware.ValidatePath(httpContext, pathString, out var subPath);
49var contentTypeResult = StaticFileMiddleware.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);
54var result = context.LookupFileInfo();
76var validateResult = StaticFileMiddleware.ValidatePath(httpContext, pathString, out var subPath);
77var contentTypeResult = StaticFileMiddleware.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);
81var result = context.LookupFileInfo();
105var validateResult = StaticFileMiddleware.ValidatePath(httpContext, pathString, out var subPath);
106var contentTypeResult = StaticFileMiddleware.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);
110var result = context.LookupFileInfo();
133var validateResult = StaticFileMiddleware.ValidatePath(httpContext, pathString, out var subPath);
134var contentTypeResult = StaticFileMiddleware.LookupContentType(new FileExtensionContentTypeProvider(), options, subPath, out var contentType);
138var result = context.LookupFileInfo();
Microsoft.AspNetCore.TestHost (2)
Microsoft.AspNetCore.TestHost.Tests (1)
Microsoft.AspNetCore.Tests (2)
Microsoft.AspNetCore.WebSockets (4)
Microsoft.AspNetCore.WebSockets.Tests (8)
Microsoft.AspNetCore.WebUtilities (8)
Microsoft.Build (58)
Microsoft.Build.BuildCheck.UnitTests (3)
Microsoft.Build.CommandLine.UnitTests (23)
XMake_Tests.cs (17)
1197string output = RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1220string output = RunnerUtilities.ExecMSBuild(pathToMSBuildExe, msbuildParameters, out var successfulExit, outputHelper: _output);
1241output = RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1272string output = RunnerUtilities.ExecMSBuild(string.Empty, out var successfulExit, _output);
1309string output = RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1328string output = RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1349string output = RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1387string output = RunnerUtilities.ExecMSBuild(exePath, msbuildParameters, out var successfulExit);
1422string output = RunnerUtilities.ExecMSBuild(exePath, msbuildParameters, out var successfulExit);
1446string output = RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1465string output = RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1483RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1501string output = RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
1523string output = RunnerUtilities.ExecMSBuild(msbuildParameters, out var successfulExit, _output);
2537string output = RunnerUtilities.ExecMSBuild($"\"{testProject.Path}\" \"/bl:{binLogLocation}/output.binlog\"", out var success, _output);
2611string output = RunnerUtilities.ExecMSBuild($"\"{testSolution.Path}\" /p:Configuration=Debug", out var success, _output);
2847string output = RunnerUtilities.ExecMSBuild($"\"{testProject.ProjectFile}\" {string.Join(" ", arguments)}", out var success, _output);
Microsoft.Build.Engine.OM.UnitTests (4)
Microsoft.Build.Engine.UnitTests (12)
Microsoft.Build.Framework (2)
Microsoft.Build.Framework.UnitTests (5)
Microsoft.Build.Tasks.CodeAnalysis (5)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (7)
Microsoft.Build.Tasks.Core (11)
Microsoft.Build.Tasks.UnitTests (9)
Microsoft.Build.Utilities.Core (5)
Microsoft.Cci.Extensions (11)
Microsoft.CodeAnalysis (101)
DiagnosticAnalyzer\AnalyzerDriver.cs (25)
587var analyze = (flags & GeneratedCodeAnalysisFlags.Analyze) != 0;
588var report = (flags & GeneratedCodeAnalysisFlags.ReportDiagnostics) != 0;
623var suppressInGeneratedCode = (generatedCodeAnalysisFlags & GeneratedCodeAnalysisFlags.ReportDiagnostics) == 0;
744var isGeneratedCode = IsGeneratedCode(tree, cancellationToken);
849var categorizeDiagnostics = false;
877var reportSuppressedDiagnostics = compilation.Options.ReportSuppressedDiagnostics;
927var isDiagnosticIdEverSuppressed = isAnalyzerEverSuppressed ||
1206var reportSuppressedDiagnostics = compilation.Options.ReportSuppressedDiagnostics;
1389var hasUnsuppressedDiagnostic = false;
1755var isGeneratedCodeSymbol = IsGeneratedCodeSymbol(symbol, cancellationToken);
1757var skipSymbolAnalysis = AnalysisScope.ShouldSkipSymbolAnalysis(symbolEvent);
1758var skipDeclarationAnalysis = AnalysisScope.ShouldSkipDeclarationAnalysis(symbol);
1759var hasPerSymbolActions = AnalyzerActions.SymbolStartActionsCount > 0 && (!skipSymbolAnalysis || !skipDeclarationAnalysis);
1826var success = true;
1909var isGeneratedCode = IsGeneratedCode(semanticModel.SyntaxTree, cancellationToken);
2213var isGeneratedCodeSymbol = driver.IsGeneratedCodeSymbol(symbol, cancellationToken);
2236var isConcurrent = await analyzerManager.IsConcurrentAnalyzerAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false);
2301if (!GeneratedCodeFilesMap.TryGetValue(tree, out var isGenerated))
2504executeSyntaxNodeActions: out var executeSyntaxNodeActions,
2505executeCodeBlockActions: out var executeCodeBlockActions,
2506executeOperationActions: out var executeOperationActions,
2507executeOperationBlockActions: out var executeOperationBlockActions);
2522var isInGeneratedCode = isGeneratedCodeSymbol || IsGeneratedOrHiddenCodeLocation(decl.SyntaxTree, decl.Span, cancellationToken);
2559var getSymbol = topmostNodeForAnalysis != declaringReferenceSyntax || declaredSymbol.Kind == SymbolKind.Namespace;
2954var checkParent = true;
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
46var found = false;
Microsoft.CodeAnalysis.Analyzers (44)
Microsoft.CodeAnalysis.AnalyzerUtilities (60)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityBasedPredicateAnalysisData.cs (1)
189var canOverlap = true;
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (23)
561var result = AnalysisEntityFactory.TryCreateForSymbolDeclaration(parameter, out var analysisEntity);
683var isFeasibleBranch = true;
748var alwaysTrue = (bool)branch.BranchValue.ConstantValue.Value!;
903var invocationInstanceAccessCanThrow = instance != null &&
906var invocationCanThrow = invocation != null && !TryGetInterproceduralAnalysisResult(operation, out _);
1433var result = AnalysisEntityFactory.TryCreate(operation, out AnalysisEntity? flowCaptureReferenceEntity);
1681var result = AnalysisEntityFactory.TryCreate(operation, out AnalysisEntity? flowCaptureReferenceEntity);
1858var isReferenceEquality = operation.OperatorMethod == null &&
2215var skipInterproceduralAnalysis = !isLambdaOrLocalFunction && InterproceduralAnalysisKind == InterproceduralAnalysisKind.None ||
2263var hasParameterWithDelegateType = invokedMethod.HasParameterWithDelegateType();
2369var hasEscapes = MarkEscapedLambdasAndLocalFunctionsFromArguments();
2399var hasEscapes = false;
2500var isExtensionMethodInvocationWithOneLessArgument = invokedMethod.IsExtensionMethod && arguments.Length == invokedMethod.Parameters.Length - 1;
2621var success = AnalysisEntityFactory.TryCreateForSymbolDeclaration(capturedVariable, out var capturedEntity);
2997var result = AnalysisEntityFactory.TryCreate(operation, out var flowCaptureReferenceEntity);
3252var isExchangeMethod = targetMethod.IsInterlockedExchangeMethod(interlockedType);
3253var isCompareExchangeMethod = targetMethod.IsInterlockedCompareExchangeMethod(interlockedType);
3284var hasEscapes = false;
3328var knownTargetInvocations = false;
3463var first = true;
3582originalOperation: originalOperation, defaultValue: defaultValue, isLambdaOrLocalFunction: true, out var wasAnalyzed);
3600originalOperation: originalOperation, defaultValue: defaultValue, isLambdaOrLocalFunction: true, out var wasAnalyzed);
3817var savedIsInsideAnonymousObjectInitializer = IsInsideAnonymousObjectInitializer;
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
Microsoft.CodeAnalysis.CodeStyle (195)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
46var found = false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.Lexer.cs (1)
146var start = true;
Microsoft.CodeAnalysis.CodeStyle.Fixes (96)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
67var first = true;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
102var isUnsafe = false;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\StringBuilderExtensions.cs (1)
15var first = true;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
23var addBlankLine = false;
Microsoft.CodeAnalysis.Collections.Package (9)
Microsoft.CodeAnalysis.CSharp (402)
Binder\Binder.ValueChecks.cs (17)
415var useSetAccessor = coreValueKind == BindValueKind.Assignable && indexerAccess.Indexer.RefKind != RefKind.Ref;
866var isValueType = ((BoundThisReference)expr).Type.IsValueType;
1105var inUnsafeRegion = _inUnsafeRegion;
1309var isRefScoped = parameterSymbol.EffectiveScope == ScopedKind.ScopedRef;
1311var inUnsafeRegion = _inUnsafeRegion;
1442var fieldIsStatic = fieldSymbol.IsStatic;
1443var canModifyReadonly = false;
1751var requiresSet = RequiresAssignableVariable(valueKind) && propertySymbol.RefKind == RefKind.None;
1820var requiresGet = !RequiresAssignmentOnly(valueKind) || propertySymbol.RefKind != RefKind.None;
2110var returnsRefToRefStruct = methodInfo.ReturnsRefToRefStruct;
2326var returnsRefToRefStruct = methodInfo.ReturnsRefToRefStruct;
2935var hasMixingError = false;
2997var valid = true;
4930var consValid = CheckValEscape(conditional.Consequence.Syntax, conditional.Consequence, escapeFrom, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5120var escape = CheckInvocationEscape(
5154var escape = true;
5175var escape = CheckValEscape(node, withExpr.Receiver, escapeFrom, escapeTo, checkingReceiver: false, diagnostics);
Binder\Binder_Expressions.cs (11)
3902var available = CheckFeatureAvailability(argument.Syntax, MessageID.IDS_FeatureRefReadonlyParameters, diagnostics);
4453var isInferred = creationSyntax.IsKind(SyntaxKind.ImplicitArrayCreationExpression);
4600var inLegalPosition = ReportBadStackAllocPosition(node, diagnostics);
5022var expanded = memberResolutionResult.Result.Kind == MemberResolutionKind.ApplicableInExpandedForm;
6309var result = Conversions.HasImplicitConversionToOrImplementsVarianceCompatibleInterface(initializerType, collectionsIEnumerableType, ref useSiteInfo, out bool needSupportForRefStructInterfaces);
6476var hasErrors = ReportBadDynamicArguments(elementInitializer, implicitReceiver, boundElementInitializerExpressions, refKinds: default, diagnostics, queryClause: null);
6818var expanded = memberResolutionResult.Result.Kind == MemberResolutionKind.ApplicableInExpandedForm;
7567var isSemanticModel = this.IsSemanticModelBinder;
8900var isEnumField = (fieldSymbol.IsStatic && type.IsEnumType());
8932var isFixedStatementExpression = SyntaxFacts.IsFixedStatementExpression(node);
10224var gotError = MemberGroupFinalValidationAccessibilityChecks(receiver, property, syntax, diagnostics, invokedAsExtensionMethod: false);
Binder\Binder_Operators.cs (4)
1238var result = HasApplicableBooleanOperator(namedType, isNegative ? WellKnownMemberNames.FalseOperatorName : WellKnownMemberNames.TrueOperatorName, type, ref useSiteInfo, out userDefinedOperator);
3616var operandHasErrors = IsOperandErrors(node, ref operand, diagnostics);
3637var convertedExpression = BindExpressionForPattern(operand.Type, node.Right, ref hasErrors, isPatternDiagnostics, out var constantValueOpt, out var wasExpression, out _);
4670var isRef = whenTrueRefKind == RefKind.Ref && whenFalseRefKind == RefKind.Ref;
Compilation\CSharpSemanticModel.cs (9)
2520var result = TryGetSpeculativeSemanticModelForMethodBodyCore((SyntaxTreeSemanticModel)this, position, method, out PublicSemanticModel speculativeSyntaxTreeModel);
2547var result = TryGetSpeculativeSemanticModelForMethodBodyCore((SyntaxTreeSemanticModel)this, position, accessor, out PublicSemanticModel speculativeSyntaxTreeModel);
2576var result = TryGetSpeculativeSemanticModelCore((SyntaxTreeSemanticModel)this, position, type, bindingOption, out PublicSemanticModel speculativeSyntaxTreeModel);
2602var result = TryGetSpeculativeSemanticModelCore((SyntaxTreeSemanticModel)this, position, statement, out PublicSemanticModel speculativeSyntaxTreeModel);
2629var result = TryGetSpeculativeSemanticModelCore((SyntaxTreeSemanticModel)this, position, initializer, out PublicSemanticModel speculativeSyntaxTreeModel);
2656var result = TryGetSpeculativeSemanticModelCore((SyntaxTreeSemanticModel)this, position, expressionBody, out PublicSemanticModel speculativeSyntaxTreeModel);
2686var result = TryGetSpeculativeSemanticModelCore((SyntaxTreeSemanticModel)this, position, constructorInitializer, out PublicSemanticModel speculativeSyntaxTreeModel);
2715var result = TryGetSpeculativeSemanticModelCore((SyntaxTreeSemanticModel)this, position, constructorInitializer, out PublicSemanticModel speculativeSyntaxTreeModel);
2745var result = TryGetSpeculativeSemanticModelCore((SyntaxTreeSemanticModel)this, position, crefSyntax, out PublicSemanticModel speculativeSyntaxTreeModel);
Microsoft.CodeAnalysis.CSharp.Analyzers (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (121)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
119var removedCurrent = false;
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (4)
37if (!IsCollectionFactoryCreate(semanticModel, invocationExpression, out var memberAccess, out var unwrapArgument, out var useSpread, cancellationToken))
41var allowSemanticsChange = option.Value is CollectionExpressionPreference.WhenTypesLooselyMatch;
43semanticModel, invocationExpression, expressionType, isSingletonInstance: false, allowSemanticsChange, skipVerificationForReplacedNode: true, cancellationToken, out var changesSemantics))
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (6)
95var allowSemanticsChange = option.Value is CollectionExpressionPreference.WhenTypesLooselyMatch;
138state.SemanticModel, invocation, expressionType, isSingletonInstance: false, allowSemanticsChange, skipVerificationForReplacedNode: true, cancellationToken, out var changesSemantics))
179var copiedData = false;
264IsCollectionFactoryCreate(semanticModel, currentInvocationExpression, out var factoryMemberAccess, out var unwrapArgument, out var useSpread, cancellationToken))
409if (state.TryAnalyzeInvocationForCollectionExpression(invocation, allowLinq, cancellationToken, out _, out var useSpread))
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (4)
64if (!IsArgumentCompatibleWithIEnumerableOfT(semanticModel, argument, out var unwrapArgument, out var useSpread, cancellationToken))
68var allowSemanticsChange = option.Value is CollectionExpressionPreference.WhenTypesLooselyMatch;
70semanticModel, objectCreationExpression, expressionType, isSingletonInstance: false, allowSemanticsChange, skipVerificationForReplacedNode: true, cancellationToken, out var changesSemantics))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.Parsers.cs (1)
22var hasNoneToken = false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
328var sawFirstOne = false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (1)
171var hasChanges = false;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (78)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (12)
188var isInNonUserCode = syntaxTree.IsInNonUserCode(position, cancellationToken);
191var isPreProcessorDirectiveContext = syntaxTree.IsPreProcessorDirectiveContext(position, preProcessorTokenOnLeftOfPosition, cancellationToken);
200var isPreProcessorExpressionContext = isPreProcessorDirectiveContext && targetToken.IsPreProcessorExpressionContext();
202var isStatementContext = !isPreProcessorDirectiveContext && targetToken.IsBeginningOfStatementContext();
203var isGlobalStatementContext = !isPreProcessorDirectiveContext && syntaxTree.IsGlobalStatementContext(position, cancellationToken);
204var isAnyExpressionContext = !isPreProcessorDirectiveContext && syntaxTree.IsExpressionContext(position, leftToken, attributes: true, cancellationToken: cancellationToken, semanticModel: semanticModel);
205var isNonAttributeExpressionContext = !isPreProcessorDirectiveContext && syntaxTree.IsExpressionContext(position, leftToken, attributes: false, cancellationToken: cancellationToken, semanticModel: semanticModel);
206var isConstantExpressionContext = !isPreProcessorDirectiveContext && syntaxTree.IsConstantExpressionContext(position, leftToken);
211var isDestructorTypeContext =
221var isRightSideOfNumericType = leftToken.IsNumericTypeContext(semanticModel, cancellationToken);
223var isOnArgumentListBracketOrComma = targetToken.Parent is (kind: SyntaxKind.ArgumentList or SyntaxKind.AttributeArgumentList or SyntaxKind.ArrayRankSpecifier);
225var isLocalFunctionDeclarationContext = syntaxTree.IsLocalFunctionDeclarationContext(position, cancellationToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (17)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (30)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (25)
Semantics\PrimaryConstructorTests.cs (11)
7677foreach (var isPartial in new[] { false, true })
7679foreach (var isRecord in new[] { false, true })
7681foreach (var shadow in new[] { false, true })
8035foreach (var isPartial in new[] { false, true })
8037foreach (var isRecord in new[] { false, true })
8039foreach (var shadow in new[] { false, true })
8139foreach (var isRecord in new[] { false, true })
8141foreach (var shadow in new[] { false, true })
8218foreach (var isRecord in new[] { false, true })
8220foreach (var shadow in new[] { false, true })
11630foreach (var isStatic in new[] { false, true })
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (1)
Microsoft.CodeAnalysis.CSharp.Features (209)
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider_DelegateType.cs (1)
55var first = true;
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
119var removedCurrent = false;
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (4)
37if (!IsCollectionFactoryCreate(semanticModel, invocationExpression, out var memberAccess, out var unwrapArgument, out var useSpread, cancellationToken))
41var allowSemanticsChange = option.Value is CollectionExpressionPreference.WhenTypesLooselyMatch;
43semanticModel, invocationExpression, expressionType, isSingletonInstance: false, allowSemanticsChange, skipVerificationForReplacedNode: true, cancellationToken, out var changesSemantics))
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (6)
95var allowSemanticsChange = option.Value is CollectionExpressionPreference.WhenTypesLooselyMatch;
138state.SemanticModel, invocation, expressionType, isSingletonInstance: false, allowSemanticsChange, skipVerificationForReplacedNode: true, cancellationToken, out var changesSemantics))
179var copiedData = false;
264IsCollectionFactoryCreate(semanticModel, currentInvocationExpression, out var factoryMemberAccess, out var unwrapArgument, out var useSpread, cancellationToken))
409if (state.TryAnalyzeInvocationForCollectionExpression(invocation, allowLinq, cancellationToken, out _, out var useSpread))
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (4)
64if (!IsArgumentCompatibleWithIEnumerableOfT(semanticModel, argument, out var unwrapArgument, out var useSpread, cancellationToken))
68var allowSemanticsChange = option.Value is CollectionExpressionPreference.WhenTypesLooselyMatch;
70semanticModel, objectCreationExpression, expressionType, isSingletonInstance: false, allowSemanticsChange, skipVerificationForReplacedNode: true, cancellationToken, out var changesSemantics))
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (44)
Compilation\SemanticModelAPITests.cs (26)
2227var success = model.TryGetSpeculativeSemanticModel(statement.SpanStart, speculatedStatement, out speculativeModel);
2264var success = model.TryGetSpeculativeSemanticModel(methodDecl.Body.Statements[0].Span.End, unsafeStatement, out speculativeModel);
2320var success = model.TryGetSpeculativeSemanticModel(statementSyntax.SpanStart, speculativeSyntax, out speculativeModel);
2356var success = model.TryGetSpeculativeSemanticModelForMethodBody(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2452var success = model.TryGetSpeculativeSemanticModelForMethodBody(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2494var success = model.TryGetSpeculativeSemanticModelForMethodBody(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2539var success = model.TryGetSpeculativeSemanticModelForMethodBody(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2571var success = model.TryGetSpeculativeSemanticModelForMethodBody(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2643var success = model.TryGetSpeculativeSemanticModelForMethodBody(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2679var success = model.TryGetSpeculativeSemanticModelForMethodBody(methodDecl.Body.Statements[0].Span.End, speculatedMethod, out speculativeModel);
2703var success = model.TryGetSpeculativeSemanticModel(position, speculatedTypeSyntax, out speculativeModel, bindingOption);
2779var success = model.TryGetSpeculativeSemanticModelForMethodBody(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2898var success = model.TryGetSpeculativeSemanticModel(fieldDecl.SpanStart, speculatedAliasName, out speculativeModel);
2932var success = model.TryGetSpeculativeSemanticModel(cref.SpanStart, speculatedCref, out speculativeModel);
2972var success = model.TryGetSpeculativeSemanticModel(cref.SpanStart, speculatedCref, out speculativeModel);
3017var success = model.TryGetSpeculativeSemanticModel(cref.SpanStart, speculatedCref, out speculativeModel);
3094var success = model.TryGetSpeculativeSemanticModel(typeDecl.SpanStart, speculatedCref, out speculativeModel);
3192var success = model.TryGetSpeculativeSemanticModel(position, yieldStatement, out speculativeModel);
3227var success = model.TryGetSpeculativeSemanticModel(position, yieldStatement, out speculativeModel);
3257var success = model.TryGetSpeculativeSemanticModel(position, typeSyntax, out speculativeModel);
3298var success = model.TryGetSpeculativeSemanticModel(position, statementSyntax, out speculativeModel);
3339var success = model.TryGetSpeculativeSemanticModel(position, statementSyntax, out speculativeModel);
3415var success = model.TryGetSpeculativeSemanticModel(position, statementSyntax, out speculativeModel);
3456var success = model.TryGetSpeculativeSemanticModel(position, statementSyntax, out speculativeModel);
3497var success = model.TryGetSpeculativeSemanticModel(position, statementSyntax, out speculativeModel);
3619var success = model.TryGetSpeculativeSemanticModel(position, attributeSyntax, out speculativeModel);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (169)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.Parsers.cs (1)
22var hasNoneToken = false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
328var sawFirstOne = false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (1)
171var hasChanges = false;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (13)
188var isInNonUserCode = syntaxTree.IsInNonUserCode(position, cancellationToken);
191var isPreProcessorDirectiveContext = syntaxTree.IsPreProcessorDirectiveContext(position, preProcessorTokenOnLeftOfPosition, cancellationToken);
199var isPreProcessorKeywordContext = isPreProcessorDirectiveContext && syntaxTree.IsPreProcessorKeywordContext(position, leftToken);
200var isPreProcessorExpressionContext = isPreProcessorDirectiveContext && targetToken.IsPreProcessorExpressionContext();
202var isStatementContext = !isPreProcessorDirectiveContext && targetToken.IsBeginningOfStatementContext();
203var isGlobalStatementContext = !isPreProcessorDirectiveContext && syntaxTree.IsGlobalStatementContext(position, cancellationToken);
204var isAnyExpressionContext = !isPreProcessorDirectiveContext && syntaxTree.IsExpressionContext(position, leftToken, attributes: true, cancellationToken: cancellationToken, semanticModel: semanticModel);
205var isNonAttributeExpressionContext = !isPreProcessorDirectiveContext && syntaxTree.IsExpressionContext(position, leftToken, attributes: false, cancellationToken: cancellationToken, semanticModel: semanticModel);
206var isConstantExpressionContext = !isPreProcessorDirectiveContext && syntaxTree.IsConstantExpressionContext(position, leftToken);
211var isDestructorTypeContext =
221var isRightSideOfNumericType = leftToken.IsNumericTypeContext(semanticModel, cancellationToken);
223var isOnArgumentListBracketOrComma = targetToken.Parent is (kind: SyntaxKind.ArgumentList or SyntaxKind.AttributeArgumentList or SyntaxKind.ArrayRankSpecifier);
225var isLocalFunctionDeclarationContext = syntaxTree.IsLocalFunctionDeclarationContext(position, cancellationToken);
Microsoft.CodeAnalysis.Debugging.Package (1)
Microsoft.CodeAnalysis.EditorFeatures (60)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (14)
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (54)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (5)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (13)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (14)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (435)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (28)
527var hasChanges = true;
688var hasBlockingRudeEdits = finalDiagnostics.HasBlockingRudeEdits();
821var hasPartner = topMatch.TryGetNewNode(oldMemberDeclaration, out var newMemberDeclaration);
1077var bodyHasActiveStatement = activeNodesInBody.Length != 0;
1116out var newBodyHasLambdas,
1117out var hasLambdaBodyUpdate,
1164var isPartiallyExecuted = (oldActiveStatements[activeStatementIndex].Statement.Flags & ActiveStatementFlags.PartiallyExecuted) != 0;
1614var isCovered = false;
2113var requiresUpdate = false;
2713var skipBodyAnalysis = false;
3154var replaceMember = IsMemberOrDelegate(oldSymbol) && IsMemberOrDelegateReplaced(oldSymbol, newSymbol);
3218AnalyzeSymbolUpdate(diagnosticContext, capabilities, semanticEdits, out var hasAttributeChange, cancellationToken);
3349AnalyzeSymbolUpdate(diagnosticContext, capabilities, semanticEdits, out var _, cancellationToken);
4488diagnosticContext, capabilities, out var hasGeneratedAttributeChange, out var hasGeneratedReturnTypeAttributeChange, cancellationToken);
4493ReportCustomAttributeRudeEdits(diagnosticContext, capabilities, out var hasSymbolAttributeChange, out var hasReturnTypeAttributeChange, cancellationToken);
5324var isPartialEdit = IsPartialTypeEdit(oldType, newType, oldSyntaxTree, newSyntaxTree);
5339var memberInitializerContainingLambdaReported = false;
5343var unsupportedOperationReported = false;
5483var newCtorIsPrimary = IsPrimaryConstructor(newCtor, cancellationToken);
5597var hasUnmatchedLambdas = false;
5734var typeLayoutDisallowsNewCaptures =
5746out var oldHasLambdasOrLocalFunctions,
5755out var newHasLambdasOrLocalFunctions,
5816var oldHasLambdas = false;
5822var isInInterface = newMember.ContainingType.TypeKind == TypeKind.Interface;
5823var isNewMemberInGenericContext = InGenericContext(newMember);
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
163var generateCast =
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
67var first = true;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
102var isUnsafe = false;
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (15)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
46var found = false;
Microsoft.CodeAnalysis.LanguageServer (13)
Microsoft.CodeAnalysis.LanguageServer.Protocol (32)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (8)
Microsoft.CodeAnalysis.PublicApiAnalyzers (18)
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (2)
Microsoft.CodeAnalysis.Rebuild (4)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (7)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (20)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Test.Utilities (50)
Microsoft.CodeAnalysis.Threading.Package (9)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
46var found = false;
Microsoft.CodeAnalysis.UnitTests (40)
Collections\TopologicalSortTests.cs (5)
38var wasAcyclic = TopologicalSort.TryIterativeSort(new[] { 4, 5 }, succF, out var sorted);
59var wasAcyclic = TopologicalSort.TryIterativeSort(new[] { "4", "5" }, succF, out var sorted);
82var wasAcyclic = TopologicalSort.TryIterativeSort(new[] { 1, 6 }, succF, out var sorted);
106var wasAcyclic = TopologicalSort.TryIterativeSort(new[] { 1 }, succF, out var sorted);
150var wasAcyclic = TopologicalSort.TryIterativeSort(Enumerable.Range(0, numberOfNodes).ToArray(), succF, out var sorted);
Microsoft.CodeAnalysis.Workspaces (284)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (3)
163var shouldIncludeSymbol = await ShouldIncludeSymbolAsync(referencedSymbol, originalSymbol, solution, false, cancellationToken).ConfigureAwait(false);
187var isRenamableAccessor = await IsPropertyAccessorOrAnOverrideAsync(referencedSymbol, solution, cancellationToken).ConfigureAwait(false);
251var shouldIncludeSymbol = await ShouldIncludeSymbolAsync(referencedSymbol, originalSymbol, solution, true, cancellationToken).ConfigureAwait(false);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
46var found = false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.Lexer.cs (1)
146var start = true;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\StringBuilderExtensions.cs (1)
15var first = true;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
23var addBlankLine = false;
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (26)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
46var found = false;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (8)
Microsoft.CodeAnalysis.Workspaces.UnitTests (36)
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
Microsoft.CSharp (1)
Microsoft.Data.Analysis (15)
Microsoft.Data.Analysis.Tests (4)
DataFrameTests.Computations.cs (4)
482var col1 = new BooleanDataFrameColumn("col1", new Boolean[] { true, false, true });
483var col2 = new BooleanDataFrameColumn("col2", new Boolean[] { false, true, true });
499var col1 = new BooleanDataFrameColumn("col1", new Boolean[] { true, false, true });
500var col2 = new BooleanDataFrameColumn("col2", new Boolean[] { false, true, true });
Microsoft.DotNet.AsmDiff (22)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
Microsoft.DotNet.Build.Tasks.Packaging (3)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.Helix.Sdk (1)
Microsoft.DotNet.NuGetRepack.Tests (6)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.SignTool (5)
Microsoft.DotNet.SwaggerGenerator.CmdLine (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Ollama.Tests (1)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.AmbientMetadata.Application.Tests (1)
Microsoft.Extensions.ApiDescription.Client (1)
Microsoft.Extensions.ApiDescription.Client.Tests (13)
Microsoft.Extensions.AsyncState (1)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (12)
PayloadTests.cs (10)
34using var provider = GetDefaultCache(out var cache, config =>
67using var provider = GetDefaultCache(out var cache, config =>
101using var provider = GetDefaultCache(out var cache, config =>
131using var provider = GetDefaultCache(out var cache, config =>
167using var provider = GetDefaultCache(out var cache, config =>
203using var provider = GetDefaultCache(out var cache, config =>
221using var provider = GetDefaultCache(out var cache, config =>
248using var provider = GetDefaultCache(out var cache, config =>
275using var provider = GetDefaultCache(out var cache, config =>
302using var provider = GetDefaultCache(out var cache, config =>
Microsoft.Extensions.Caching.SqlServer (2)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
Microsoft.Extensions.Compliance.Abstractions.Tests (3)
Microsoft.Extensions.Configuration (3)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.Extensions.Configuration.Xml (1)
Microsoft.Extensions.Diagnostics (4)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Microsoft.Extensions.Features (1)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Polly (1)
Microsoft.Extensions.Http.Polly.Tests (1)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Http.Resilience.Tests (11)
Microsoft.Extensions.Identity.Core (6)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Localization.Abstractions (1)
Microsoft.Extensions.Logging.AzureAppServices (5)
Microsoft.Extensions.Logging.Console (2)
Microsoft.Extensions.ML (1)
Microsoft.Extensions.Options.SourceGeneration (6)
Microsoft.Extensions.ServiceDiscovery (3)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Telemetry.Tests (11)
Http\HttpParserTests.cs (8)
29var success = httpParser.TryExtractParameters(httpPath, routeSegments, redactionMode, parametersToRedact, ref httpRouteParameters);
46var success = httpParser.TryExtractParameters(httpPath, routeSegments, redactionMode, parametersToRedact, ref httpRouteParameters);
84var success = httpParser.TryExtractParameters(httpPath, routeSegments, redactionMode, parametersToRedact, ref httpRouteParameters);
129var success = httpParser.TryExtractParameters(httpPath, routeSegments, redactionMode, parametersToRedact, ref httpRouteParameters);
164var success = httpParser.TryExtractParameters(httpPath, routeSegments, redactionMode, parametersToRedact, ref httpRouteParameters);
235var success = httpParser.TryExtractParameters(httpPath, routeSegments, redactionMode, parametersToRedact, ref httpRouteParameters);
418var success = httpParser.TryExtractParameters(httpPath, routeSegments, redactionMode, parametersToRedact, ref httpRouteParameters);
463var success = httpParser.TryExtractParameters(httpPath, routeSegments, redactionMode, parametersToRedact, ref httpRouteParameters);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
Microsoft.Gen.Logging (7)
Microsoft.Gen.Logging.Unit.Tests (5)
Microsoft.Gen.Metrics (5)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.JSInterop (1)
Microsoft.Maui (16)
Microsoft.Maui.Controls (73)
Microsoft.Maui.Controls.BindingSourceGen (8)
Microsoft.Maui.Controls.Build.Tasks (23)
SetPropertiesVisitor.cs (10)
110 var _ = false;
287 var acceptEmptyServiceProvider = vardefref.VariableDefinition.VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null;
410 var acceptEmptyServiceProvider = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null;
453 var acceptEmptyServiceProvider = context.Variables[node].VariableType.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null;
766 var first = true;
1173 var bpRef = GetBindablePropertyReference(parent, propertyName.NamespaceURI, ref localName, out System.Boolean attached, context, iXmlLineInfo);
1240 var isObsolete = bpDef.CustomAttributes.Any(ca => ca.AttributeType.FullName == "System.ObsoleteAttribute");
1607 var propertyIsObsolete = property.CustomAttributes.Any(ca => ca.AttributeType.FullName == "System.ObsoleteAttribute");
1612 var propertySetterIsObsolete = propertySetter.CustomAttributes.Any(ca => ca.AttributeType.FullName == "System.ObsoleteAttribute");
1681 var bpRef = GetBindablePropertyReference(parent, propertyName.NamespaceURI, ref localName, out var attached, context, lineInfo);
Microsoft.Maui.Controls.Maps (2)
Microsoft.Maui.Controls.SourceGen (6)
CodeBehindGenerator.cs (6)
278 if (!TryParseXaml(xamlItem, uid, compilation, xmlnsCache, typeCache, context.CancellationToken, out var accessModifier, out var rootType, out var rootClrNamespace, out var generateDefaultCtor, out var addXamlCompilationAttribute, out var hideFromIntellisense, out var XamlResourceIdOnly, out var baseType, out var namedFields))
407 var hasXamlCompilationProcessingInstruction = GetXamlCompilationProcessingInstruction(root.OwnerDocument);
692 var match = false;
Microsoft.Maui.Controls.Xaml (10)
Microsoft.Maui.Essentials (1)
Microsoft.Maui.Graphics (11)
Microsoft.Maui.Graphics.Skia (4)
Microsoft.Maui.Graphics.Text.Markdig (6)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (3)
Microsoft.Maui.Resizetizer (6)
Microsoft.ML.AutoML (26)
Microsoft.ML.AutoML.Samples (3)
Microsoft.ML.AutoML.SourceGenerator (4)
Microsoft.ML.AutoML.Tests (9)
Microsoft.ML.Core (4)
Microsoft.ML.Core.Tests (11)
Microsoft.ML.Data (99)
Data\Conversion.cs (47)
17using BL = Boolean;
125AddStd<I1, BL>(Convert);
135AddStd<I2, BL>(Convert);
145AddStd<I4, BL>(Convert);
155AddStd<I8, BL>(Convert);
166AddStd<U1, BL>(Convert);
177AddStd<U2, BL>(Convert);
188AddStd<U4, BL>(Convert);
199AddStd<U8, BL>(Convert);
211AddStd<R4, BL>(Convert);
218AddStd<R8, BL>(Convert);
234AddStd<TX, BL>(Convert);
240AddStd<BL, I1>(Convert);
241AddStd<BL, I2>(Convert);
242AddStd<BL, I4>(Convert);
243AddStd<BL, I8>(Convert);
244AddStd<BL, R4>(Convert);
245AddStd<BL, R8>(Convert);
246AddStd<BL, BL>(Convert);
247AddAux<BL, SB>(Convert);
248AddStd<BL, TX>(Convert);
284AddIsDef<BL>(IsDefault);
311AddTryParse<BL>(TryParse);
783private bool IsDefault(in BL src) => src == default;
926public void Convert(in BL src, ref SB dst)
951public void Convert(in BL src, ref TX dst) => dst = src.ToString().AsMemory();
958public void Convert(in R8 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
959public void Convert(in R4 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
960public void Convert(in I1 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
961public void Convert(in I2 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
962public void Convert(in I4 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
963public void Convert(in I8 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
964public void Convert(in U1 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
965public void Convert(in U2 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
966public void Convert(in U4 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
967public void Convert(in U8 src, ref BL dst) => dst = System.Convert.ToBoolean(src);
1530public bool TryParse(in TX src, out BL dst)
1702public void Convert(in TX src, ref BL value)
1722public void Convert(in BL src, ref I1 dst) => dst = System.Convert.ToSByte(src);
1723public void Convert(in BL src, ref I2 dst) => dst = System.Convert.ToInt16(src);
1724public void Convert(in BL src, ref I4 dst) => dst = System.Convert.ToInt32(src);
1725public void Convert(in BL src, ref I8 dst) => dst = System.Convert.ToInt64(src);
1726public void Convert(in BL src, ref R4 dst) => dst = System.Convert.ToSingle(src);
1727public void Convert(in BL src, ref R8 dst) => dst = System.Convert.ToDouble(src);
1728public void Convert(in BL src, ref BL dst) => dst = src;
Microsoft.ML.Ensemble (3)
Microsoft.ML.EntryPoints (1)
Microsoft.ML.FastTree (6)
Microsoft.ML.GenAI.Core (1)
Microsoft.ML.GenAI.LLaMA (2)
Microsoft.ML.GenAI.Mistral (2)
Microsoft.ML.GenAI.Phi (5)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.LightGbm (1)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.OnnxTransformer (6)
Microsoft.ML.Samples (30)
Microsoft.ML.StandardTrainers (13)
Microsoft.ML.TensorFlow (2)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.TestFramework (3)
Microsoft.ML.Tests (15)
ExpressionLanguageTests\ExpressionLanguageTests.cs (12)
35using BL = System.Boolean;
355var v = (bool)src;
466FunctionProviderUtils.Fn<I4, BL, R4[], R4>(Var));
484FunctionProviderUtils.Fn<BL, BL>(F));
492FunctionProviderUtils.Fn<BL, BL>(Dump),
498FunctionProviderUtils.Fn<TX, BL, BL>(Dump),
535public static R4 Var(I4 a, BL b, R4[] c)
585public static BL F(BL a)
Microsoft.ML.TimeSeries (5)
SSaForecasting.cs (4)
231/// <seealso cref="Microsoft.ML.TimeSeriesCatalog.ForecastBySsa(Microsoft.ML.ForecastingCatalog,System.String,System.String,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean,System.Single,Microsoft.ML.Transforms.TimeSeries.RankSelectionMethod,System.Int32?,System.Int32?,System.Boolean,System.Boolean,Microsoft.ML.Transforms.TimeSeries.GrowthRatio?,System.String,System.String,System.Single,System.Boolean)" />
Microsoft.ML.TorchSharp (17)
Microsoft.ML.Transforms (86)
Microsoft.ML.Vision (2)
Microsoft.Net.Http.Headers (15)
Microsoft.Net.Http.Headers.Tests (22)
Microsoft.TestUtilities (1)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualStudio.LanguageServices (87)
Microsoft.VisualStudio.LanguageServices.CSharp (29)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.DevKit (2)
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Microsoft.Web.Xdt.Extensions (1)
MilvusPlayground.ApiService (1)
MinimalFormSample (1)
MSBuild (10)
MSBuildTaskHost (2)
mscorlib (1)
Mvc.Analyzers.Test (37)
CodeAnalysisExtensionsTest.cs (22)
479var classHasAttribute = CodeAnalysisExtensions.HasAttribute(testClass, attribute, inherit: false);
480var methodHasAttribute = CodeAnalysisExtensions.HasAttribute(testMethod, attribute, inherit: false);
481var propertyHasAttribute = CodeAnalysisExtensions.HasAttribute(testProperty, attribute, inherit: false);
507var hasAttribute = CodeAnalysisExtensions.HasAttribute(testClass, attribute, inherit: false);
533var hasAttributeWithoutInherit = CodeAnalysisExtensions.HasAttribute(testClass, attribute, inherit: false);
534var hasAttributeWithInherit = CodeAnalysisExtensions.HasAttribute(testClass, attribute, inherit: true);
564var hasAttribute = CodeAnalysisExtensions.HasAttribute(testClass, @interface, inherit: true);
565var hasAttributeOnDerived = CodeAnalysisExtensions.HasAttribute(testClass, @interface, inherit: true);
595var hasAttribute = CodeAnalysisExtensions.HasAttribute(method, attribute, inherit: false);
629var hasAttributeWithoutInherit = CodeAnalysisExtensions.HasAttribute(method, attribute, inherit: false);
630var hasAttributeWithInherit = CodeAnalysisExtensions.HasAttribute(method, attribute, inherit: true);
660var hasAttribute = CodeAnalysisExtensions.HasAttribute(property, attribute, inherit: false);
694var hasAttributeWithoutInherit = CodeAnalysisExtensions.HasAttribute(property, attribute, inherit: false);
695var hasAttributeWithInherit = CodeAnalysisExtensions.HasAttribute(property, attribute, inherit: true);
719var isAssignableFrom = CodeAnalysisExtensions.IsAssignableFrom(sourceType, target);
740var isAssignableFrom = CodeAnalysisExtensions.IsAssignableFrom(sourceType, target);
761var isAssignableFrom = CodeAnalysisExtensions.IsAssignableFrom(sourceType, target);
786var isAssignableFrom = CodeAnalysisExtensions.IsAssignableFrom(sourceType, target);
787var isAssignableFromDerived = CodeAnalysisExtensions.IsAssignableFrom(target, sourceType);
809var isAssignableFrom = CodeAnalysisExtensions.IsAssignableFrom(sourceType, target);
842var isAssignableFrom = CodeAnalysisExtensions.IsAssignableFrom(sourceType, target);
843var isAssignableFromDerived = CodeAnalysisExtensions.IsAssignableFrom(target, sourceType);
Mvc.Api.Analyzers.Test (28)
MvcFactsTest.cs (5)
71var isController = MvcFacts.IsController(typeSymbol, controllerAttribute, nonControllerAttribute);
85var isController = MvcFacts.IsController(typeSymbol, controllerAttribute, nonControllerAttribute);
156var isControllerAction = MvcFacts.IsControllerAction(method, nonActionAttribute, disposableDispose);
188var isControllerAction = MvcFacts.IsControllerAction(method, nonActionAttribute, disposableDispose);
203var isControllerAction = MvcFacts.IsControllerAction(method, nonActionAttribute, disposableDispose);
MyFrontend (2)
Negotiate.Server (1)
netstandard (1)
OrleansServiceDefaults (1)
Playground.ServiceDefaults (1)
PostgresEndToEnd.ApiService (1)
PrepareTests (4)
PresentationBuildTasks (8)
PresentationCore (48)
PresentationFramework (24)
Publishers.DbSetup (1)
ReachFramework (1)
Replay (4)
Roslyn.Diagnostics.Analyzers (16)
Roslyn.Test.PdbUtilities (3)
Roslyn.Test.Performance.Utilities (1)
Roslyn.VisualStudio.Next.UnitTests (17)
RoutingWebSite (1)
RunTests (11)
SemanticSearch.BuildTask (2)
Seq.ServiceDefaults (1)
Sockets.BindTests (2)
Sockets.FunctionalTests (10)
SqlServerEndToEnd.DbSetup (1)
Swaggatherer (4)
System.ComponentModel.Annotations (7)
System.ComponentModel.Composition (1)
System.ComponentModel.TypeConverter (1)
System.Composition.Convention (1)
System.Composition.Hosting (2)
System.Composition.TypedParts (2)
System.IO.Pipelines (3)
System.Linq.Expressions (4)
System.Private.CoreLib (1)
System.Private.DataContractSerialization (2)
System.Private.Xml (1)
System.Reflection.Emit (1)
System.Reflection.Metadata (1)
System.Runtime (1)
System.Text.Json (1)
System.Web.Services.Description (127)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (127)
275if (((global::System.Boolean)o.@Required) != false) {
276WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
305if (((global::System.Boolean)o.@Required) != false) {
306WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
335if (((global::System.Boolean)o.@Required) != false) {
336WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
606if (((global::System.Boolean)o.@Required) != false) {
607WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
653if (((global::System.Boolean)o.@Required) != false) {
654WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
790if (((global::System.Boolean)o.@Required) != false) {
791WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
827if (((global::System.Boolean)o.@Required) != false) {
828WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
895if (((global::System.Boolean)o.@Required) != false) {
896WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
944WriteAttribute(@"ignoreCase", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IgnoreCase)));
979if (((global::System.Boolean)o.@Required) != false) {
980WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1009if (((global::System.Boolean)o.@Required) != false) {
1010WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1040if (((global::System.Boolean)o.@Required) != false) {
1041WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1079if (((global::System.Boolean)o.@Required) != false) {
1080WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1118if (((global::System.Boolean)o.@Required) != false) {
1119WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1159if (((global::System.Boolean)o.@Required) != false) {
1160WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1199if (((global::System.Boolean)o.@Required) != false) {
1200WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1240if (((global::System.Boolean)o.@Required) != false) {
1241WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1376if (((global::System.Boolean)o.@Required) != false) {
1377WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1405if (((global::System.Boolean)o.@Required) != false) {
1406WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1434if (((global::System.Boolean)o.@Required) != false) {
1435WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1477if (((global::System.Boolean)o.@Required) != false) {
1478WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1507if (((global::System.Boolean)o.@Required) != false) {
1508WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1514if (((global::System.Boolean)o.@SoapActionRequired) != false) {
1515WriteAttribute(@"soapActionRequired", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@SoapActionRequired)));
1553if (((global::System.Boolean)o.@Required) != false) {
1554WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1586if (((global::System.Boolean)o.@Required) != false) {
1587WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
1616if (((global::System.Boolean)o.@Required) != false) {
1617WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required)));
2625if (((global::System.Boolean)o.@IsAbstract) != false) {
2626WriteAttribute(@"abstract", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsAbstract)));
2642if (((global::System.Boolean)o.@IsNillable) != false) {
2643WriteAttribute(@"nillable", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsNillable)));
3099if (((global::System.Boolean)o.@IsFixed) != false) {
3100WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3141if (((global::System.Boolean)o.@IsFixed) != false) {
3142WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3183if (((global::System.Boolean)o.@IsFixed) != false) {
3184WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3225if (((global::System.Boolean)o.@IsFixed) != false) {
3226WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3267if (((global::System.Boolean)o.@IsFixed) != false) {
3268WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3309if (((global::System.Boolean)o.@IsFixed) != false) {
3310WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3351if (((global::System.Boolean)o.@IsFixed) != false) {
3352WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3393if (((global::System.Boolean)o.@IsFixed) != false) {
3394WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3435if (((global::System.Boolean)o.@IsFixed) != false) {
3436WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3477if (((global::System.Boolean)o.@IsFixed) != false) {
3478WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3519if (((global::System.Boolean)o.@IsFixed) != false) {
3520WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3561if (((global::System.Boolean)o.@IsFixed) != false) {
3562WriteAttribute(@"fixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed)));
3697if (((global::System.Boolean)o.@IsAbstract) != false) {
3698WriteAttribute(@"abstract", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsAbstract)));
3703if (((global::System.Boolean)o.@IsMixed) != false) {
3704WriteAttribute(@"mixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsMixed)));
4109WriteAttribute(@"mixed", @"", Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsMixed)));
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Tests (6)
Templates.Blazor.Tests (27)
Templates.Blazor.WebAssembly.Auth.Tests (28)
Templates.Blazor.WebAssembly.Tests (28)
Templates.Mvc.Tests (33)
Templates.Tests (37)
Test.Utilities (9)
TestingAppHost1.ServiceDefaults (1)
TestShop.ServiceDefaults (1)
Text.Analyzers (12)
vbc (3)
VBCSCompiler (5)
VBCSCompiler.UnitTests (18)
AnalyzerConsistencyCheckerTests.cs (8)
90var result = AnalyzerConsistencyChecker.Check(directory.Path, analyzerReferences, assemblyLoader, Logger);
105var result = AnalyzerConsistencyChecker.Check(Path.GetDirectoryName(TestFixture.Alpha)!, analyzerReferences, assemblyLoader, Logger);
123var result = AnalyzerConsistencyChecker.Check(directory.Path, analyzerReferences, assemblyLoader, Logger);
143var result = AnalyzerConsistencyChecker.Check(
187var result = AnalyzerConsistencyChecker.Check(directory.Path, analyzerReferences, assemblyLoader, Logger);
210var result = AnalyzerConsistencyChecker.Check(directory.Path, analyzerReferences, assemblyLoader, Logger);
228var result = AnalyzerConsistencyChecker.Check(directory.Path, analyzerReferences, new ThrowingLoader(), Logger);
242var result = AnalyzerConsistencyChecker.Check(directory.Path, analyzerReferences, new AnalyzerAssemblyLoader(), Logger);
WaitForSandbox.DbSetup (1)
Wasm.Performance.ConsoleHost (3)
Wasm.Performance.Driver (2)
xunit.assert (17)
xunit.console (10)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (1)
60var isPortable = true;