18 references to LastIndexOf
aspire (2)
Templating\ConditionalBlockProcessor.cs (2)
79var startLineBegin = content.LastIndexOf('\n', startIdx); 85var endLineBegin = content.LastIndexOf('\n', endIdx);
Aspire.Cli.Tests (1)
Telemetry\InternalMicrosoftDetectorTests.cs (1)
1709var valueEnd = MacPlatformSsoOutputFixture.LastIndexOf(',', followingPropertyIndex);
Aspire.Hosting (1)
Dcp\ResourceLogSource.cs (1)
221var carriageReturnIndex = text.LastIndexOf('\r', endIndex - 1);
Infrastructure.Tests (1)
Pipelines\ReleasePublishNugetPipelineTests.cs (1)
268var regionEnd = contents.LastIndexOf('\n', endIndex);
Microsoft.AspNetCore.Mvc.Razor (1)
RazorFileHierarchy.cs (1)
29while (maxIterations-- > 0 && index > 1 && (index = path.LastIndexOf('/', index - 1)) != -1)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageViewLocationExpander.cs (1)
58while (end > 0 && (end = context.PageName.LastIndexOf('/', end - 1)) != -1)
Microsoft.CodeAnalysis.Features (2)
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (2)
148if ((index = text.LastIndexOf('/', position)) >= 0 || 149!PathUtilities.IsUnixLikePlatform && (index = text.LastIndexOf('\\', position)) >= 0)
Microsoft.Diagnostics.DataContractReader.Legacy (1)
ClrDataModule.cs (1)
156int dotPos = fullName.LastIndexOf('.', searchFrom);
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Specs\TypeIndex.cs (1)
121int lastDotIndex = genericIndex > 0 ? typeFNQ.LastIndexOf('.', genericIndex) : -1;
Microsoft.TemplateEngine.Edge (1)
Mount\FileSystemInfoBase.cs (1)
47int lastSlash = FullPath.LastIndexOf('/', FullPath.Length - 2);
NuGet.Common (1)
PathUtil\PathResolver.cs (1)
191int directorySeparatoryIndex = searchPath.LastIndexOf(Path.DirectorySeparatorChar, wildcardIndex);
NuGet.Packaging (1)
PackageFileExtractor.cs (1)
81var directorySeparatorIndex = file.LastIndexOf('/', fileSeparatorIndex - 1);
System.Net.NetworkInformation (2)
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (2)
100int beforeName = fileContents.LastIndexOf(' ', afterName); 109int beforeAddress = fileContents.LastIndexOf(' ', afterAddress);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
778int iTemp = ascii.LastIndexOf(c_delimiter, iNextDot - 1);
System.Speech (1)
Internal\Synthesis\VoiceSynthesis.cs (1)
198int startInXml = text.LastIndexOf('>', start);