32 references to Remove
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
330if (!outputDirectory.EndsWith("\"", StringComparison.Ordinal) || !Directory.Exists(outputDirectory = outputDirectory.Remove(outputDirectory.Length - 1)))
dotnet-suggest (1)
PathExtensions.cs (1)
12path = path.Remove(path.LastIndexOf(".exe", StringComparison.OrdinalIgnoreCase));
dotnet-svcutil-lib (4)
Metadata\MetadaExchangeResolver.cs (2)
108baseUri = this.EndpointAddress.Uri.AbsoluteUri.Remove(this.EndpointAddress.Uri.AbsoluteUri.Length - uriQuery.Length); 117baseUri = this.EndpointAddress.Uri.AbsoluteUri.Remove(this.EndpointAddress.Uri.AbsoluteUri.Length - mexUri.Length);
Metadata\MetadataDocumentLoader.cs (2)
713key = key.Remove(key.Length - metadataUri.Query.Length); 717key = key.Remove(key.Length - MexUri.Length);
Microsoft.Build (1)
Evaluation\Profiler\EvaluationLocationPrettyPrinterBase.cs (1)
69return newLineIndex == -1 ? outerXml : outerXml.Remove(newLineIndex);
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
422info.Id = info.Id.Remove(separatorIndex);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (3)
259return new TextChange(selectedItem.Span, displayText.Remove(displayText.Length - SpaceEqualsString.Length)); 266return new TextChange(selectedItem.Span, displayText.Remove(displayText.Length - EqualsString.Length)); 273return new TextChange(selectedItem.Span, displayText.Remove(displayText.Length - ColonString.Length));
Microsoft.CodeAnalysis.Features (1)
Testing\AbstractTestMethodFinder.cs (1)
75fullyQualifiedTestName = fullyQualifiedTestName.Remove(indexOfOpenParen);
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Security\UseAutoValidateAntiforgeryToken.cs (1)
314attributeName.EndsWith("Attribute", StringComparison.Ordinal) ? attributeName.Remove(attributeName.Length - "Attribute".Length) : attributeName),
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
TargetFrameworkResolver.cs (1)
63return bestTargetFrameworkString?.Remove(bestTargetFrameworkString.Length - 1);
Microsoft.ML.AutoML.SourceGenerator (5)
Template\EstimatorType.cs (1)
259this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Template\SearchSpace.cs (1)
276this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Template\SweepableEstimator_T_.cs (1)
283this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Template\SweepableEstimator.cs (1)
278this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Template\SweepableEstimatorFactory.cs (1)
254this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Microsoft.ML.CodeGenerator (10)
Templates\Azure\Console\AzureModelBuilder.cs (1)
353this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Templates\Azure\Model\AzureImageModelOutputClass.cs (1)
294this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (1)
294this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Templates\Console\ConsumeModel.cs (1)
305this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Templates\Console\ModelBuilder.cs (1)
670this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Templates\Console\ModelInputClass.cs (1)
268this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Templates\Console\ModelOutputClass.cs (1)
311this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Templates\Console\ModelProject.cs (1)
300this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Templates\Console\PredictProgram.cs (1)
327this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Templates\Console\PredictProject.cs (1)
305this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\SystemResourceKey.cs (1)
385srkField = memberName.Remove(memberName.Length - 3);
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
249moduleName = moduleName.Remove(lastSegment);
System\Windows\SystemResourceKey.cs (1)
385srkField = memberName.Remove(memberName.Length - 3);