607 references to EndsWith
Analyzer.Utilities.UnitTests (2)
FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysisTests.cs (2)
1333if (exprFullText.EndsWith(EndString, StringComparison.Ordinal)) 1348if (exprFullText.EndsWith(EndString, StringComparison.Ordinal))
aspire (1)
Projects\ProjectLocator.cs (1)
93var fileNameSuggestsAppHost = () => projectFile.Name.EndsWith("AppHost.csproj", StringComparison.OrdinalIgnoreCase);
Aspire.Dashboard (2)
Model\BrowserLinkOutgoingPeerResolver.cs (1)
40if (url != null && url.EndsWith(lastSegment, StringComparisons.UrlPath))
src\Shared\StringUtils.cs (1)
41return value.EndsWith(suffix, StringComparison.Ordinal)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal))
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal))
Aspire.Hosting (4)
Dashboard\DashboardLifecycleHook.cs (2)
340if (fileName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase)) 345else if (fileName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase))
Dcp\DcpExecutor.cs (1)
1687var s when s.Length > 10 && s.EndsWith(".localhost", StringComparison.OrdinalIgnoreCase) => ("localhost", EndpointBindingMode.SingleAddress), // Explicitly set to localhost when using .localhost subdomain
src\Shared\StringUtils.cs (1)
41return value.EndsWith(suffix, StringComparison.Ordinal)
Aspire.Hosting.RabbitMQ (3)
RabbitMQBuilderExtensions.cs (3)
176else if (existingTag.EndsWith(management, StringComparison.OrdinalIgnoreCase) 177|| existingTag.EndsWith($"{management}-{alpine}", StringComparison.OrdinalIgnoreCase)) 182else if (existingTag.EndsWith(alpine, StringComparison.OrdinalIgnoreCase))
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal))
Aspire.Hosting.Tests (2)
Helpers\KubernetesHelper.cs (1)
19if ((name == resourceName || (name.StartsWith(resourceName + "-", StringComparison.Ordinal) && name.EndsWith("-" + resourceNameSuffix, StringComparison.Ordinal))) && ready(r))
tests\Shared\Logging\XunitLoggerProvider.cs (1)
96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal))
Aspire.Playground.Tests (2)
tests\Aspire.TestUtilities\FileUtil.cs (1)
27var fileName = command.EndsWith(extension, StringComparison.OrdinalIgnoreCase) ? command : command + extension;
tests\Shared\Logging\XunitLoggerProvider.cs (1)
96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal))
Aspire.TestUtilities (1)
FileUtil.cs (1)
27var fileName = command.EndsWith(extension, StringComparison.OrdinalIgnoreCase) ? command : command + extension;
BuildBoss (12)
CompilerNuGetCheckerUtil.cs (12)
150relativeFileName.EndsWith(".resources.dll", PathComparison) || 151relativeFileName.EndsWith(".rels", PathComparison) || 152relativeFileName.EndsWith(".psmdcp", PathComparison), 183(relativeFileName.StartsWith(@"tasks\netcore\binfx\", PathComparison) && relativeFileName.EndsWith(".targets", PathComparison)), 449filePath.EndsWith(".exe", PathComparison) || 450filePath.EndsWith(".dll", PathComparison) || 451filePath.EndsWith(".targets", PathComparison) || 452filePath.EndsWith(".config", PathComparison) || 453filePath.EndsWith(".rsp", PathComparison) || 454filePath.EndsWith(".deps.json", PathComparison) || 455filePath.EndsWith(".runtimeconfig.json", PathComparison) || 456filePath.EndsWith(".props", PathComparison);
ClientSample (1)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
157return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Crossgen2Tasks (5)
CommonFilePulledFromSdkRepo\NuGetUtils.NuGet.cs (3)
21if (!path.EndsWith("_._", StringComparison.Ordinal)) 58&& file.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) 59&& !file.EndsWith(".resources.dll", StringComparison.OrdinalIgnoreCase);
PrepareForReadyToRunCompilation.cs (2)
358if (!file.ItemSpec.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) && !file.ItemSpec.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
CSharpSyntaxGenerator (2)
AbstractFileWriter.cs (1)
283return name.EndsWith(post, StringComparison.Ordinal)
SourceWriter.cs (1)
1360&& ((field.Kinds.Count == 1 && field.Kinds[0].Name != "IdentifierToken" && !field.Kinds[0].Name.EndsWith("LiteralToken", StringComparison.Ordinal)) || (field.Kinds.Count > 1 && field.Kinds.Count == node.Kinds.Count));
dotnet-dev-certs (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
34? template.EndsWith(">...", StringComparison.Ordinal) ? CommandOptionType.MultipleValue : CommandOptionType.SingleValue
dotnet-getdocument (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
34? template.EndsWith(">...", StringComparison.Ordinal) ? CommandOptionType.MultipleValue : CommandOptionType.SingleValue
dotnet-openapi (4)
Commands\AddFileCommand.cs (1)
41if (!ApprovedExtensions.Any(e => sourceFile.EndsWith(e, StringComparison.Ordinal)))
Commands\BaseCommand.cs (1)
137return File.Exists(Path.GetFullPath(file)) && file.EndsWith(".csproj", StringComparison.Ordinal);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
34? template.EndsWith(">...", StringComparison.Ordinal) ? CommandOptionType.MultipleValue : CommandOptionType.SingleValue
dotnet-sql-cache (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
34? template.EndsWith(">...", StringComparison.Ordinal) ? CommandOptionType.MultipleValue : CommandOptionType.SingleValue
dotnet-svcutil.xmlserializer (4)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
193if (!directoryArgValue.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal))
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (3)
66if (!directory.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal)) 175if (absoluteUriString.EndsWith("/", StringComparison.Ordinal)) 191if (absolutePath.EndsWith("/", StringComparison.Ordinal))
dotnet-svcutil-lib (26)
CodeDomFixup\CodeDomHelpers.cs (1)
95return (method.Name.EndsWith("Async", StringComparison.Ordinal) &&
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
43if (name.EndsWith(typeName, StringComparison.Ordinal))
CodeDomFixup\ConfigToCode.cs (2)
37if (contractName.EndsWith(endpoint.Contract.Name, StringComparison.Ordinal) || contractName.EndsWith(UniqueCodeIdentifierScope.MakeValid(endpoint.Contract.CodeName, endpoint.Contract.CodeName), StringComparison.Ordinal))
CommandProcessorOptions.cs (1)
425if (!outputFile.EndsWith(this.CodeProvider.FileExtension, RuntimeEnvironmentHelper.FileStringComparison))
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
309if (tempDir.EndsWith("\\", StringComparison.Ordinal))
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (1)
253while (identifier.EndsWith("[]", StringComparison.Ordinal))
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
560if (member.Name.EndsWith("Specified", StringComparison.Ordinal))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (2)
1530if (member.Name.EndsWith("Specified", StringComparison.Ordinal)) 1577if (member.Name.EndsWith("Specified", StringComparison.Ordinal))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2604else if (initValue.Source.EndsWith("]", StringComparison.Ordinal))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
285if (!baseAddress.AbsolutePath.EndsWith("/", StringComparison.Ordinal))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (3)
38if (baseUri.EndsWith("/", StringComparison.Ordinal)) 126if (!contractName.Namespace.EndsWith("/", StringComparison.Ordinal)) 929else if (isTask && method.Name.EndsWith(AsyncMethodNameSuffix, StringComparison.Ordinal))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
1065string baseActionUri = ns.EndsWith(delimiter, StringComparison.OrdinalIgnoreCase) ? ns : ns + delimiter;
Metadata\MetadaExchangeResolver.cs (1)
93bool isMexUri = this.EndpointAddress.Uri.AbsoluteUri.EndsWith(mexUri, StringComparison.OrdinalIgnoreCase);
Metadata\MetadataDocumentLoader.cs (1)
715if (key.EndsWith(MexUri, StringComparison.OrdinalIgnoreCase))
Metadata\MetadataFileNameManager.cs (2)
112if (absoluteUriString.EndsWith("/", StringComparison.Ordinal)) 129if (absolutePath.EndsWith("/", StringComparison.Ordinal))
OutputPathHelper.cs (3)
55if (!directory.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal)) 124if (absoluteUriString.EndsWith("/", StringComparison.Ordinal)) 140if (absolutePath.EndsWith("/", StringComparison.Ordinal))
Shared\Utilities\LogTag.cs (1)
37if (string.IsNullOrEmpty(tag) || tag.Length != LogTag.s_tagLength || !tag.StartsWith(s_tagStart, StringComparison.Ordinal) || !tag.EndsWith(s_tagEnd, StringComparison.Ordinal))
TypeLoader.cs (2)
23if (path.EndsWith(DotDll, StringComparison.OrdinalIgnoreCase) || path.EndsWith(DotExe, StringComparison.OrdinalIgnoreCase))
dotnet-svcutil-lib.Tests (2)
TestInit.cs (2)
365var nonRefbaselineFiles = baselineFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList(); 377var nonRefGeneratedFiles = generatedFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList();
dotnet-user-jwts (3)
Helpers\DevJwtCliHelpers.cs (1)
53if (!appsettingsFile.EndsWith(".json", StringComparison.OrdinalIgnoreCase))
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
34? template.EndsWith(">...", StringComparison.Ordinal) ? CommandOptionType.MultipleValue : CommandOptionType.SingleValue
dotnet-user-secrets (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
34? template.EndsWith(">...", StringComparison.Ordinal) ? CommandOptionType.MultipleValue : CommandOptionType.SingleValue
GenerateDocumentationAndConfigFiles (7)
Program.cs (1)
1386Debug.Assert(fileName.EndsWith(".globalconfig", StringComparison.Ordinal));
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
GetDocument.Insider (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (1)
34? template.EndsWith(">...", StringComparison.Ordinal) ? CommandOptionType.MultipleValue : CommandOptionType.SingleValue
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
145var xmlFiles = Directory.GetFiles(folderPath).Where(f => f.EndsWith("xml", StringComparison.Ordinal)).ToList();
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
145var xmlFiles = Directory.GetFiles(folderPath).Where(f => f.EndsWith("xml", StringComparison.Ordinal)).ToList();
illink (4)
ILLink.RoslynAnalyzer (1)
CompilationExtensions.cs (1)
145return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
installer.tasks (2)
GenerateFileVersionProps.cs (2)
107p.Key.EndsWith(".exe", StringComparison.OrdinalIgnoreCase) || 108p.Key.EndsWith(".dll", StringComparison.OrdinalIgnoreCase))
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
204options: fileName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase) ? TestOptions.ReleaseExe : TestOptions.ReleaseDll);
LocalizationSample (1)
Startup.cs (1)
34if (context.Request.Path.Value.EndsWith("favicon.ico", StringComparison.Ordinal))
Metrics (12)
Program.cs (6)
118if (!value.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase) && 119!value.EndsWith(".vbproj", StringComparison.OrdinalIgnoreCase)) 134if (!value.EndsWith(".sln", StringComparison.OrdinalIgnoreCase)) 275if (projectOrSolution.EndsWith(".sln", StringComparison.OrdinalIgnoreCase)) 281Debug.Assert(projectOrSolution.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase) || 282projectOrSolution.EndsWith(".vbproj", StringComparison.OrdinalIgnoreCase));
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Metrics.Legacy (12)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Tools\Metrics\Program.cs (6)
118if (!value.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase) && 119!value.EndsWith(".vbproj", StringComparison.OrdinalIgnoreCase)) 134if (!value.EndsWith(".sln", StringComparison.OrdinalIgnoreCase)) 275if (projectOrSolution.EndsWith(".sln", StringComparison.OrdinalIgnoreCase)) 281Debug.Assert(projectOrSolution.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase) || 282projectOrSolution.EndsWith(".vbproj", StringComparison.OrdinalIgnoreCase));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Microsoft.Analyzers.Local (1)
ApiLifecycle\ModelLoader.cs (1)
32if (assemblyName.EndsWith(fileName, StringComparison.OrdinalIgnoreCase) && string.Equals(fileExtension, ".json", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Analyzers (2)
OptionsAnalyzer.cs (1)
31property.Property.ContainingType.Name.EndsWith("Options", StringComparison.Ordinal))
StartupFacts.cs (1)
67!symbol.Name.EndsWith(SymbolNames.ConfigureServicesMethodSuffix, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.App.Analyzers (3)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (1)
148if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
254if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.OrdinalIgnoreCase))
src\Shared\Roslyn\MvcFacts.cs (1)
48if (!type.Name.EndsWith("Controller", StringComparison.OrdinalIgnoreCase) &&
Microsoft.AspNetCore.App.UnitTests (9)
PackageTests.cs (1)
44.Where(file => !file.EndsWith(".symbols.nupkg", StringComparison.OrdinalIgnoreCase));
SharedFxTests.cs (2)
282return fileName.EndsWith(".dll", StringComparison.Ordinal) 333.Where(i => i.FullName.EndsWith(".dll", StringComparison.Ordinal))
TargetingPackTests.cs (6)
233return fileName.EndsWith(".dll", StringComparison.Ordinal) 253return fileName.EndsWith(".dll", StringComparison.Ordinal) 309.Where(f => !f.EndsWith(".resources", StringComparison.OrdinalIgnoreCase)) 327return fileName.EndsWith(".dll", StringComparison.Ordinal) 376.Where(i => i.FullName.EndsWith(".dll", StringComparison.Ordinal) && !i.FullName.EndsWith(".resources.dll", StringComparison.Ordinal))
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerPostConfigureOptions.cs (1)
39if (!options.MetadataAddress.EndsWith("/", StringComparison.Ordinal))
Microsoft.AspNetCore.Components.Analyzers.Tests (3)
AnalyzerTestBase.cs (2)
16if (!source.EndsWith(".cs", StringComparison.Ordinal)) 33if (!source.EndsWith(".cs", StringComparison.Ordinal))
Verifiers\DiagnosticVerifier.cs (1)
261string resultMethodName = diagnostics[i].Location.SourceTree.FilePath.EndsWith(".cs", StringComparison.Ordinal) ? "GetCSharpResultAt" : "GetBasicResultAt";
Microsoft.AspNetCore.Components.Endpoints (2)
Assets\ImportMapDefinition.cs (2)
61if (!(asset.Url.EndsWith(".mjs", StringComparison.OrdinalIgnoreCase) || 62asset.Url.EndsWith(".js", StringComparison.OrdinalIgnoreCase)) ||
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (3)
AnalyzerTestBase.cs (2)
16if (!source.EndsWith(".cs", StringComparison.Ordinal)) 33if (!source.EndsWith(".cs", StringComparison.Ordinal))
Verifiers\DiagnosticVerifier.cs (1)
261string resultMethodName = diagnostics[i].Location.SourceTree.FilePath.EndsWith(".cs", StringComparison.Ordinal) ? "GetCSharpResultAt" : "GetBasicResultAt";
Microsoft.AspNetCore.Components.Tests (3)
Routing\RouterTest.cs (3)
67if (args.Path.EndsWith("jan", StringComparison.Ordinal)) 101if (args.Path.EndsWith("jan", StringComparison.Ordinal)) 157if (args.Path.EndsWith("jan", StringComparison.Ordinal))
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
102 if (relativePath.StartsWith($"{assemblyName}.", StringComparison.Ordinal) && relativePath.EndsWith(".bundle.scp.css", StringComparison.Ordinal))
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
102 if (relativePath.StartsWith($"{assemblyName}.", StringComparison.Ordinal) && relativePath.EndsWith(".bundle.scp.css", StringComparison.Ordinal))
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
102 if (relativePath.StartsWith($"{assemblyName}.", StringComparison.Ordinal) && relativePath.EndsWith(".bundle.scp.css", StringComparison.Ordinal))
Microsoft.AspNetCore.Cors (1)
Infrastructure\UriHelpers.cs (1)
14&& subdomain.Host.EndsWith($".{domain.Host}", StringComparison.Ordinal);
Microsoft.AspNetCore.DataProtection (3)
Internal\ContainerUtils.cs (1)
106return Enumerable.Reverse(lines).Any(l => l.EndsWith("name=openrc:/docker", StringComparison.Ordinal));
Internal\HostingApplicationDiscriminator.cs (2)
36contentRoot.EndsWith(DirectorySeparator, StringComparison.OrdinalIgnoreCase) || 37contentRoot.EndsWith(AltDirectorySeparator, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonTranscodingServerCallContext.cs (1)
155else if (header.Key.EndsWith(Metadata.BinaryHeaderSuffix, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostService.cs (1)
171if (address.Contains(".localhost", StringComparison.OrdinalIgnoreCase) && Uri.TryCreate(address, UriKind.Absolute, out var uri) && uri.Host.EndsWith(".localhost", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnection.cs (1)
452if (!urlBuilder.Path.EndsWith("/", StringComparison.Ordinal))
Internal\Utils.cs (1)
26if (!builder.Path.EndsWith("/", StringComparison.Ordinal))
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
19&& !type.Namespace.EndsWith(".Compiled", StringComparison.Ordinal) 47.Where(method => !method.Name.EndsWith("Async", StringComparison.Ordinal))
Microsoft.AspNetCore.Identity.FunctionalTests (1)
MapIdentityApiTests.cs (1)
1479if (!cookie.EndsWith("=", StringComparison.Ordinal))
Microsoft.AspNetCore.Identity.InMemory.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
19&& !type.Namespace.EndsWith(".Compiled", StringComparison.Ordinal) 47.Where(method => !method.Name.EndsWith("Async", StringComparison.Ordinal))
Microsoft.AspNetCore.Identity.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
19&& !type.Namespace.EndsWith(".Compiled", StringComparison.Ordinal) 47.Where(method => !method.Name.EndsWith("Async", StringComparison.Ordinal))
Microsoft.AspNetCore.InternalTesting (2)
Logging\XunitLoggerProvider.cs (1)
98if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal))
xunit\DockerOnlyAttribute.cs (1)
34return Enumerable.Reverse(lines).Any(l => l.EndsWith("name=openrc:/docker", StringComparison.Ordinal));
Microsoft.AspNetCore.Mvc.Analyzers (1)
src\Shared\Roslyn\MvcFacts.cs (1)
48if (!type.Name.EndsWith("Controller", StringComparison.OrdinalIgnoreCase) &&
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
src\Shared\Roslyn\MvcFacts.cs (1)
48if (!type.Name.EndsWith("Controller", StringComparison.OrdinalIgnoreCase) &&
Microsoft.AspNetCore.Mvc.Core (3)
ApplicationModels\DefaultApplicationModelProvider.cs (2)
165typeInfo.Name.EndsWith("Controller", StringComparison.OrdinalIgnoreCase) ? 393actionName.EndsWith(Suffix, StringComparison.Ordinal))
Controllers\ControllerFeatureProvider.cs (1)
68if (!typeInfo.Name.EndsWith(ControllerTypeNameSuffix, StringComparison.OrdinalIgnoreCase) &&
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
NewtonsoftJsonInputFormatter.cs (4)
286addMember = !path.EndsWith(member, StringComparison.Ordinal); 290addMember = !path.EndsWith($".{member}", StringComparison.Ordinal) 291&& !path.EndsWith($"['{member}']", StringComparison.Ordinal) 292&& !path.EndsWith($"[{member}]", StringComparison.Ordinal);
Microsoft.AspNetCore.Mvc.Razor (2)
RazorViewEngine.cs (1)
491return name.EndsWith(ViewExtension, StringComparison.OrdinalIgnoreCase);
TagHelpers\UrlResolutionTagHelper.cs (1)
257if (!appRelativeUrl.EndsWith(postTildeSlashUrlValue, StringComparison.Ordinal))
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
130Debug.Assert(path.EndsWith(RazorViewEngine.ViewExtension, StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.Mvc.RazorPages (4)
ApplicationModels\CompiledPageRouteModelProvider.cs (1)
90if (!rootDirectory.EndsWith("/", StringComparison.Ordinal))
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (1)
234if (methodName.EndsWith("Async", StringComparison.Ordinal))
ApplicationModels\PageConventionCollection.cs (1)
254if (pageName[0] != '/' || pageName.EndsWith(".cshtml", StringComparison.OrdinalIgnoreCase))
ApplicationModels\PageRouteModelFactory.cs (1)
130Debug.Assert(path.EndsWith(RazorViewEngine.ViewExtension, StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ViewComponents\ViewComponentConventions.cs (2)
75if (componentType.Name.EndsWith(ViewComponentSuffix, StringComparison.OrdinalIgnoreCase)) 106typeInfo.Name.EndsWith(ViewComponentSuffix, StringComparison.OrdinalIgnoreCase) ||
Microsoft.AspNetCore.OpenApi (2)
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (2)
82pattern.EndsWith(".yaml", StringComparison.OrdinalIgnoreCase) || 83pattern.EndsWith(".yml", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.OpenApi.SourceGenerators (2)
XmlCommentGenerator.cs (1)
17.Where(file => file.Path.EndsWith(".xml", StringComparison.OrdinalIgnoreCase))
XmlComments\XmlComment.cs (1)
29if (xml.StartsWith("<doc>", StringComparison.InvariantCulture) && xml.EndsWith("</doc>", StringComparison.InvariantCulture))
Microsoft.AspNetCore.Routing (2)
Matching\HostMatcherPolicy.cs (1)
451return host.EndsWith(_wildcardEndsWith!, StringComparison.OrdinalIgnoreCase);
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (1)
29if (routePrefix.EndsWith("/", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\DotNetCommands.cs (1)
34if (dotnetRoot.EndsWith("x64", StringComparison.Ordinal))
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\AddressBinder.cs (1)
156if (host.Length > localhostTld.Length && host.EndsWith(localhostTld, StringComparison.OrdinalIgnoreCase))
Internal\SniOptionsSelector.cs (1)
124if (serverName.EndsWith(suffix, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
KestrelConfigurationLoaderTests.cs (1)
915if (certificatePath.EndsWith(".pem", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Startup.cs (1)
86if (context.Request.Path.Value.EndsWith("/negotiate", StringComparison.Ordinal))
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (4)
HubClientProxyGenerator.Parser.cs (2)
42!attributeSymbol.ToString().EndsWith("HubClientProxyAttribute()", StringComparison.Ordinal)) 163.EndsWith("HubClientProxyAttribute", StringComparison.Ordinal))
HubServerProxyGenerator.Parser.cs (2)
42!attributeSymbol.ToString().EndsWith("HubServerProxyAttribute()", StringComparison.Ordinal)) 153.EndsWith("HubServerProxyAttribute", StringComparison.Ordinal))
Microsoft.AspNetCore.SignalR.Client.Tests (1)
ResponseUtils.cs (1)
37new UriBuilder(request.RequestUri).Path.EndsWith("/negotiate", StringComparison.Ordinal);
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
72var targetUri = new Uri((baseUriAsString.EndsWith("/", StringComparison.OrdinalIgnoreCase) ? baseUriAsString[..^1] : baseUriAsString)
Microsoft.AspNetCore.StaticFiles (1)
Helpers.cs (1)
29return path.HasValue && path.Value!.EndsWith("/", StringComparison.Ordinal);
Microsoft.Build.Framework (2)
FileClassifier.cs (2)
145if (dir.EndsWith(devEnvExeRelativePath, PathComparison)) 181Path.GetDirectoryName(msBuildAssembly)?.EndsWith(@"\amd64", StringComparison.OrdinalIgnoreCase) == true
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
176Debug.Assert(mappedTopLevelPath.EndsWith("/", StringComparison.Ordinal));
src\Compilers\Core\MSBuildTask\Vbc.cs (1)
309if (!desiredLocation.EndsWith(".pdb", StringComparison.OrdinalIgnoreCase))
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
176Debug.Assert(mappedTopLevelPath.EndsWith("/", StringComparison.Ordinal));
src\Compilers\Core\MSBuildTask\Vbc.cs (1)
309if (!desiredLocation.EndsWith(".pdb", StringComparison.OrdinalIgnoreCase))
Microsoft.Cci.Extensions (1)
HostEnvironment.cs (1)
482var coreAssemblyFile = contractSet.FirstOrDefault(c => Path.GetFileNameWithoutExtension(c).EndsWith(coreAssemblySimpleName, StringComparison.OrdinalIgnoreCase) == true);
Microsoft.CodeAnalysis (9)
CommandLine\AnalyzerConfigSet.cs (1)
405key.EndsWith(diagnosticOptionSuffix, StringComparison.Ordinal))
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
132if (assemblyName.CultureInfo is not null && simpleName.EndsWith(".resources", SimpleNameComparer.Comparison))
InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
MetadataReader\MetadataHelpers.cs (1)
1061fullyQualified.EndsWith(typeName, StringComparison.Ordinal);
SourceGeneration\AdditionalSourcesCollection.cs (1)
144if (!hintName.EndsWith(_fileExtension, _hintNameComparison))
SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.Analyzers (12)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ResourceStringsFormat.cs (2)
43Debug.Assert(!resourceFileName.EndsWith(".resx", StringComparison.OrdinalIgnoreCase)); 90!valueElementStr.EndsWith(valueTagSuffix, StringComparison.OrdinalIgnoreCase))
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (2)
33if (fixAllContext.CodeActionEquivalenceKey!.EndsWith(SourceDocumentEquivalenceKeySuffix, StringComparison.Ordinal)) 39Debug.Assert(fixAllContext.CodeActionEquivalenceKey.EndsWith(AdditionalDocumentEquivalenceKeySuffix, StringComparison.Ordinal));
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (2)
194if (!kvp.Key.SymbolName.EndsWith("Attribute", StringComparison.InvariantCulture) && 195!kvp.Key.ContainerName.EndsWith("Attribute", StringComparison.InvariantCulture))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Microsoft.CodeAnalysis.AnalyzerUtilities (8)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\WebInputSources.cs (1)
95if ((!typeSymbol.GetBaseTypesAndThis().Any(x => x.Name.EndsWith("Controller", System.StringComparison.Ordinal))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
3232(targetMethod.Name.EndsWith("Equals", StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Microsoft.CodeAnalysis.BannedApiAnalyzers (9)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
SymbolIsBannedAnalyzer.cs (1)
61where fileName != null && fileName.StartsWith("BannedSymbols.", StringComparison.Ordinal) && fileName.EndsWith(".txt", StringComparison.Ordinal)
SymbolIsBannedAnalyzerBase.cs (2)
194if (!kvp.Key.SymbolName.EndsWith("Attribute", StringComparison.InvariantCulture) && 195!kvp.Key.ContainerName.EndsWith("Attribute", StringComparison.InvariantCulture))
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
473static (field, property) => field.Name.EndsWith(property.Name, StringComparison.OrdinalIgnoreCase),
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Microsoft.CodeAnalysis.CSharp (3)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
543if (moduleId.EndsWith(extension, StringComparison.OrdinalIgnoreCase))
Symbols\Synthesized\GeneratedNameParser.cs (2)
167typeParameterName.EndsWith(">j__TPar", StringComparison.Ordinal)) 182fieldName.EndsWith(">P", StringComparison.Ordinal))
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (2)
172if (expressionType is null || expressionType.Name.EndsWith("Builder", StringComparison.Ordinal)) 439name.EndsWith(suffix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
240if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
79if (commentText.EndsWith("*/", StringComparison.Ordinal))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
98if (!text.EndsWith(MultiLineCommentTerminator, StringComparison.Ordinal))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\InternalsVisibleToAndStrongNameTests.cs (2)
404Assert.True(((string)err.Arguments[1]).EndsWith("0x80090016)", StringComparison.Ordinal), (string)err.Arguments[1]); 1616Assert.True(((string)err.Arguments[1]).EndsWith("0x80090016)", StringComparison.Ordinal), (string)err.Arguments[1]);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (2)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (2)
167typeParameterName.EndsWith(">j__TPar", StringComparison.Ordinal)) 182fieldName.EndsWith(">P", StringComparison.Ordinal))
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (3)
257if (ch == ' ' && displayText.EndsWith(SpaceEqualsString, StringComparison.Ordinal)) 264if (ch == '=' && displayText.EndsWith(EqualsString, StringComparison.Ordinal)) 271if (ch == ':' && displayText.EndsWith(ColonString, StringComparison.Ordinal))
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
204var canTrySimplify = node.Identifier.ValueText.EndsWith("Attribute", StringComparison.Ordinal);
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (2)
172if (expressionType is null || expressionType.Name.EndsWith("Builder", StringComparison.Ordinal)) 439name.EndsWith(suffix, StringComparison.Ordinal))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\InteractiveSemanticModelTests.cs (2)
308if (exprFullText.EndsWith("/*</bind>*/", StringComparison.Ordinal)) 323if (exprFullText.EndsWith("/*</bind>*/", StringComparison.Ordinal))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\CompilationCreationTests.cs (1)
2763var path = reference.EndsWith("-resolve", StringComparison.Ordinal) ? _targetDll : reference;
Symbols\Source\MethodTests.cs (2)
1362var classBMethodM = (MethodSymbol)classB.GetMembers().Single(sym => sym.Name.EndsWith("M", StringComparison.Ordinal)); 1383var classCBaseMethodM = (MethodSymbol)classCBase.GetMembers().Single(sym => sym.Name.EndsWith("M", StringComparison.Ordinal));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
CSharpTestBase.cs (2)
2113if (exprFullText.EndsWith(EndString, StringComparison.Ordinal)) 2128if (exprFullText.EndsWith(EndString, StringComparison.Ordinal))
SemanticModelTestBase.cs (2)
71if (exprFullText.EndsWith(endComment, StringComparison.Ordinal)) 79if (exprFullText.EndsWith(endComment, StringComparison.Ordinal))
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\Worker.cs (1)
133token.Text.EndsWith("u8", StringComparison.OrdinalIgnoreCase))
Rename\CSharpRenameRewriterLanguageService.cs (1)
1065if (replacementText.EndsWith("Attribute", StringComparison.Ordinal) && replacementText.Length > 9)
Simplification\CSharpSimplificationService.Expander.cs (1)
594if (identifier.ValueText == name && name.EndsWith("Attribute", StringComparison.Ordinal))
Simplification\Simplifiers\NameSimplifier.cs (1)
501if (identifierToken.ValueText != AttributeName && identifierToken.ValueText.EndsWith(AttributeName, StringComparison.Ordinal) && !identifierToken.HasAnnotation(SimplificationHelpers.DoNotSimplifyAnnotation))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
240if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
79if (commentText.EndsWith("*/", StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
98if (!text.EndsWith(MultiLineCommentTerminator, StringComparison.Ordinal))
Microsoft.CodeAnalysis.EditorFeatures (3)
CommentSelection\AbstractToggleBlockCommentBase.cs (2)
334return _trimmedText.EndsWith(commentInfo.BlockCommentStartString, StringComparison.Ordinal) 335|| _trimmedText.EndsWith(commentInfo.BlockCommentEndString, StringComparison.Ordinal);
CommentSelection\CommentUncommentSelectionCommandHandler.cs (1)
218if (trimmedSpanText.StartsWith(info.BlockCommentStartString, StringComparison.Ordinal) && trimmedSpanText.EndsWith(info.BlockCommentEndString, StringComparison.Ordinal))
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
MetadataUtilities.cs (1)
441moduleName.EndsWith(".winmd", StringComparison.OrdinalIgnoreCase) &&
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (2)
167typeParameterName.EndsWith(">j__TPar", StringComparison.Ordinal)) 182fieldName.EndsWith(">P", StringComparison.Ordinal))
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Microsoft.CodeAnalysis.Features (8)
AddImport\PackageSourceHelper.cs (1)
47return uri.Host.EndsWith($".{NugetOrg}", StringComparison.OrdinalIgnoreCase)
EditAndContinue\Utilities\Extensions.cs (4)
121LanguageNames.CSharp => filePath.EndsWith(".g.i.cs", StringComparison.OrdinalIgnoreCase), 122LanguageNames.VisualBasic => filePath.EndsWith(".g.i.vb", StringComparison.OrdinalIgnoreCase), 127=> filePath.EndsWith(".razor.g.cs", StringComparison.OrdinalIgnoreCase) || 128filePath.EndsWith(".cshtml.g.cs", StringComparison.OrdinalIgnoreCase);
GenerateType\AbstractGenerateTypeService.cs (1)
175return state.IsAttribute && !state.NameIsVerbatim && !state.Name.EndsWith(AttributeSuffix, StringComparison.Ordinal)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
473static (field, property) => field.Name.EndsWith(property.Name, StringComparison.OrdinalIgnoreCase),
Workspace\CompileTimeSolutionProvider.cs (1)
88=> documentState.FilePath != null && documentState.FilePath.EndsWith(RazorEncConfigFileName, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Microsoft.CodeAnalysis.PublicApiAnalyzers (7)
PublicApiFile.cs (1)
29=> path.StartsWith(prefix, StringComparison.Ordinal) && path.EndsWith(DeclarePublicApiAnalyzer.Extension, StringComparison.Ordinal);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (1)
DeclarePublicAPIAnalyzerTestsBase.cs (1)
288if (!editorconfigText.EndsWith("true", StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.Remote.Workspaces (2)
BrokeredServiceDescriptors.cs (1)
26name => CommonMethodNameTransforms.CamelCase(name.EndsWith(AsyncSuffix, StringComparison.OrdinalIgnoreCase) ? name.Substring(0, name.Length - AsyncSuffix.Length) : name);
ServiceDescriptors.cs (1)
118Contract.ThrowIfFalse(interfaceName.EndsWith(InterfaceNameSuffix, StringComparison.Ordinal));
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
AbstractResxGenerator.cs (1)
38var resourceFiles = context.AdditionalTextsProvider.Where(static file => file.Path.EndsWith(".resx", StringComparison.OrdinalIgnoreCase));
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Microsoft.CodeAnalysis.Scripting (2)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
217if (fileName.EndsWith(".ni", StringComparison.OrdinalIgnoreCase))
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
83if (publicKeyToken != null && !assemblyDir.Name.EndsWith(publicKeyToken, StringComparison.Ordinal))
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
1775return fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 1776fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase);
Platform\Custom\MetadataSignatureHelper.cs (1)
35if (sb.ToString().EndsWith(", ", StringComparison.Ordinal))
Syntax\NodeHelpers.cs (1)
54return kind.EndsWith("Keyword", StringComparison.Ordinal) || (kind.Contains("Identifier") && n.Parent != null && !n.Parent.GetKind().Contains("Name"));
Microsoft.CodeAnalysis.UnitTests (1)
AnalyzerAssemblyLoaderTests.cs (1)
436if (path.EndsWith(".resources.dll", StringComparison.Ordinal))
Microsoft.CodeAnalysis.Workspaces (8)
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
132if (assemblyName.CultureInfo is not null && simpleName.EndsWith(".resources", SimpleNameComparer.Comparison))
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Workspace\ProjectSystem\IFileChangeWatcher.cs (1)
64if (watchedDirectory.ExtensionFilters.Length == 0 || watchedDirectory.ExtensionFilters.Any(filter => filePath.EndsWith(filter, stringComparison)))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
MSBuildWorkspaceTestBase.cs (1)
147var solutionFileName = files.First(t => t.fileName.EndsWith(".sln", StringComparison.OrdinalIgnoreCase)).fileName;
VisualStudioMSBuildWorkspaceTests.cs (3)
779Assert.DoesNotContain(documents, d => d.Name.EndsWith(".xaml", StringComparison.OrdinalIgnoreCase)); 2315Assert.True(analyzerReference.FullPath.EndsWith("CSharpProject.dll", StringComparison.OrdinalIgnoreCase)); 2467if (fileName.EndsWith("proj", StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
MEF\TestComposition.cs (2)
199name.EndsWith(".Tests", StringComparison.OrdinalIgnoreCase) || 200name.EndsWith(".UnitTests", StringComparison.OrdinalIgnoreCase) ||
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
UtilityTest\NameGeneratorTests.cs (6)
20Assert.True(a.EndsWith(".txt", StringComparison.Ordinal)); 21Assert.False(a.EndsWith("..txt", StringComparison.Ordinal)); 25Assert.True(b.EndsWith(".txt", StringComparison.Ordinal)); 26Assert.False(b.EndsWith("..txt", StringComparison.Ordinal)); 30Assert.True(c.EndsWith(".\u0640.txt", StringComparison.Ordinal)); 31Assert.False(c.EndsWith("..txt", StringComparison.Ordinal));
Microsoft.DotNet.Build.Tasks.Feed (6)
src\AzureDevOpsNugetFeedAssetPublisher.cs (1)
68if (!file.EndsWith(GeneralUtils.PackageSuffix, StringComparison.OrdinalIgnoreCase))
src\common\GeneralUtils.cs (3)
231if (assetId.EndsWith(SymbolPackageSuffix, StringComparison.OrdinalIgnoreCase)) 251return name.EndsWith(SymbolPackageSuffix, StringComparison.OrdinalIgnoreCase) || 252name.EndsWith(SnupkgPackageSuffix, StringComparison.OrdinalIgnoreCase);
src\common\LatestLinksManager.cs (1)
105if (!feedBaseUrl.EndsWith("/", StringComparison.OrdinalIgnoreCase))
src\PublishBuildToMaestro.cs (1)
637&& repoName.EndsWith("-Trusted", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Tasks.Installers (1)
src\StabilizeWixFileId.cs (1)
73?.EndsWith(file.ItemSpec, StringComparison.OrdinalIgnoreCase) == true)
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetUtils.cs (1)
23return dirName == "/" && fileName.EndsWith(".nuspec", StringComparison.OrdinalIgnoreCase);
Microsoft.DotNet.SharedFramework.Sdk (4)
src\CreateFrameworkListFile.cs (2)
92.EndsWith(".resources.dll", StringComparison.OrdinalIgnoreCase) 96(f.Filename.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) || f.IsNative || f.IsPgoData))
src\ValidateFileVersions.cs (2)
76p.Key.EndsWith(".exe", StringComparison.OrdinalIgnoreCase) || 77p.Key.EndsWith(".dll", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.SignCheckLibrary (1)
Verification\Jar\JarIndividualEntry.cs (1)
74string digestAttributeKey = Attributes.Keys.FirstOrDefault(key => key.EndsWith("-Digest", StringComparison.OrdinalIgnoreCase));
Microsoft.DotNet.SignTool (4)
src\Configuration.cs (1)
327extension = _fileExtensionSignInfo.OrderByDescending(o => o.Key.Length).FirstOrDefault(f => file.FileName.EndsWith(f.Key, StringComparison.OrdinalIgnoreCase)).Key ?? extension;
src\FileSignInfo.cs (1)
52=> path.EndsWith(".symbols.nupkg", StringComparison.OrdinalIgnoreCase);
src\SignInfo.cs (1)
52public bool ShouldLocallyStrongNameSign => ShouldStrongName && StrongName.EndsWith(".snk", StringComparison.OrdinalIgnoreCase);
src\WixPackInfo.cs (1)
42return Path.GetFileName(path).EndsWith(WixPackExtension, StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionFactory.cs (1)
724name.EndsWith(AsyncSuffix, StringComparison.Ordinal) &&
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Storage\AzureStorageResponseCache.cs (1)
206if (pathItem.Name.EndsWith($"/{EntryFileName}", StringComparison.Ordinal))
Microsoft.Extensions.ApiDescription.Client (1)
GetOpenApiReferenceMetadata.cs (1)
87var isTypeScript = codeGenerator.EndsWith(
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
GetDocumentTests.cs (1)
122var documentNames = Directory.GetFiles(outputPath.FullName).Where(documentName => documentName.EndsWith(".json", StringComparison.Ordinal)).ToList();
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
46=> value.EndsWith(Environment.NewLine, StringComparison.Ordinal)
Microsoft.Extensions.FileSystemGlobbing (1)
Internal\PathSegments\WildcardPathSegment.cs (1)
56if (!value.EndsWith(wildcard.EndsWith, _comparisonType))
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\MediaTypeCollectionExtensions.cs (2)
35&& (sample.EndsWith(Json, StringComparison.OrdinalIgnoreCase) 36|| sample.EndsWith(Xml, StringComparison.OrdinalIgnoreCase)))
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
157return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
157return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal))
Microsoft.Gen.ComplianceReports (1)
Parser.cs (1)
258if (name.EndsWith("Attribute", StringComparison.Ordinal))
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
206return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.ComplianceReports\Parser.cs (1)
258if (name.EndsWith("Attribute", StringComparison.Ordinal))
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
206return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
157return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
157return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
157return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
157return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
Microsoft.Maui (3)
Converters\FlexEnumsConverters.cs (1)
273 if (!strValue.EndsWith("%", StringComparison.OrdinalIgnoreCase))
Fonts\FontFile.cs (1)
81 if (fontFamilyName.EndsWith(extension, StringComparison.OrdinalIgnoreCase))
Fonts\FontRegistrar.cs (1)
108 if (name.EndsWith(searchName, StringComparison.CurrentCultureIgnoreCase))
Microsoft.Maui.Controls (3)
BindingExpressionHelper.cs (1)
34 if (stringValue.EndsWith(CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator, StringComparison.Ordinal) && DecimalTypes.Contains(convertTo))
GridLengthTypeConverter.cs (1)
30 if (strValue.EndsWith("*", StringComparison.Ordinal) && double.TryParse(strValue.Substring(0, strValue.Length - 1), NumberStyles.Number, CultureInfo.InvariantCulture, out var length))
Visuals\VisualTypeConverter.cs (1)
125 if (name.EndsWith("Visual", StringComparison.OrdinalIgnoreCase))
Microsoft.Maui.Controls.Build.Tasks (8)
BindablePropertyReferenceExtensions.cs (2)
14 if (!bpRef.Name.EndsWith("Property", StringComparison.InvariantCulture)) 36 var bpName = bpRef.Name.EndsWith("Property", StringComparison.Ordinal) ? bpRef.Name.Substring(0, bpRef.Name.Length - 8) : bpRef.Name;
CompiledConverters\FlexBasisTypeConverter.cs (1)
27 if (value.EndsWith("%", StringComparison.OrdinalIgnoreCase)
CompiledConverters\GridLengthTypeConverter.cs (1)
32 if (value.EndsWith("*", StringComparison.OrdinalIgnoreCase) && double.TryParse(value.Substring(0, value.Length - 1), NumberStyles.Number, CultureInfo.InvariantCulture, out var length))
SetResourcesVisitor.cs (1)
44 if ((propertyName.LocalName == "Resources" || propertyName.LocalName.EndsWith(".Resources", StringComparison.Ordinal)))
TypeReferenceExtensions.cs (2)
29 var xname = x.FullName.EndsWith("&", StringComparison.InvariantCulture) ? x.FullName.Substring(0, x.FullName.Length - 1) : x.FullName; 30 var yname = y.FullName.EndsWith("&", StringComparison.InvariantCulture) ? y.FullName.Substring(0, y.FullName.Length - 1) : y.FullName;
XamlTask.cs (1)
73 if (!resource.Name.EndsWith(".xaml", StringComparison.InvariantCulture))
Microsoft.Maui.Controls.DesignTools (2)
FlexEnumDesignTypeConverters.cs (1)
115 if (strValue.EndsWith("%", StringComparison.OrdinalIgnoreCase) && float.TryParse(strValue.Substring(0, strValue.Length - 1), NumberStyles.Number, CultureInfo.InvariantCulture, out float relflex))
GridLengthDesignTypeConverter.cs (1)
29 if (value.EndsWith("*", StringComparison.Ordinal) && double.TryParse(value.Substring(0, value.Length - 1), NumberStyles.Number, CultureInfo.InvariantCulture, out var len))
Microsoft.Maui.Controls.SourceGen (1)
src\Controls\src\Xaml\XmlTypeXamlExtensions.cs (1)
65 if (expandToExtension && elementName != "DataTemplate" && !elementName.EndsWith("Extension", StringComparison.Ordinal))
Microsoft.Maui.Controls.Xaml (5)
FillResourceDictionariesVisitor.cs (1)
49 propertyName.LocalName.EndsWith(".Resources", StringComparison.Ordinal)) && value is ResourceDictionary)
XamlLoader.cs (3)
293 if (!resource.EndsWith(".xaml", StringComparison.OrdinalIgnoreCase)) 304 if (resource.EndsWith(".xaml", StringComparison.OrdinalIgnoreCase)) 332 if (resource.EndsWith("." + filename, StringComparison.OrdinalIgnoreCase) ||
XmlTypeXamlExtensions.cs (1)
65 if (expandToExtension && elementName != "DataTemplate" && !elementName.EndsWith("Extension", StringComparison.Ordinal))
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\HtmlInlineRenderer.cs (1)
16 && !tag.EndsWith("/>", StringComparison.Ordinal))
Microsoft.ML.AutoML (1)
ColumnInference\PurposeInference.cs (1)
138if (spanStr.EndsWith(ext, StringComparison.OrdinalIgnoreCase))
Microsoft.ML.AutoML.SourceGenerator (5)
Template\EstimatorType.cs (1)
168if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Template\SearchSpace.cs (1)
185if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Template\SweepableEstimator.cs (1)
187if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Template\SweepableEstimator_T_.cs (1)
192if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Template\SweepableEstimatorFactory.cs (1)
163if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Microsoft.ML.CodeGenerator (10)
Templates\Azure\Console\AzureModelBuilder.cs (1)
262if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Templates\Azure\Model\AzureImageModelOutputClass.cs (1)
203if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (1)
203if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Templates\Console\ConsumeModel.cs (1)
214if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Templates\Console\ModelBuilder.cs (1)
579if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Templates\Console\ModelInputClass.cs (1)
177if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Templates\Console\ModelOutputClass.cs (1)
220if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Templates\Console\ModelProject.cs (1)
209if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Templates\Console\PredictProgram.cs (1)
236if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Templates\Console\PredictProject.cs (1)
214if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture))
Microsoft.ML.InternalCodeAnalyzer (1)
NameFixProvider.cs (1)
65if (docName.Length - 3 == originalName.Length && docName.EndsWith(".cs", StringComparison.OrdinalIgnoreCase)
Microsoft.ML.Sweeper (2)
ConfigRunner.cs (2)
104if (Exe == null || Exe.EndsWith("maml", StringComparison.OrdinalIgnoreCase) || 105Exe.EndsWith("maml.exe", StringComparison.OrdinalIgnoreCase))
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\FileIO\FileSystem.vb (4)
92(file.EndsWith(IO.Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase) Or 93file.EndsWith(IO.Path.AltDirectorySeparatorChar, StringComparison.OrdinalIgnoreCase)) Then 852If path.EndsWith(IO.Path.DirectorySeparatorChar, StringComparison.Ordinal) Or 853path.EndsWith(IO.Path.AltDirectorySeparatorChar, StringComparison.Ordinal) Then
Microsoft.VisualStudio.LanguageServices (6)
GenerateType\GenerateTypeDialogViewModel.cs (5)
234if (string.IsNullOrWhiteSpace(trimmedFileName) || trimmedFileName.EndsWith(@"\", StringComparison.Ordinal)) 635if (!string.IsNullOrWhiteSpace(currentFileName) && !currentFileName.EndsWith("\\", StringComparison.Ordinal)) 654if (currentFileName.EndsWith(desiredFileExtension, StringComparison.OrdinalIgnoreCase)) 661if (currentFileName.EndsWith(undesiredFileExtension, StringComparison.OrdinalIgnoreCase)) 704_typeName = generateTypeDialogOptions.IsAttribute && !typeName.EndsWith(attributeSuffix, StringComparison.Ordinal) ? typeName + attributeSuffix : typeName;
Venus\ContainedLanguageCodeSupport.cs (1)
241if (!newMemberText.EndsWith(Environment.NewLine, StringComparison.Ordinal))
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (2)
142if (name.EndsWith("Keyword", StringComparison.Ordinal)) 146else if (name.EndsWith("Token", StringComparison.Ordinal))
PrepareTests (1)
MinimizeUtil.cs (1)
85if (fileName.EndsWith(".dll", StringComparison.Ordinal) && TryGetMvid(sourceFilePath, out var mvid))
PresentationBuildTasks (6)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (1)
264if (!_outputDir.EndsWith(string.Empty + Path.DirectorySeparatorChar, StringComparison.Ordinal))
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
243if (!_outputPath.EndsWith(string.Empty + Path.DirectorySeparatorChar, StringComparison.Ordinal))
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
251if (!_outputPath.EndsWith((Path.DirectorySeparatorChar).ToString(), StringComparison.Ordinal))
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
472if (!TargetPath.EndsWith(string.Empty + Path.DirectorySeparatorChar, StringComparison.Ordinal))
MS\Internal\Shared\SourceFileInfo.cs (1)
43if (!string.IsNullOrEmpty(file.Path) && file.Path.ToUpperInvariant().EndsWith(XAML, StringComparison.Ordinal))
MS\Internal\Tasks\TaskHelper.cs (1)
210if (message != null && !message.EndsWith(".", StringComparison.Ordinal))
PresentationCore (7)
MS\Internal\FontCache\FontResourceCache.cs (1)
72Debug.Assert(escapedPath.EndsWith(FakeFileName, StringComparison.OrdinalIgnoreCase));
System\Windows\Input\Cursor.cs (2)
55(cursorFile.EndsWith(".cur", StringComparison.OrdinalIgnoreCase) || 56cursorFile.EndsWith(".ani", StringComparison.OrdinalIgnoreCase)))
System\Windows\Input\CursorConverter.cs (2)
170if (text.EndsWith(".cur", StringComparison.OrdinalIgnoreCase) || text.EndsWith(".ani", StringComparison.OrdinalIgnoreCase))
System\Windows\Navigation\BaseUriHelper.cs (2)
259if (firstSegment.EndsWith(COMPONENT, StringComparison.OrdinalIgnoreCase)) 316if (component.EndsWith(COMPONENT, StringComparison.OrdinalIgnoreCase))
PresentationFramework (13)
MS\Internal\TraceData.cs (1)
268if (name.EndsWith(suffix, StringComparison.Ordinal))
System\Windows\Documents\FixedTextBuilder.cs (1)
1664if (addSpace && run.Text.Length>0 && !run.Text.EndsWith(" ", StringComparison.Ordinal) && !IsHyphen(run.Text[run.Text.Length - 1]))
System\Windows\Documents\TextRangeBase.cs (1)
1350bool pastedFragmentEndsWithNewLine = textData.EndsWith("\n", StringComparison.Ordinal);
System\Windows\Documents\WpfPayload.cs (5)
535if (imageUriString.EndsWith(ImageBmpFileExtension, StringComparison.OrdinalIgnoreCase)) 539else if (imageUriString.EndsWith(ImageGifFileExtension, StringComparison.OrdinalIgnoreCase)) 543else if (imageUriString.EndsWith(ImageJpegFileExtension, StringComparison.OrdinalIgnoreCase) || imageUriString.EndsWith(ImageJpgFileExtension, StringComparison.OrdinalIgnoreCase)) 547else if (imageUriString.EndsWith(ImageTiffFileExtension, StringComparison.OrdinalIgnoreCase))
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
321if (typeName.EndsWith("Extension", StringComparison.Ordinal))
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
472name.EndsWith("Extension", StringComparison.Ordinal)) 1040name.EndsWith("Extension", StringComparison.Ordinal))
System\Windows\ThemeManager.cs (2)
376if (sourceString.EndsWith(FluentLightDictionary, StringComparison.OrdinalIgnoreCase)) 380else if (sourceString.EndsWith(FluentDarkDictionary, StringComparison.OrdinalIgnoreCase))
Roslyn.Diagnostics.Analyzers (8)
AbstractRunIterations`1.cs (2)
91if (name.EndsWith("Fact", StringComparison.Ordinal)) 98else if (name.EndsWith("FactAttribute", StringComparison.Ordinal))
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Roslyn.Diagnostics.Analyzers.UnitTests (1)
RelaxTestNamingSuppressorTests.cs (1)
123if (method.Name.EndsWith("Async", StringComparison.Ordinal))
Roslyn.Diagnostics.CSharp.Analyzers (4)
CSharpAvoidOptSuffixForNullableEnableCode.cs (1)
69if (!identifier.Text.EndsWith(OptSuffix, StringComparison.Ordinal) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
240if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
79if (commentText.EndsWith("*/", StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
98if (!text.EndsWith(MultiLineCommentTerminator, StringComparison.Ordinal))
Roslyn.VisualStudio.Next.UnitTests (1)
Services\PerformanceTrackerServiceTests.cs (1)
260return assembly.GetManifestResourceNames().Where(n => n.EndsWith(convert, StringComparison.OrdinalIgnoreCase)).First();
RoutingWebSite (1)
EndsWithStringRouteConstraint.cs (1)
26var endsWith = valueString.EndsWith(_endsWith, StringComparison.OrdinalIgnoreCase);
Sockets.BindTests (3)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (3)
561log.Message.EndsWith(expectedMessage, StringComparison.Ordinal))); 596log.Message.EndsWith(expectedMessage, StringComparison.Ordinal))); 989log.Message.EndsWith(CoreStrings.FormatEndpointAlreadyInUse(thisAddressString), StringComparison.Ordinal)));
Swaggatherer (1)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
System.Data.Common (1)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
171if (!quotedString.EndsWith(quoteSuffix!, StringComparison.Ordinal))
System.Data.Odbc (1)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
171if (!quotedString.EndsWith(quoteSuffix!, StringComparison.Ordinal))
System.Diagnostics.FileVersionInfo (2)
System\Diagnostics\FileVersionInfo.Unix.cs (2)
84if (!assemblyName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) && 85!assemblyName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
System.IO.Packaging (4)
System\IO\Packaging\PackUriHelper.cs (2)
776if (!NormalizedPartUriString.EndsWith(RelationshipPartUpperCaseExtension, StringComparison.Ordinal)) 815if ((segments[segments.Length - 1]).EndsWith(RelsrelsUpperCaseExtension, StringComparison.Ordinal))
System\IO\Packaging\ZipPackage.cs (1)
523if (zipItemName.EndsWith(ForwardSlashString, StringComparison.Ordinal))
System\IO\Packaging\ZipPackagePartPiece.cs (1)
81else if (path.Substring(0, searchPosition).EndsWith(PartPieceLastExtension, StringComparison.OrdinalIgnoreCase))
System.IO.Ports (4)
System\IO\Ports\SerialPort.Unix.cs (4)
124if (!name.EndsWith(".init", StringComparison.Ordinal) && !name.EndsWith(".lock", StringComparison.Ordinal)) 132if (!name.EndsWith(".init", StringComparison.Ordinal) && !name.EndsWith(".lock", StringComparison.Ordinal))
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (1)
142if (algorithm.EndsWith("sess", StringComparison.OrdinalIgnoreCase))
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
269else if (input.Host.EndsWith(s, StringComparison.OrdinalIgnoreCase))
System.Net.Ping (1)
src\libraries\Common\src\System\Net\NetworkInformation\UnixCommandLinePing.cs (1)
51if (linkInfo?.Name.EndsWith("busybox", StringComparison.Ordinal) == true)
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (1)
59if (message.EndsWith(Environment.NewLineConst, StringComparison.Ordinal))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (2)
256if (activityName.EndsWith(EventSource.ActivityStartSuffix, StringComparison.Ordinal)) 260else if (activityName.EndsWith(EventSource.ActivityStopSuffix, StringComparison.Ordinal))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (7)
2467if (eventName.EndsWith(ActivityStartSuffix, StringComparison.Ordinal)) 2471else if (eventName.EndsWith(ActivityStopSuffix, StringComparison.Ordinal)) 3104attributeType.Namespace!.EndsWith("Diagnostics.Tracing", StringComparison.Ordinal) && 3105reflectedAttributeType.Namespace!.EndsWith("Diagnostics.Tracing", StringComparison.Ordinal); 3325if (eventName.EndsWith(ActivityStartSuffix, StringComparison.Ordinal)) 3347startEventMetadata.Name.EndsWith(ActivityStartSuffix, StringComparison.Ordinal) && 3348eventName.EndsWith(ActivityStopSuffix, StringComparison.Ordinal) &&
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
753if (assemblyName.Name == null || !assemblyName.Name.EndsWith(SatelliteSuffix, StringComparison.Ordinal))
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
119if (startupHookPart.EndsWith(DisallowedSimpleAssemblyNameSuffix, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
514return EndsWith(value, StringComparison.CurrentCulture);
System.Private.CoreLib.Generators (2)
NativeRuntimeEventSourceGenerator.cs (2)
21IncrementalValuesProvider<AdditionalText> manifestFiles = context.AdditionalTextsProvider.Where(f => f.Path.EndsWith(".man", StringComparison.OrdinalIgnoreCase)); 22IncrementalValuesProvider<AdditionalText> inclusionFiles = context.AdditionalTextsProvider.Where(f => f.Path.EndsWith(".lst", StringComparison.OrdinalIgnoreCase));
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (1)
151!dateTimeValue.EndsWith(JsonGlobals.DateTimeEndGuardReader, StringComparison.Ordinal))
System.Private.Windows.Core.TestUtilities (1)
DebuggerAttributes.cs (1)
153bool noQuotes = reference.EndsWith(",nq", StringComparison.Ordinal);
System.Private.Xml (5)
System\Xml\Serialization\CodeIdentifier.cs (1)
260while (identifier.EndsWith("[]", StringComparison.Ordinal))
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1423if (member.Name.EndsWith("Specified", StringComparison.Ordinal)) 1472if (member.Name.EndsWith("Specified", StringComparison.Ordinal))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
2744if (source.EndsWith(".Add(", StringComparison.Ordinal)) 2814if (source.EndsWith(".Add(", StringComparison.Ordinal))
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
558if (prev.EndsWith(entry.Key, StringComparison.Ordinal) && !BlobUtilities.IsLowSurrogateChar(entry.Key[0]))
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\RuntimeTypeInfo.GetMember.cs (1)
28bool prefixSearch = optionalNameOrPrefix != null && optionalNameOrPrefix.EndsWith("*", StringComparison.Ordinal);
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
105if (!baseAddress.AbsolutePath.EndsWith("/", StringComparison.Ordinal))
System.ServiceModel.NetNamedPipe (2)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (2)
409if (!path.EndsWith("/", StringComparison.Ordinal)) 416if (path.EndsWith("/", StringComparison.Ordinal))
System.ServiceModel.Primitives (4)
Internals\System\Xml\XmlMtomReader.cs (1)
319if (startUri.EndsWith(">", StringComparison.Ordinal))
System\ServiceModel\Description\ServiceReflector.cs (3)
39if (baseUri.EndsWith("/", StringComparison.Ordinal)) 127if (!contractName.Namespace.EndsWith("/", StringComparison.Ordinal)) 969else if (isTask && method.Name.EndsWith(AsyncMethodNameSuffix, StringComparison.Ordinal))
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
157return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (1)
231if (!fileName.EndsWith(".dll", StringComparison.Ordinal))
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
157return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (2)
197if (goodString.EndsWith(_unitStrings[i], StringComparison.Ordinal)) 214if (goodString.EndsWith(_pixelUnitStrings[i], StringComparison.Ordinal))
System.Windows.Forms (3)
System\Resources\ResxFileRef.Converter.cs (1)
137if (toCreate == typeof(Bitmap) && fileName.EndsWith(".ico", StringComparison.Ordinal))
System\Windows\Forms\DataBinding\BindingSource.cs (2)
984if (current.EndsWith(" ASC", StringComparison.InvariantCultureIgnoreCase)) 988else if (current.EndsWith(" DESC", StringComparison.InvariantCultureIgnoreCase))
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (1)
30if (context.AdditionalFile.Path.EndsWith(".manifest", StringComparison.OrdinalIgnoreCase))
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerHost.cs (1)
566if (oldName is not null && className.EndsWith(oldName, StringComparison.Ordinal)
System\Windows\Forms\Design\ImageListImageEditor.cs (1)
75ImageListImage image = LoadImageFromStream(file, name.EndsWith(".ico", StringComparison.Ordinal));
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\EmbeddedResourceTests.cs (1)
85new(ExpectedIconNamesString.Split(Environment.NewLine).Where(item => !item.EndsWith(".bmp", StringComparison.Ordinal)));
System.Xaml (2)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
443Debug.Assert(!assemblyPath.EndsWith(string.Empty + Path.DirectorySeparatorChar, StringComparison.Ordinal), "the assembly path should be a full file path containing file extension");
System\Xaml\MS\Impl\KnownStrings.cs (1)
89return src.EndsWith(target, StringComparison.Ordinal);
Templates.Blazor.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
168Assert.True(anchor.PathName.EndsWith(expectedLink, StringComparison.Ordinal), $"Expected next link on {page.Url} to be {expectedLink} but it was {anchor.PathName}: {html.Source.Text}");
src\ProjectTemplates\Shared\Project.cs (1)
271var file = Directory.EnumerateFiles(fullPath).Where(f => f.EndsWith($"{migration}.cs", StringComparison.Ordinal)).FirstOrDefault();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
168Assert.True(anchor.PathName.EndsWith(expectedLink, StringComparison.Ordinal), $"Expected next link on {page.Url} to be {expectedLink} but it was {anchor.PathName}: {html.Source.Text}");
src\ProjectTemplates\Shared\Project.cs (1)
271var file = Directory.EnumerateFiles(fullPath).Where(f => f.EndsWith($"{migration}.cs", StringComparison.Ordinal)).FirstOrDefault();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
168Assert.True(anchor.PathName.EndsWith(expectedLink, StringComparison.Ordinal), $"Expected next link on {page.Url} to be {expectedLink} but it was {anchor.PathName}: {html.Source.Text}");
src\ProjectTemplates\Shared\Project.cs (1)
271var file = Directory.EnumerateFiles(fullPath).Where(f => f.EndsWith($"{migration}.cs", StringComparison.Ordinal)).FirstOrDefault();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
Templates.Mvc.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
168Assert.True(anchor.PathName.EndsWith(expectedLink, StringComparison.Ordinal), $"Expected next link on {page.Url} to be {expectedLink} but it was {anchor.PathName}: {html.Source.Text}");
src\ProjectTemplates\Shared\Project.cs (1)
271var file = Directory.EnumerateFiles(fullPath).Where(f => f.EndsWith($"{migration}.cs", StringComparison.Ordinal)).FirstOrDefault();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
Templates.Tests (10)
BaselineTest.cs (7)
91if (relativePath.EndsWith(".csproj", StringComparison.Ordinal) || 92relativePath.EndsWith(".fsproj", StringComparison.Ordinal) || 93relativePath.EndsWith(".props", StringComparison.Ordinal) || 94relativePath.EndsWith(".sln", StringComparison.Ordinal) || 95relativePath.EndsWith(".targets", StringComparison.Ordinal) || 105if (relativePath.EndsWith(".cs", StringComparison.Ordinal) && !relativePath.EndsWith("Extensions.cs", StringComparison.Ordinal))
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
168Assert.True(anchor.PathName.EndsWith(expectedLink, StringComparison.Ordinal), $"Expected next link on {page.Url} to be {expectedLink} but it was {anchor.PathName}: {html.Source.Text}");
src\ProjectTemplates\Shared\Project.cs (1)
271var file = Directory.EnumerateFiles(fullPath).Where(f => f.EndsWith($"{migration}.cs", StringComparison.Ordinal)).FirstOrDefault();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
Test.Utilities (6)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Text.Analyzers (9)
EnumsShouldHavePluralNames.cs (2)
85if (symbol.Name.EndsWith("i", StringComparison.OrdinalIgnoreCase) || symbol.Name.EndsWith("ae", StringComparison.OrdinalIgnoreCase))
IdentifiersShouldBeSpelledCorrectly.cs (1)
272var isXml = additionalText.Path.EndsWith(".xml", StringComparison.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
165return name.Length > AttributeSuffix.Length && name.EndsWith(AttributeSuffix, comparison);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (4)
75if (fileNameWithoutExtension.EndsWith(".designer", StringComparison.OrdinalIgnoreCase) || 76fileNameWithoutExtension.EndsWith(".generated", StringComparison.OrdinalIgnoreCase) || 77fileNameWithoutExtension.EndsWith(".g", StringComparison.OrdinalIgnoreCase) || 78fileNameWithoutExtension.EndsWith(".g.i", StringComparison.OrdinalIgnoreCase))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
151if (endDelimiter.Length > 0 && !tokenText.EndsWith(endDelimiter, StringComparison.Ordinal))
Wasm.Performance.ConsoleHost (1)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
38else if (part.StartsWith("<", StringComparison.Ordinal) && part.EndsWith(">", StringComparison.Ordinal))
XmlFileLogger (1)
ItemGroupParser.cs (1)
58if (line.EndsWith("=", StringComparison.Ordinal))
xunit.assert (1)
StringAsserts.cs (1)
628 if (expectedEndString == null || actualString == null || !actualString.EndsWith(expectedEndString, comparisonType))
xunit.console (3)
CommandLine.cs (2)
108return fileName.EndsWith(".config", StringComparison.OrdinalIgnoreCase) 109|| fileName.EndsWith(".json", StringComparison.OrdinalIgnoreCase);
ConsoleRunner.cs (1)
61if (!defaultDirectory.EndsWith(new string(new[] { Path.DirectorySeparatorChar }), StringComparison.Ordinal))