120 references to ToUpperInvariant
aspire (2)
src\Shared\BackchannelConstants.cs (1)
172: char.ToUpperInvariant(appHostPath[0]);
src\Shared\PathNormalizer.cs (1)
61var current = char.ToUpperInvariant(path[0]) + ":" + Path.DirectorySeparatorChar;
Aspire.Cli.Tests (3)
Caching\AppHostInfoDiskCacheTests.cs (1)
709var upperDrivePath = char.ToUpperInvariant(fullPath[0]) + fullPath[1..].ToUpperInvariant();
Projects\ProjectLocatorTests.cs (1)
1408? (char.IsUpper(c) ? char.ToLowerInvariant(c) : char.ToUpperInvariant(c))
Projects\TypeScriptAppHostToolchainResolverTests.cs (1)
388return new string(value.Select(c => char.IsUpper(c) ? char.ToLowerInvariant(c) : char.ToUpperInvariant(c)).ToArray());
Aspire.Dashboard (2)
Extensions\StringExtensions.cs (2)
59return $"{char.ToUpperInvariant(s[0])}{char.ToUpperInvariant(s[lastSpaceIndex + 1])}";
Aspire.Hosting (2)
src\Shared\BackchannelConstants.cs (1)
172: char.ToUpperInvariant(appHostPath[0]);
src\Shared\PathNormalizer.cs (1)
61var current = char.ToUpperInvariant(path[0]) + ":" + Path.DirectorySeparatorChar;
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
2243return char.ToUpperInvariant(name[0]) + name[1..];
Aspire.Hosting.CodeGeneration.Java (2)
AtsJavaCodeGenerator.cs (2)
2730return char.ToUpperInvariant(name[0]) + name[1..]; 2777result.Append(char.ToUpperInvariant(c));
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
1141var setterName = "set" + char.ToUpperInvariant(propName[0]) + propName[1..];
Aspire.Hosting.CodeGeneration.Rust (1)
AtsRustCodeGenerator.cs (1)
1183return char.ToUpperInvariant(name[0]) + name[1..];
Aspire.Hosting.CodeGeneration.TypeScript (2)
TypeScriptApiProjector.cs (2)
2043return char.ToUpperInvariant(name[0]) + name[1..]; 2503var setterName = "set" + char.ToUpperInvariant(propName[0]) + propName[1..];
Aspire.Hosting.Dotnet (1)
src\Shared\PathNormalizer.cs (1)
61var current = char.ToUpperInvariant(path[0]) + ":" + Path.DirectorySeparatorChar;
Aspire.Hosting.Integration.Analyzers (1)
AspireExportAnalyzer.cs (1)
658? char.ToUpperInvariant(methodNameOverride[0]) + methodNameOverride.Substring(1)
Aspire.Hosting.Java (1)
src\Shared\PathNormalizer.cs (1)
61var current = char.ToUpperInvariant(path[0]) + ":" + Path.DirectorySeparatorChar;
Aspire.Hosting.JavaScript (1)
src\Shared\PathNormalizer.cs (1)
61var current = char.ToUpperInvariant(path[0]) + ":" + Path.DirectorySeparatorChar;
Aspire.Hosting.Maui (1)
src\Shared\PathNormalizer.cs (1)
61var current = char.ToUpperInvariant(path[0]) + ":" + Path.DirectorySeparatorChar;
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1718? char.ToUpperInvariant(methodNameOverride[0]) + methodNameOverride[1..]
Aspire.Hosting.Rust (1)
src\Shared\PathNormalizer.cs (1)
61var current = char.ToUpperInvariant(path[0]) + ":" + Path.DirectorySeparatorChar;
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\TypeIndex.cs (1)
128displayString = char.ToUpperInvariant(displayString[0]) + displayString.Substring(1);
CSharpSyntaxGenerator (1)
Grammar\GrammarGenerator.cs (1)
275var array = value.Select(c => char.IsLetter(c) ? [char.ToUpperInvariant(c), char.ToLowerInvariant(c)] : new[] { c }).ToArray();
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (1)
43return char.ToUpperInvariant(identifier[0]).ToString() + identifier.Substring(1);
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
706: char.ToUpperInvariant(x) == char.ToUpperInvariant(y); 719hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
Microsoft.Analyzers.Extra (1)
LegacyLoggingFixer.FixDetails.cs (1)
239_ = sb.Append(char.ToUpperInvariant(ch));
Microsoft.Analyzers.Local (1)
JsonReader.cs (1)
222return char.ToUpperInvariant(_scanner.Read()) switch
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (1)
334result.Append(char.ToUpperInvariant(ch));
Microsoft.AspNetCore.Mvc.Core (1)
ApiExplorer\ApiConventionMatcher.cs (1)
157if (name[index] != char.ToUpperInvariant(conventionName[0]))
Microsoft.AspNetCore.OutputCaching (1)
StringBuilderExtensions.cs (1)
17builder.Append(char.ToUpperInvariant(value[i]));
Microsoft.AspNetCore.ResponseCaching (1)
StringBuilderExtensions.cs (1)
17builder.Append(char.ToUpperInvariant(value[i]));
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\Request.cs (2)
122|| char.ToUpperInvariant(baseValue) == char.ToUpperInvariant(offsetValue))
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.cs (2)
227|| char.ToUpperInvariant(baseValue) == char.ToUpperInvariant(offsetValue))
Microsoft.Build (14)
BackEnd\Components\Logging\BuildErrorTelemetryTracker.cs (14)
159char c0 = char.ToUpperInvariant(errorCode[0]); 160char c1 = char.ToUpperInvariant(errorCode[1]); 174('C', 'V') when errorCode.Length >= 3 && char.ToUpperInvariant(errorCode[2]) == 'T' => ErrorCategory.NativeToolchain, // CVT* 178('I', 'D') when errorCode.Length >= 3 && char.ToUpperInvariant(errorCode[2]) == 'E' => ErrorCategory.CodeAnalysis, // IDE* 181('L', 'N') when errorCode.Length >= 3 && char.ToUpperInvariant(errorCode[2]) == 'K' => ErrorCategory.NativeToolchain, // LNK* 185('M', 'S') when errorCode.Length >= 3 && char.ToUpperInvariant(errorCode[2]) == 'B' => CategorizeMSBError(errorCode.AsSpan()), 208=> errorCode.Length >= 3 && char.ToUpperInvariant(errorCode[2]) == 'P'; 216char.ToUpperInvariant(errorCode[2]) == 'T' && 217char.ToUpperInvariant(errorCode[3]) == 'S' && 218char.ToUpperInvariant(errorCode[4]) == 'D' && 219char.ToUpperInvariant(errorCode[5]) == 'K'; 232char c0 = char.ToUpperInvariant(value[0]); 233char c1 = char.ToUpperInvariant(value[1]); 239('V', 'B') => value.Length >= 3 && char.ToUpperInvariant(value[2]) == 'C', // VBC* -> VB compiler
Microsoft.Build.Framework (1)
BackEnd\Handshake.cs (1)
200: char.IsLower(drive) ? char.ToUpperInvariant(drive) : drive;
Microsoft.CodeAnalysis (3)
FileSystem\PathUtilities.cs (3)
706: char.ToUpperInvariant(x) == char.ToUpperInvariant(y); 719hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
706: char.ToUpperInvariant(x) == char.ToUpperInvariant(y); 719hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
706: char.ToUpperInvariant(x) == char.ToUpperInvariant(y); 719hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
Microsoft.CodeAnalysis.CodeStyle (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
706: char.ToUpperInvariant(x) == char.ToUpperInvariant(y); 719hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
706: char.ToUpperInvariant(x) == char.ToUpperInvariant(y); 719hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
Microsoft.CodeAnalysis.Workspaces (12)
FindSymbols\TopLevelSyntaxTree\NavigateToSearchIndex.NavigateToSearchInfo.cs (9)
239AddToSet(humpStrings, [char.ToUpperInvariant(name[part.Start])]); 247var ci = char.ToUpperInvariant(name[charParts[i].Start]); 250var cj = char.ToUpperInvariant(name[charParts[j].Start]); 321containerChars.Add(char.ToUpperInvariant(fullyQualifiedContainerName[part.Start])); 442if (!_containerCharSet.Contains(char.ToUpperInvariant(patternContainer[part.Start]))) 452return _containerCharSet.Contains(char.ToUpperInvariant(patternContainer[0])); 591return ContainsChar(humpSet, char.ToUpperInvariant(pattern[charParts[0].Start])); 597var c1 = char.ToUpperInvariant(pattern[charParts[i].Start]); 598var c2 = char.ToUpperInvariant(pattern[charParts[i + 1].Start]);
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
706: char.ToUpperInvariant(x) == char.ToUpperInvariant(y); 719hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
706: char.ToUpperInvariant(x) == char.ToUpperInvariant(y); 719hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
Microsoft.Extensions.AI.Evaluation.NLP (1)
Common\SimpleWordTokenizer.cs (1)
205_ = sb.Append(char.ToUpperInvariant(nextChar));
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Specs\TypeIndex.cs (1)
138displayString = char.ToUpperInvariant(displayString[0]) + displayString.Substring(1);
Microsoft.Extensions.Http.Diagnostics (1)
Http\HttpDependencyMetadataResolver.cs (1)
87a[i] = char.ToUpperInvariant((char)i);
Microsoft.Extensions.Identity.Core (1)
Base32.cs (1)
90var byteIndex = _base32Chars.IndexOf(char.ToUpperInvariant(trimmedInput[inputIndex]));
Microsoft.ML.Core (4)
Utilities\CharUtils.cs (1)
30upper[i] = char.ToUpperInvariant((char)i);
Utilities\Hashing.cs (3)
132uint ch = toUpper ? char.ToUpperInvariant(span[ich]) : span[ich]; 198uint ch = toUpper ? char.ToUpperInvariant(span[ich]) : span[ich]; 293uint ch = toUpper ? char.ToUpperInvariant(data[ich]) : data[ich];
Microsoft.ML.InternalCodeAnalyzer (1)
NameFixProvider.cs (1)
177builder.Append(char.ToUpperInvariant(token[0]));
Microsoft.Win32.Registry (1)
Microsoft\Win32\Registry.cs (1)
48case 17: baseKey = char.ToUpperInvariant(keyName[6]) == 'L' ? ClassesRoot : CurrentUser; break; // HKEY_C[L]ASSES_ROOT, otherwise HKEY_CURRENT_USER
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\PathInternal.cs (2)
269&& (*l == *r || (ignoreCase && char.ToUpperInvariant((*l)) == char.ToUpperInvariant((*r)))))
PresentationCore (2)
MS\Internal\FontCache\FontCacheUtil.cs (2)
731char ca = Char.ToUpperInvariant(a); 732char cb = Char.ToUpperInvariant(b);
Roslyn.Diagnostics.Analyzers (4)
AbstractExposeMemberForTesting`1.cs (1)
97return char.ToUpperInvariant(name[0]) + name[1..];
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
706: char.ToUpperInvariant(x) == char.ToUpperInvariant(y); 719hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
System.Formats.Tar (2)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (2)
66char.ToUpperInvariant(first[commonLength]) != char.ToUpperInvariant(second[commonLength]))
System.IO.FileSystem.AccessControl (2)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (2)
66char.ToUpperInvariant(first[commonLength]) != char.ToUpperInvariant(second[commonLength]))
System.IO.FileSystem.Watcher (2)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (2)
66char.ToUpperInvariant(first[commonLength]) != char.ToUpperInvariant(second[commonLength]))
System.Net.Http (2)
src\runtime\src\libraries\Common\src\System\Text\SimpleRegex.cs (2)
37char.ToUpperInvariant(pattern[patternPos]) == char.ToUpperInvariant(input[inputPos])))
System.Private.CoreLib (5)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (2)
66char.ToUpperInvariant(first[commonLength]) != char.ToUpperInvariant(second[commonLength]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (2)
351? char.ToUpperInvariant(expressionChar) == char.ToUpperInvariant(nameChar)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (1)
208startingChars.Append(char.ToUpperInvariant(c));
System.Private.Xml (1)
System\Xml\Serialization\CodeIdentifier.cs (1)
40buffer[0] = char.ToUpperInvariant(buffer[0]); // convert only first char to uppercase; leave all else as-is
System.Text.Json (2)
src\runtime\src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (2)
134WordCasing.UpperCase => char.ToUpperInvariant(current), 135WordCasing.PascalCase => isWordStart ? char.ToUpperInvariant(current) : current,
System.Text.Json.SourceGeneration (2)
src\runtime\src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (2)
134WordCasing.UpperCase => char.ToUpperInvariant(current), 135WordCasing.PascalCase => isWordStart ? char.ToUpperInvariant(current) : current,