96 references to TrimEnd
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
1588return value.TrimEnd(WhitespaceChars);
Shared\MSBuildProj.cs (1)
426elementStr = elementStr.Substring(2).TrimEnd(')');
Shared\Utilities\RuntimeEnvironmentHelper.cs (1)
87.Select(e => e.Attribute("value").Value.TrimEnd(Path.DirectorySeparatorChar))
GenerateDocumentationAndConfigFiles (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
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(".") ? "" : ".")}";
Metrics (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Metrics.Legacy (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Microsoft.Arcade.Common (1)
Helpers.cs (1)
19return directoryPath.TrimEnd(s_slashes);
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Helpers\StringExtensions.cs (1)
78return builder.ToString().TrimEnd();
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
568clientDirectory = clientDirectory.TrimEnd(Path.DirectorySeparatorChar);
Microsoft.CodeAnalysis (2)
CommandLine\CommandLineParser.cs (1)
559string path = RemoveQuotesAndSlashes(arg.Substring(1)).TrimEnd(null);
FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.CodeAnalysis.Analyzers (3)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
999if (part.TrimEnd().Length == part.Length &&
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
SymbolIsBannedAnalyzer.cs (1)
70let trimmedTextWithoutComment = textWithoutComment.TrimEnd()
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
288var textWithoutFinalNewLine = text.TrimEnd(null);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
288var textWithoutFinalNewLine = text.TrimEnd(null);
Microsoft.CodeAnalysis.EditorFeatures (2)
InlineHints\InlineHintsTag.cs (2)
214var trimBoth = trimStart.TrimEnd(); 230var trimEnd = last.Text.TrimEnd();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractCompletionProviderTests.cs (1)
751textChange = new TextChange(textChange.Span, textChange.NewText.TrimEnd(commitChar) + commitChar);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Completion\TestFileSystemCompletionHelper.cs (2)
48=> _directories.Contains(fullPath.TrimEnd(PathUtilities.DirectorySeparatorChar)); 58var withTrailingSeparator = fullDirectoryPath.TrimEnd(PathUtilities.DirectorySeparatorChar) + PathUtilities.DirectorySeparatorChar;
Microsoft.CodeAnalysis.Features (1)
Completion\FileSystemCompletionHelper.cs (1)
150result.Add(CreateLogicalDriveItem(drive.TrimEnd(s_windowsDirectorySeparator)));
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Microsoft.CodeAnalysis.Test.Utilities (4)
InstrumentationChecker.cs (1)
357return lines[span.StartLine].Substring(span.StartColumn).TrimEnd(new[] { '\r', '\n', ' ' });
Win32Res.cs (3)
120return new string(cbuffer).TrimEnd(new char[] { '\0' }); 225xw.WriteAttributeString("Key", pair.Item1.TrimEnd(new char[] { '\0' })); 226xw.WriteAttributeString("Value", pair.Item2.TrimEnd(new char[] { '\0' }));
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
Microsoft.Data.Analysis (9)
TextFieldParser.cs (9)
422return line.TrimEnd(_newLineChars); 473line = line.TrimEnd(_newLineChars); 802_errorLine = line.TrimEnd(_newLineChars); 820_errorLine = line.TrimEnd(_newLineChars); 826_errorLine = line.TrimEnd(_newLineChars); 835_errorLine = line.TrimEnd(_newLineChars); 865field = line.Substring(index).TrimEnd(_newLineChars); 884line = line.TrimEnd(_newLineChars); 900string field = (fieldLength > 0) ? line.SubstringByTextElements(index, fieldLength) : ((index < line.LengthInTextElements) ? line.SubstringByTextElements(index).TrimEnd(_newLineChars) : string.Empty);
Microsoft.Data.Analysis.Tests (9)
src\Microsoft.Data.Analysis\TextFieldParser.cs (9)
422return line.TrimEnd(_newLineChars); 473line = line.TrimEnd(_newLineChars); 802_errorLine = line.TrimEnd(_newLineChars); 820_errorLine = line.TrimEnd(_newLineChars); 826_errorLine = line.TrimEnd(_newLineChars); 835_errorLine = line.TrimEnd(_newLineChars); 865field = line.Substring(index).TrimEnd(_newLineChars); 884line = line.TrimEnd(_newLineChars); 900string field = (fieldLength > 0) ? line.SubstringByTextElements(index, fieldLength) : ((index < line.LengthInTextElements) ? line.SubstringByTextElements(index).TrimEnd(_newLineChars) : string.Empty);
Microsoft.DotNet.Baselines.Tasks (1)
CreateUpdatePR.cs (1)
107TargetDirectory.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar),
Microsoft.DotNet.SignCheckLibrary (1)
Verification\Jar\JarAttributes.cs (1)
69line = line.TrimStart(' ').TrimEnd(JarUtils.NewLine);
Microsoft.Extensions.AI.Integration.Tests (1)
VerbatimMultiPartHttpHandler.cs (1)
106string rawValue = part.Substring(headerEnd + 4).TrimEnd('\r', '\n');
Microsoft.Extensions.FileSystemGlobbing (2)
Internal\Patterns\PatternBuilder.cs (2)
34if (pattern.TrimEnd(_slashes).Length < pattern.Length) 38pattern = pattern.TrimEnd(_slashes) + "/**";
Microsoft.ML.Transforms (1)
Text\WordEmbeddingsExtractor.cs (1)
707string[] wordsInFirstLine = firstLine.TrimEnd().Split(' ', '\t');
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\FileIO\FileSystem.vb (5)
246Return IO.Path.GetDirectoryName(path.TrimEnd( 1538Path1 = Path1.TrimEnd(IO.Path.DirectorySeparatorChar, IO.Path.AltDirectorySeparatorChar) 1539Path2 = Path2.TrimEnd(IO.Path.DirectorySeparatorChar, IO.Path.AltDirectorySeparatorChar) 1560Path = Path.TrimEnd(IO.Path.DirectorySeparatorChar, IO.Path.AltDirectorySeparatorChar) 1582Return Path.TrimEnd(IO.Path.DirectorySeparatorChar, IO.Path.AltDirectorySeparatorChar)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Interactive\Commands\InteractiveCommandHandlerTests.cs (1)
203submissions.Add(item.TrimEnd());
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
179var splitRoot = localRoot.TrimEnd('\\').Split('\\');
Roslyn.Diagnostics.Analyzers (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
288var textWithoutFinalNewLine = text.TrimEnd(null);
System.Data.Common (5)
System\Data\Filter\BinaryNode.cs (2)
1573string s1 = tempStr.TrimEnd(s_trimChars); 1586string s2 = substring.TrimEnd(s_trimChars);
System\Data\XDRSchema.cs (1)
591string[] list = keys.TrimEnd(null).Split(null);
System\Data\XMLSchema.cs (2)
463parentNames = value.TrimEnd(null).Split(new char[] { Keywords.MSD_KEYFIELDSEP, Keywords.MSD_KEYFIELDOLDSEP }); 468childNames = value.TrimEnd(null).Split(new char[] { Keywords.MSD_KEYFIELDSEP, Keywords.MSD_KEYFIELDOLDSEP });
System.Drawing.Common (1)
System\Drawing\FontConverter.cs (1)
292units = units.TrimEnd(trimChars);
System.Private.Xml (1)
System\Xml\XmlConvert.cs (1)
1365return value.TrimEnd(WhitespaceChars);
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
169units = units.TrimEnd(trimChars);
System.Xaml (2)
System\Xaml\Parser\MeScanner.cs (1)
518result = result.TrimEnd(KnownStrings.WhitespaceChars);
System\Xaml\Parser\XamlText.cs (1)
261string result = source.TrimEnd(SPACE, TAB, NEWLINE);
Test.Utilities (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);
Text.Analyzers (2)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
272return NormalizeAbsolutePath(path).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
195var line = lines[i].TrimEnd(s_trimChars);