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