223 references to EndsWith
Aspire.Dashboard (4)
Components\Controls\SummaryDetailsView.razor.cs (2)
306if (panel1SizeString is null || !panel1SizeString.EndsWith("fr") 307|| panel2SizeString is null || !panel2SizeString.EndsWith("fr"))
Model\DefaultInstrumentUnitResolver.cs (2)
36if (instrument.Name.EndsWith(".count")) 40else if (instrument.Name.EndsWith(".length"))
Aspire.Hosting (1)
Publishing\ManifestPublisher.cs (1)
35if (!_options.Value.OutputPath.EndsWith(".json"))
Aspire.Hosting.Orleans (1)
ProviderConfiguration.cs (1)
25var providerType = resourceType.EndsWith(resource) ? resourceType[..^resource.Length] : resourceType;
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
245Assert.Single(urls, u => u.DisplayText == "Qdrant Dashboard" && u.Url.EndsWith("/dashboard"));
Aspire.Hosting.Testing.Tests (1)
TestingBuilderTests.cs (1)
53var appHostType = appHostAssembly.GetTypes().FirstOrDefault(t => t.Name.EndsWith("_AppHost"))
Aspire.Hosting.Tests (9)
WithUrlsTests.cs (9)
205u => Assert.True(u.Url.EndsWith("/test") && u.DisplayText == "Example") 253Assert.Single(urls, u => u.Url.EndsWith("/sub-path") && u.Endpoint?.EndpointName == "http"); 386s => Assert.True(s.Name == httpEndpoint.EndpointName && s.Url.EndsWith("/one") && s.DisplayProperties.DisplayName == "Example 1"), 387s => Assert.True(s.Name == httpEndpoint.EndpointName && s.Url.EndsWith("/two") && s.DisplayProperties.DisplayName == "Example 2") 732Assert.True(endpointUrl.Url.StartsWith("http://localhost") && endpointUrl.Url.EndsWith("/sub-path")); 759var endpointUrl = projectA.Resource.Annotations.OfType<ResourceUrlAnnotation>().FirstOrDefault(u => u.Endpoint?.EndpointName == "test" && u.Url.EndsWith("/sub-path")); 762Assert.True(endpointUrl.Url.StartsWith("http://localhost") && endpointUrl.Url.EndsWith("/sub-path")); 789var endpointUrl = projectA.Resource.Annotations.OfType<ResourceUrlAnnotation>().FirstOrDefault(u => u.Endpoint?.EndpointName == "test" && u.Url.EndsWith("/sub-path")); 792Assert.True(endpointUrl.Url.StartsWith("http://localhost") && endpointUrl.Url.EndsWith("/sub-path"));
BoundTreeGenerator (2)
BoundNodeClassWriter.cs (2)
1053private static bool TypeIsSymbol(string type) => type.TrimEnd('?').EndsWith("Symbol"); 1398else if (elementType.TrimEnd('?') == "MethodSymbol" && field.Name.EndsWith("LocalFunctions"))
BuildActionTelemetryTable (1)
Program.cs (1)
299if (part.EndsWith(suffix))
BuildBoss (4)
ProjectData.cs (2)
24internal bool IsUnitTestProject => Path.GetFileNameWithoutExtension(FilePath).EndsWith(".UnitTests"); 25internal bool IsIntegrationTestProject => Path.GetFileNameWithoutExtension(FilePath).EndsWith(".IntegrationTests");
ProjectUtil.cs (2)
26internal bool IsUnitTestProject => Path.GetFileNameWithoutExtension(Key.FilePath).EndsWith(".UnitTests"); 27internal bool IsIntegrationTestProject => Path.GetFileNameWithoutExtension(Key.FilePath).EndsWith(".IntegrationTests");
ConfigurationSchemaGenerator (2)
ConfigSchemaEmitter.cs (1)
689if (excludedPath.StartsWith(currentPath) && excludedPath.EndsWith(property.ConfigurationKeyName))
ConfigSchemaGenerator.cs (1)
35if (!schema.EndsWith(Environment.NewLine))
CSharpSyntaxGenerator (1)
Grammar\GrammarGenerator.cs (1)
367s_normalizationRegex.Replace(name.EndsWith("Syntax") ? name[..^"Syntax".Length] : name, "_").ToLower(),
dotnet-svcutil-lib.Tests (4)
TestInit.cs (4)
363.Where(f => !PathHelper.PathHasFolder(f, excludeDirs, this_TestCaseBaselinesDir)).Where(f => !f.ToLower().EndsWith("nuget.config")).ToList(); 365var nonRefbaselineFiles = baselineFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList(); 373.Where(f => !f.ToLower().EndsWith("nuget.config")) 377var nonRefGeneratedFiles = generatedFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList();
GenerateDocumentationAndConfigFiles (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
illink (2)
ILLink.RoslynAnalyzer (2)
RequiresAssemblyFilesAnalyzer.cs (1)
145message = $" {message}{(message.TrimEnd().EndsWith(".") ? "" : ".")}";
src\tools\illink\src\ILLink.Shared\MessageFormat.cs (1)
14return $" {message}{(message!.TrimEnd().EndsWith(".") ? "" : ".")}";
ILLink.Tasks (1)
CreateRuntimeRootDescriptorFile.cs (1)
529if (classNamespace.EndsWith(suffixToRemove))
InteractiveHost.UnitTests (1)
InteractiveHostCoreTests.cs (1)
40Assert.True(errorOutput.EndsWith(string.Format(InteractiveHostResources.Hosting_process_exited_with_exit_code_0, process!.ExitCode)));
IOperationGenerator (1)
IOperationClassWriter.Verifier.cs (1)
24if (!abstractNode.Name.EndsWith("Operation"))
Metrics (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Metrics.Legacy (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
530return diagnostics.Where(d => d.Location.SourceTree!.FilePath.EndsWith(document.Name));
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
531return diagnostics.Where(d => d.Location.SourceTree!.FilePath.EndsWith(document.Name));
Microsoft.Arcade.Common (2)
NupkgInfo.cs (1)
20public static bool IsSymbolPackagePath(string path) => path.EndsWith(".symbols.nupkg");
NupkgInfoFactory.cs (1)
35if (entry.Name.EndsWith(".nuspec"))
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
167 if (matchPathSuffix.EndsWith(".bundle.scp.css"))
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
167 if (matchPathSuffix.EndsWith(".bundle.scp.css"))
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
167 if (matchPathSuffix.EndsWith(".bundle.scp.css"))
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.cs (2)
474x.Key.StartsWith(HttpLoggingTagNames.RequestHeaderPrefix) && !x.Key.EndsWith(NormalizedRequestHeader)); 477x.Key.StartsWith(HttpLoggingTagNames.ResponseHeaderPrefix) && !x.Key.EndsWith(NormalizedResponseHeader));
Microsoft.Cci.Extensions (1)
Writers\CSharp\CSharpWriter.cs (1)
233IFieldDefinition fieldType = new DummyPrivateField(parentType, genericField.Type, genericField.Name.Value, genericField.Attributes.Where(a => !a.FullName().EndsWith("NullAttribute")), genericField.IsReadOnly);
Microsoft.CodeAnalysis (2)
DocumentationCommentId.cs (2)
291else if (name.EndsWith(".this[]")) 308else if (name.EndsWith(".Item"))
Microsoft.CodeAnalysis.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
136if (methodSymbol.Name.EndsWith(AsyncSuffix))
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
63methodSymbol.Name.EndsWith(AsyncSuffix))
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\QuickAttributeChecker.cs (1)
197Debug.Assert(attributeDescription.Name.EndsWith(nameof(System.Attribute)));
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1229.EndsWith(attributeFilePathWithForwardSlashes),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
361if (elementLeadingWhitespace.EndsWith(indentation))
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
69.FirstOrDefault(assembly => !assembly.IsDynamic && assembly.Location.EndsWith("netstandard.dll")).Location;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
RawStringLiteral\RawStringLiteralCommandHandler_TypeChar.cs (2)
230if (!endToken.Text.EndsWith(new string('"', quoteCount))) 235if (!token.Text.EndsWith(new string('"', quoteCount)))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenCapturing.cs (1)
382if (captureVar.EndsWith("()"))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
FieldKeywordTests.cs (3)
785string readonlyQualifier = typeKind.EndsWith("struct") ? "readonly " : ""; 1101string readonlyQualifier = typeKind.EndsWith("struct") ? "readonly " : ""; 1216string readonlyQualifier = typeKind.EndsWith("struct") ? "readonly " : "";
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
361if (elementLeadingWhitespace.EndsWith(indentation))
Structure\CSharpStructureHelpers.cs (1)
136text = text.Length >= "/**/".Length && text.EndsWith(MultiLineCommentSuffix)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\NativeIntegerTests.cs (2)
7835bool verify = !(sourceType.EndsWith("?") && 7836destType.EndsWith("?") &&
SourceGeneration\AdditionalSourcesCollectionTests.cs (2)
59Assert.True(source.HintName.EndsWith(".cs")); 75Assert.True(sources[0].HintName.EndsWith(".vb"));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (1)
499if (text.EndsWith(suffix) && (startsWithTypePrefix || text.StartsWith(convertedPrefix)))
TestAttributesVisitor.cs (1)
161if (name.EndsWith("Attribute")) name = name.Substring(0, name.Length - 9);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Classification\FormattedClassification.cs (1)
210if (trimmedClassification.EndsWith(" name"))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Completion\TestFileSystemCompletionHelper.cs (2)
33Assert.True(drives.All(d => d.EndsWith(PathUtilities.DirectorySeparatorStr))); 34Assert.True(directories.All(d => !d.EndsWith(PathUtilities.DirectorySeparatorStr)));
Microsoft.CodeAnalysis.Features (6)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
508key.EndsWith(SeveritySuffix))
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
136if (methodSymbol.Name.EndsWith(AsyncSuffix))
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
63methodSymbol.Name.EndsWith(AsyncSuffix))
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
148if (!assemblyPath.EndsWith(NuGetEmptyFileName))
Workspace\CompileTimeSolutionProvider.cs (2)
171=> documentState.FilePath?.EndsWith(".razor.g.cs") == true || documentState.FilePath?.EndsWith(".cshtml.g.cs") == true;
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (2)
2224context.AddSource("Generated.cs", context.Compilation.SyntaxTrees.SingleOrDefault(t => t.FilePath.EndsWith("X.cs"))?.ToString() ?? "none"); 2232var syntaxTree = context.Compilation.SyntaxTrees.Single(t => t.FilePath.EndsWith("A.cs"));
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Handler\Completion\CompletionResolveHandler.cs (1)
122&& (lspCompletionItem.Label == completionItem.SortText || lspCompletionItem.SortText?.EndsWith(completionItem.SortText) == true);
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDiagnosticSourceHelpers.cs (3)
64(document.FilePath?.EndsWith("__virtual.js") == true || document.FilePath?.EndsWith(".razor") == true || document.FilePath?.EndsWith(".cshtml") == true))
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\MethodHandlerDetails.cs (1)
159return methodName == name || methodName.EndsWith(suffix);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Definitions\GoToDefinitionTests.cs (2)
338Assert.True(results.Single().DocumentUri.GetRequiredParsedUri().OriginalString.EndsWith("String.cs")); 371Assert.True(results.Single().DocumentUri.GetRequiredParsedUri().LocalPath.EndsWith("generated_file.cs"));
References\FindAllReferencesHandlerTests.cs (2)
346Assert.True(results[0].Location.DocumentUri.ToString().EndsWith("String.cs")); 382Assert.True(results[1].Location.DocumentUri.GetRequiredParsedUri().LocalPath.EndsWith("generated_file.cs"));
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
88if (!expectedText.EndsWith("{"))
Microsoft.CodeAnalysis.UnitTests (1)
Collections\DebuggerAttributes.cs (1)
167bool noQuotes = reference.EndsWith(",nq");
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Workspace\ProjectSystem\IFileChangeWatcher.cs (1)
34if (!path.EndsWith(System.IO.Path.DirectorySeparatorChar.ToString()))
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
NetCoreTests.cs (1)
371var projects = workspace.CurrentSolution.Projects.Where(p => p.FilePath.EndsWith("Project.csproj"));
VisualStudioMSBuildWorkspaceTests.cs (1)
3201var project = solution.Projects.Single(p => p.FilePath.EndsWith("CSharpProject_ProjectReference.csproj"));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Options\OptionsTestInfo.cs (1)
58var isBackingField = field.Name.EndsWith("k__BackingField");
TestDynamicFileInfoProviderThatProducesFiles.cs (1)
42if (filePath.EndsWith(".cshtml"))
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
GeneratedCodeRecognitionTests.cs (2)
72if (fileName.EndsWith(".cs") || fileName.EndsWith(".vb"))
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
1212var sourceGeneratedDocument1 = generatedDocuments.Single(d => d.Identity.Generator.TypeName.EndsWith("CallbackGenerator")); 1213var sourceGeneratedDocument2 = generatedDocuments.Single(d => d.Identity.Generator.TypeName.EndsWith("CallbackGenerator2"));
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
MethodHandlerDetails.cs (1)
159return methodName == name || methodName.EndsWith(suffix);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\ProductionChannelValidator.cs (1)
306if (pattern.EndsWith("/*"))
Microsoft.DotNet.Build.Tasks.Installers (5)
src\CreateWixBuildWixpack.cs (5)
868if (variableName.StartsWith("$(var.", StringComparison.OrdinalIgnoreCase) && variableName.EndsWith(")")) 874else if (variableName.StartsWith("$(") && variableName.EndsWith(")")) 1038if (file.EndsWith(".dll") || 1039file.EndsWith(".exe") || 1040file.EndsWith(".msi"))
Microsoft.DotNet.Build.Tasks.Packaging (1)
UpdatePackageIndex.cs (1)
314.Where(p => p.Key.StartsWith("runtime.") && p.Key.EndsWith(id))
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\IbcEntry.cs (1)
65=> Path.GetFileNameWithoutExtension(filePath).EndsWith(".resources");
Microsoft.DotNet.Build.Tasks.Workloads (4)
CreateVisualStudioWorkload.wix.cs (1)
474swixProjectItem.SetMetadata(Metadata.IsPreview, swixComponent.Name.EndsWith(".pre").ToString().ToLowerInvariant());
Utils.cs (2)
111if ((wildcardPattern.EndsWith("*")) || (wildcardPattern.EndsWith("?")))
WorkloadSetPackage.wix.cs (1)
118if (!Path.GetFileName(file).EndsWith("workloadset.json"))
Microsoft.DotNet.Build.Tasks.Workloads.Tests (2)
MsiTests.cs (2)
68d.DefaultDir.EndsWith("|6.0.3")); 72d.DefaultDir.EndsWith("|6.0.4"));
Microsoft.DotNet.Helix.Sdk (3)
CreateXHarnessAppleWorkItems.cs (2)
104bool isAlreadyArchived = appFolderPath.EndsWith(".zip"); 105if (isAlreadyArchived && workItemName.EndsWith(".app"))
CreateXUnitWorkItems.cs (1)
126if (assemblyBaseName.EndsWith(".dll"))
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
335|| relativeFilePath.EndsWith("_.pdb"))
Microsoft.DotNet.PackageTesting (1)
NupkgParser.cs (1)
25IEnumerable<string> files = nupkgReader.GetFiles()?.Where(t => t.EndsWith(packageId + ".dll"));
Microsoft.DotNet.SharedFramework.Sdk (1)
src\CreateFrameworkListFile.cs (1)
139if (path.EndsWith(".resources.dll"))
Microsoft.DotNet.SignCheckLibrary (5)
Utils.cs (2)
72if ((wildcardPattern.EndsWith("*")) || (wildcardPattern.EndsWith("?")))
Verification\DebVerifier.cs (1)
57if (relativePath.EndsWith("/"))
Verification\TarVerifier.cs (1)
49if (!entry.Name.EndsWith("/"))
Verification\ZipVerifier.cs (1)
30if (!relativePath.EndsWith("/") || entry.Name != "")
Microsoft.DotNet.SignTool (2)
src\ZipData.cs (1)
669if (relativePath.EndsWith("/"))
src\ZipDataEntry.cs (1)
53if (_relativePath.EndsWith("/") && entry.Name == "")
Microsoft.DotNet.SignTool.Tests (1)
FakeSignTool.cs (1)
45!path.EndsWith(SignToolConstants.MsiEngineExtension))
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
100segments[1].EndsWith(".nupkg"))
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
ServiceClientCodeFactory.cs (1)
40if (!filePath.EndsWith(_language.Extension))
Microsoft.DotNet.XliffTasks (1)
Model\ResxDocument.cs (1)
32if (name.StartsWith(">>") || name.EndsWith(".LayoutSettings"))
Microsoft.Extensions.AI.Templates.Tests (4)
AIChatWebSnapshotTests.cs (3)
103if (filePath.EndsWith(".sln")) 109if (filePath.EndsWith(".csproj")) 119if (filePath.EndsWith("launchSettings.json"))
McpServerSnapshotTests.cs (1)
72if (filePath.EndsWith(".csproj"))
Microsoft.Extensions.DependencyModel (2)
DependencyContextExtensions.cs (1)
118if (name.EndsWith(NativeImageSufix))
RuntimeAssembly.cs (1)
40if (assemblyName.EndsWith(NativeImageSufix))
Microsoft.Maui.Controls (1)
Brush\BrushTypeConverter.cs (1)
375 if (part.EndsWith(unit))
Microsoft.Maui.Resizetizer (2)
GenerateTizenManifest.cs (1)
147 var defaultDpi = DpiPath.Tizen.AppIcon.Where(n => n.Path.EndsWith(IconDefaultDpiType)).FirstOrDefault();
GetMauiAssetPath.cs (1)
82 if (!projectDirectory.EndsWith(Path.DirectorySeparatorChar.ToString()))
Microsoft.ML.AutoML.Interactive (1)
AutoMLMonitorKernelExtension.cs (1)
90if (writer.ToString().EndsWith("</div \r\n"))
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\RelaxTestNamingTest.cs (1)
122if (method.Name.EndsWith("Async"))
Microsoft.ML.Core (5)
CommandLine\CmdLexer.cs (2)
290if (!str.StartsWith("{") || !str.EndsWith("}")) 390Contracts.Assert(v.StartsWith("{") && v.EndsWith("}"));
CommandLine\CmdParser.cs (2)
746return str != null && str.StartsWith("{") && str.EndsWith("}"); 1682Contracts.Assert(string.IsNullOrEmpty(tag) || tag.StartsWith("[") && tag.EndsWith("]"));
Utilities\CmdIndenter.cs (1)
55if (i + 1 < tokens.Length && tokens[i + 1].StartsWith("{") && tokens[i + 1].EndsWith("}"))
Microsoft.ML.OnnxTransformer (3)
OnnxTransform.cs (1)
573var columnName = onnxOutputName.EndsWith(stdSuffix) ? onnxOutputName.Replace(stdSuffix, "") : onnxOutputName;
OnnxUtils.cs (2)
311(name.EndsWith(".unusedInput") || name.EndsWith(".unusedOutput")))
Microsoft.ML.Parquet (1)
PartitionedPathUtils.cs (1)
37if (!baseUri.AbsoluteUri.EndsWith("/"))
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
993if (nameValCols[1].EndsWith("%"))
Microsoft.ML.TestFrameworkCommon (2)
TestLogger.cs (2)
32if (value.EndsWith("\r\n")) 39if (format.EndsWith("\r\n"))
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (2)
437if (file.EndsWith(".data-00000-of-00001")) 444if (file.EndsWith(".index"))
Microsoft.VisualStudio.LanguageServices (3)
ProjectSystem\Legacy\AbstractLegacyProject.cs (3)
186if (filename.EndsWith(".xoml")) 204if (filename.EndsWith(".xoml")) 230if (filename.EndsWith(".xoml"))
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Interactive\Commands\ResetInteractiveTests.cs (2)
55Assert.True(replReferenceCommands.Any(rc => rc.EndsWith(""" 58Assert.True(replReferenceCommands.Any(rc => rc.EndsWith("""
Microsoft.VisualStudio.LanguageServices.Implementation (1)
SolutionExplorer\DiagnosticItem\CpsUtilities.cs (1)
37if (!projectDirectoryPath.EndsWith("\\"))
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\LanguageServiceUtils.cs (1)
29=> contentType.EndsWith("-remote");
Client\Projects\RoslynRemoteProjectInfoProvider.cs (1)
77.Where(f => !_secondaryBufferFileExtensions.Any(ext => f.LocalPath.EndsWith(ext)))
PrepareTests (1)
TestDiscovery.cs (1)
78if (pathToWorker.EndsWith("dll"))
Roslyn.Diagnostics.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Test.Utilities (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))
Text.Analyzers (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
52newBaseName = newBaseName.EndsWith(suffix)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (3)
131if (!name.EndsWith(Suffix)) 314var addSuffix = !name.EndsWith(Suffix); 430if (name.EndsWith(Suffix[..i]))