34 references to Remove
BuildValidator (2)
Program.cs (2)
396var prefix = key.Remove(key.LastIndexOf("*")); 397var replace = value.Remove(value.LastIndexOf("*"));
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 (2)
Evaluation\Profiler\EvaluationLocationMarkdownPrettyPrinter.cs (1)
49$"{text.Remove(100)}...";
Evaluation\Profiler\EvaluationLocationPrettyPrinterBase.cs (1)
69return newLineIndex == -1 ? outerXml : outerXml.Remove(newLineIndex);
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
398info.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.EditorFeatures (1)
Interactive\InteractivePasteCommandHandler.cs (1)
123var trimmed = text.Remove(text.LastIndexOf(textView.Options.GetNewLineCharacter()));
Microsoft.CodeAnalysis.Features (1)
Testing\AbstractTestMethodFinder.cs (1)
75fullyQualifiedTestName = fullyQualifiedTestName.Remove(indexOfOpenParen);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishBuildToMaestro.cs (1)
583repoName = repoName.Remove(repoName.LastIndexOf("-trusted"));
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.cs (1)
278this.currentIndentField = this.currentIndentField.Remove((this.currentIndentField.Length - indentLength));
Template\SweepableEstimator_T_.cs (1)
283this.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\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);