19 references to LastIndexOf
BuildActionTelemetryTable (1)
Program.cs (1)
301part = part.Substring(0, part.LastIndexOf(suffix));
BuildValidator (2)
Program.cs (2)
396var prefix = key.Remove(key.LastIndexOf("*")); 397var replace = value.Remove(value.LastIndexOf("*"));
Client.ExpectedExceptions.IntegrationTests (1)
ExpectedExceptionTests.4.1.0.cs (1)
97string uniqueIdentifier = restartServiceAddress.Substring(restartServiceAddress.LastIndexOf("/") + 1);
Microsoft.Build (1)
Evaluation\Expander\WellKnownFunctions.cs (1)
242returnVal = text.LastIndexOf(arg0);
Microsoft.Cci.Extensions (3)
Extensions\CSharp\CSharpCciExtensions.cs (1)
677int index = name.LastIndexOf(".");
Writers\CSharp\CSDeclarationWriter.Properties.cs (2)
42int index = id.LastIndexOf("."); 164int index = property.Name.Value.LastIndexOf(".");
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
CodeActions\InlineMethod\CSharpInlineMethodTests.cs (2)
95var secondMarkerIndex = expectedMarkUpForCallee.LastIndexOf(Marker); 129var secondMarkerIndex = expectedMarkUp.LastIndexOf(Marker);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PrimaryConstructorTests.cs (1)
20104int i = code.LastIndexOf("p1");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
4116var discarded1 = model.GetEnclosingSymbol(source.LastIndexOf(" => x"));
Microsoft.CodeAnalysis.EditorFeatures (1)
Interactive\InteractivePasteCommandHandler.cs (1)
123var trimmed = text.Remove(text.LastIndexOf(textView.Options.GetNewLineCharacter()));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (2)
87.WithDocumentText(linkedDocumentId, linkedText.Replace(textString.LastIndexOf("public"), "public".Length, "private")); 109.WithDocumentText(linkedDocument.Id, sourceText.Replace(textString.LastIndexOf("public"), "public".Length, "private"));
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishBuildToMaestro.cs (1)
584repoName = repoName.Remove(repoName.LastIndexOf("-trusted"));
PresentationFramework (1)
System\Windows\Controls\ItemContainerGenerator.cs (1)
1118int index = aqn.LastIndexOf(PublicKeyToken);
RunTests (2)
AssemblyScheduler.cs (2)
270var periodBeforeMethod = fullyQualifiedTestName.LastIndexOf("."); 276var lastPeriod = fullyQualifiedName.LastIndexOf(".");