84 references to ToLower
Aspire.Cli.Tests (1)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1150public void SetupBooleanResponse(bool response) => _responses.Enqueue((response.ToString().ToLower(), ResponseType.Boolean));
Aspire.Dashboard.Tests (1)
Integration\StartupTests.cs (1)
1042data[DashboardConfigNames.UIDisableResourceGraphName.ConfigKey] = value?.ToString().ToLower();
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
883Assert.Contains("callback", ex.Message.ToLower());
CSharpSyntaxGenerator (2)
Grammar\GrammarGenerator.cs (2)
148.Select(n => n.ToString().ToLower()); 367s_normalizationRegex.Replace(name.EndsWith("Syntax") ? name[..^"Syntax".Length] : name, "_").ToLower(),
dotnet (10)
Commands\Package\List\PackageListCommand.cs (1)
77args.Add($"-interactive:{interactive.ToString().ToLower()}");
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (1)
90return $"[{option.Trim(':').ToLower()}]";
Commands\Test\VSTest\VSTestArgumentConverter.cs (3)
149if (s_argumentMapping.TryGetValue(argValues[0].ToLower(), out string longName)) 165activeArgument = arg.ToLower(); 281if (s_verbosityMapping.TryGetValue(verbosity.ToLower(), out string longValue))
Extensions\ProjectExtensions.cs (2)
18.Select(value => value.ToLower()) 27.Select((value) => value.ToLower());
Extensions\ProjectInstanceExtensions.cs (2)
57.Select(value => value.ToLower()) 66.Select((value) => value.ToLower());
ReleasePropertyProjectLocator.cs (1)
189configValues.Add(pReleasePropertyValue.ToLower());
dotnet-aot (2)
src\sdk\src\Cli\dotnet\Extensions\ProjectInstanceExtensions.cs (2)
57.Select(value => value.ToLower()) 66.Select((value) => value.ToLower());
dotnet-format (3)
Analyzers\AnalyzerFormatter.cs (1)
192formattedFiles.Add(new FormattedFile(document, new[] { new FileChange(diagnosticPosition, diagnostic.Id, $"{diagnostic.Severity.ToString().ToLower()} {diagnostic.Id}: {diagnostic.GetMessage()}") }));
Logging\ILoggerExtensions.cs (2)
12private static readonly string s_errorSeverityString = DiagnosticSeverity.Error.ToString().ToLower(); 20=> LogIssue(logger, document, diagnostic.Severity.ToString().ToLower(), diagnostic.Id, diagnosticPosition.Line + 1, diagnosticPosition.Character + 1, diagnostic.GetMessage(), changesAreErrors);
dotnet-svcutil-lib (4)
Shared\FrameworkInfo.cs (3)
78if (name.ToLower().Contains(Netversion)) 81if (name.ToLower().Contains(Netstandard)) 87else if (name.ToLower().Contains(Netframework) || version.Major >= 5)
Shared\MSBuildProj.cs (1)
803if (File.Exists(assetsFile) && !(this.TargetFramework.Contains("-") && !this.TargetFramework.ToLower().Contains("windows")))
dotnet-svcutil-lib.Tests (2)
TestInit.cs (2)
363.Where(f => !PathHelper.PathHasFolder(f, excludeDirs, this_TestCaseBaselinesDir)).Where(f => !f.ToLower().EndsWith("nuget.config")).ToList(); 373.Where(f => !f.ToLower().EndsWith("nuget.config"))
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
81return words.Select(w => w.ToLower());
Microsoft.Build (7)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
99CommandLineArgs: $"/noautoresponse /nologo {NodeModeHelper.ToCommandLineArgument(NodeMode.OutOfProcNode)} /nodeReuse:{ComponentHost.BuildParameters.EnableNodeReuse.ToString().ToLower()} /low:{ComponentHost.BuildParameters.LowPriority.ToString().ToLower()}",
BuildCheck\API\CheckConfiguration.cs (2)
132if (config == null || !config.TryGetValue(key.ToLower(), out stringValue) || stringValue is null) 137stringValue = stringValue.ToLower();
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (2)
45internal bool IsRoot => GlobalSection.Properties.TryGetValue("root", out string? val) && val?.ToLower() == "true"; 102var key = propMatch.Groups[1].Value.ToLower();
Evaluation\Expander\WellKnownFunctions.cs (1)
225returnVal = text.ToLower();
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
81return words.Select(w => w.ToLower());
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
81return words.Select(w => w.ToLower());
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
81return words.Select(w => w.ToLower());
Microsoft.CodeAnalysis.CSharp (7)
CommandLine\CSharpCommandLineParser.cs (7)
438string loweredValue = value.ToLower(); 442Debug.Assert(loweredValue == nameof(NullableContextOptions.Disable).ToLower()); 446Debug.Assert(loweredValue == nameof(NullableContextOptions.Enable).ToLower()); 450Debug.Assert(loweredValue == nameof(NullableContextOptions.Warnings).ToLower()); 454Debug.Assert(loweredValue == nameof(NullableContextOptions.Annotations).ToLower()); 822switch (value.ToLower()) 2038switch (kind.ToLower())
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\ClassificationHelpers.cs (1)
583var langValue = string.Join("", textAttribute.TextTokens.Select(t => t.Text)).ToLower();
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
81return words.Select(w => w.ToLower());
Microsoft.CodeAnalysis.VisualBasic (2)
CommandLine\VisualBasicCommandLineParser.vb (2)
751Select Case value.ToLower() 2119Select Case instrumentationKindStr.ToLower()
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
81return words.Select(w => w.ToLower());
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
180Add("errorreport", errorReport.ToLower());
Microsoft.DotNet.Build.Manifest (2)
BuildIdentity.cs (2)
181Attributes[nameof(IsStable)] = value.ToString().ToLower(); 203Attributes[nameof(IsReleaseOnlyPackageVersion)] = value.ToString().ToLower();
Microsoft.DotNet.Cli.Utils (3)
CommandAvailableAsDotNetToolException.cs (1)
20var packageName = "dotnet-" + commandRemoveLeadingDotnet.ToLower();
EnvironmentProvider.cs (1)
28.Select(e => e.ToLower().Trim('"')) ?? [string.Empty]
Extensions\MSBuildProjectExtensions.cs (1)
130return PathUtility.GetPathWithBackSlashes(include.ToLower());
Microsoft.ML.AutoML (2)
TrainerExtensions\TrainerExtensionUtil.cs (1)
271var option = dp.Options[optIndex].ToString().ToLower();
Utils\SweepableParamAttributes.cs (1)
92return o.ToString().ToLower();
Microsoft.ML.AutoML.Tests (1)
DatasetUtil.cs (1)
166var extension = Path.GetExtension(file).ToLower();
Microsoft.ML.Core (1)
EntryPoints\ModuleArgs.cs (1)
372return o.ToString().ToLower();
Microsoft.ML.Data (2)
Dirty\PredictionUtils.cs (1)
133switch (s.ToLower())
Utilities\StreamUtils.cs (1)
77var patLower = currentPattern.ToLower();
Microsoft.ML.Ensemble (2)
Trainer\EnsembleDistributionModelParameters.cs (2)
234if (Utils.ExtractLettersAndNumbers(m.Key).ToLower().Equals(weightedAverager.WeightageMetricName.ToLower()))
Microsoft.ML.PerformanceTests (1)
BenchmarkBase.cs (1)
115return columnSB.ToString().ToLower();
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
738if (lines[i] != null && lines[i].ToLower().StartsWith("maml.exe"))
Microsoft.ML.Tests (4)
Transformers\TextFeaturizerTests.cs (4)
81Assert.Equal(data[0].A.ToLower(), string.Join(" ", prediction.OutputTokens)); 86Assert.Equal(data[1].A.ToLower(), string.Join(" ", prediction.OutputTokens)); 283expected1 = data[0].A.ToLower(); 284expected2 = data[1].A.ToLower();
Microsoft.ML.TorchSharp (1)
NasBert\Modules\ActivationFunction.cs (1)
21_function = name?.ToLower() switch
Microsoft.ML.Transforms (2)
LoadTransform.cs (2)
87allTags.Add(tag.ToLower()); 94bool found = allTags.Contains(tag.ToLower());
Microsoft.NET.Sdk.Publish.Tasks (3)
MsDeploy\CommonUtility.cs (1)
611arguments.Add(string.Concat(enumName.ToLower(), "=", valueData));
Tasks\MsDeploy\MSDeploy.cs (1)
803arguments.Add(string.Concat(ExistingSyncParameterMetadata.Value.ToString().ToLower(),
Tasks\MsDeploy\VsMsdeploy.cs (1)
1095string lowerName = propertyName.ToLower();
Microsoft.TemplateEngine.Edge (1)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
496_ => str.First().ToString().ToLower() + str.Substring(1),
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (3)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
496_ => str.First().ToString().ToLower() + str.Substring(1),
ValueForms\FirstLowerCaseValueFormFactory.cs (1)
17_ => value.First().ToString().ToLower() + value.Substring(1),
ValueForms\LowerCaseValueFormFactory.cs (1)
14return value.ToLower();
Microsoft.TemplateEngine.Utils (1)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
496_ => str.First().ToString().ToLower() + str.Substring(1),
Microsoft.TemplateSearch.Common (1)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
496_ => str.First().ToString().ToLower() + str.Substring(1),
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
81return words.Select(w => w.ToLower());
Security.TransportSecurity.IntegrationTests (2)
Https\ClientCredentialTypeTests.4.1.0.cs (2)
163Assert.True(exception.Message.ToLower().Contains(message), string.Format("Expected exception message to contain: '{0}', actual message is: '{1}'", message, exception.Message)); 202Assert.True(exception.Message.ToLower().Contains(paraMessage), string.Format("Expected exception message to contain: '{0}', actual: '{1}'", paraMessage, exception.Message));