407 references to LastIndexOf
aspire (11)
Agents\Copilot\CopilotCliRunner.cs (1)
90var lastSpaceIndex = versionString.LastIndexOf(' ');
Commands\Sdk\SdkDumpCommand.cs (2)
116var atIndex = arg.LastIndexOf('@'); 703var lastDot = typeId.LastIndexOf('.');
Commands\Sdk\SdkExportCommand.cs (1)
288var separatorIndex = argument.LastIndexOf('@');
Diagnostics\CliLogFormat.cs (1)
89var lastDotIndex = categoryName.LastIndexOf('.');
Projects\DotNetAppHostProject.cs (3)
563var lastSeparator = Math.Max(trimmed.LastIndexOf('/'), trimmed.LastIndexOf('\\')); 576var lastExpressionEnd = segment.LastIndexOf(')');
src\Shared\BackchannelConstants.cs (1)
394var lastDot = fileName.LastIndexOf('.');
src\Shared\ProcessStartTimeHelper.cs (1)
361var closeParenIndex = contents.LastIndexOf(')');
Telemetry\InternalMicrosoftDetector.cs (1)
1838var atIndex = value.LastIndexOf('@');
aspire-managed (2)
NuGet\Commands\NuGetPackageAssetResolver.cs (1)
312var separatorIndex = normalizedPath.LastIndexOf('/');
src\Shared\ProcessStartTimeHelper.cs (1)
361var closeParenIndex = contents.LastIndexOf(')');
Aspire.Azure.Npgsql (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
125var lastSlashIndex = xms_mirid.LastIndexOf('/');
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
125var lastSlashIndex = xms_mirid.LastIndexOf('/');
Aspire.Cli.Tests (4)
Mcp\ListResourcesToolTests.cs (1)
169var jsonEndIndex = textContent.Text.LastIndexOf(']') + 1;
Mcp\ListStructuredLogsToolTests.cs (1)
189var jsonEndIndex = textContent.Text.LastIndexOf(']') + 1;
Mcp\ListTracesToolTests.cs (1)
161var jsonEndIndex = textContent.Text.LastIndexOf(']') + 1;
Utils\ConsoleActivityLoggerTests.cs (1)
322Assert.True(scaleLine.LastIndexOf('│') > scaleLine.IndexOf('│'));
Aspire.Dashboard (4)
Model\ConnectionStringParser.cs (2)
544var lastColonIndex = token.LastIndexOf(':'); 545var lastCommaIndex = token.LastIndexOf(',');
Otlp\Storage\ResourceKey.cs (1)
31var separator = instanceId.LastIndexOf('-');
Utils\VersionHelpers.cs (1)
26int lastSpace = description.LastIndexOf(' ');
Aspire.Hosting (3)
Dcp\DcpOptions.cs (1)
362if (separatorIndex < 0 || separatorIndex != configuredRange.LastIndexOf('-'))
src\Shared\BackchannelConstants.cs (1)
394var lastDot = fileName.LastIndexOf('.');
src\Shared\ProcessStartTimeHelper.cs (1)
361var closeParenIndex = contents.LastIndexOf(')');
Aspire.Hosting.Azure.Sandboxes (2)
AzureSandboxContainerDeployment.cs (2)
1038var lastSlash = imageReference.LastIndexOf('/'); 1039var lastColon = imageReference.LastIndexOf(':');
Aspire.Hosting.CodeGeneration.Go (2)
AtsGoCodeGenerator.cs (2)
2224var lastDot = typeName.LastIndexOf('.'); 2225var plusIndex = typeName.LastIndexOf('+');
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
479var simpleName = imported[(imported.LastIndexOf('.') + 1)..]; 2738var lastDot = typeName.LastIndexOf('.'); 2739var plusIndex = typeName.LastIndexOf('+');
Aspire.Hosting.CodeGeneration.Python (7)
AtsPythonCodeGenerator.cs (7)
722var lastDot = methodName.LastIndexOf('.'); 768var slashIndex = capabilityId.LastIndexOf('/'); 1249return methodName[(methodName.LastIndexOf('.') + 1)..]; 1350? capability.MethodName[(capability.MethodName.LastIndexOf('.') + 1)..] 2311var slashIndex = typeId.LastIndexOf('/'); 2326var dotIndex = fullTypeName.LastIndexOf('.'); 2597var separatorIndex = capabilityId.LastIndexOf('/');
Aspire.Hosting.CodeGeneration.Rust (2)
AtsRustCodeGenerator.cs (2)
1149var lastDot = typeName.LastIndexOf('.'); 1150var plusIndex = typeName.LastIndexOf('+');
Aspire.Hosting.CodeGeneration.TypeScript (9)
AtsTypeScriptCodeGenerator.cs (2)
2595? method.MethodName[(method.MethodName.LastIndexOf('.') + 1)..] 2826? capability.MethodName[(capability.MethodName.LastIndexOf('.') + 1)..]
TypeScriptApiProjector.cs (7)
382? capability.MethodName[(capability.MethodName.LastIndexOf('.') + 1)..] 2016var dotIndex = methodName.LastIndexOf('.'); 2061? methodName[(methodName.LastIndexOf('.') + 1)..] 2077var slashIndex = capabilityId.LastIndexOf('/'); 2610return methodName[(methodName.LastIndexOf('.') + 1)..]; 3040var slashIndex = typeId.LastIndexOf('/'); 3043var dotIndex = fullTypeName.LastIndexOf('.');
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
28var lastDotIndex = fullTypeName.LastIndexOf('.');
Aspire.Hosting.Foundry (1)
PromptAgent\AzurePromptAgentResource.cs (1)
430? projectNameOutput[(projectNameOutput.LastIndexOf('/') + 1)..]
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
429var lastSeparatorIndex = keyFilePath.LastIndexOf('/');
Aspire.Hosting.Radius (2)
RadiusExtensions.cs (2)
192var lastSlash = remainder.LastIndexOf('/'); 193var lastColon = remainder.LastIndexOf(':');
Aspire.Hosting.RemoteHost (5)
AtsCapabilityScanner.cs (4)
1553var lastDot = fullName.LastIndexOf('.'); 2908var slashIndex = capabilityId.LastIndexOf('/'); 3774var lastSeparatorIndex = Math.Max(value.LastIndexOf('.'), value.LastIndexOf('#'));
src\Shared\ProcessStartTimeHelper.cs (1)
361var closeParenIndex = contents.LastIndexOf(')');
Aspire.Hosting.Sdk.Tests (1)
AppHostSdkTargetsTests.cs (1)
1210var jsonEnd = result.StandardOutput.LastIndexOf('}');
Aspire.Hosting.Tasks (1)
ResolveAspireCliBundle.cs (1)
388var separatorIndex = directoryName.LastIndexOf('-');
Aspire.TerminalHost (1)
src\Shared\ProcessStartTimeHelper.cs (1)
361var closeParenIndex = contents.LastIndexOf(')');
Aspire.TestTools (1)
GitHubCli.cs (1)
105var lastSlash = issueUrl.LastIndexOf('/');
Crossgen2Tasks (1)
ResolveReadyToRunCompilers.cs (1)
255int separator = runtimeIdentifier.LastIndexOf('-');
dotnet-svcutil-lib (18)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlEntityReference.cs (1)
189int nCount = baseURI.LastIndexOf('/') + 1;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
109int colon = name.LastIndexOf(':'); 230int colon = Name.LastIndexOf(':');
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1400int nsLen = type.LastIndexOf(':');
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (2)
1997int colon = xmlName.LastIndexOf(':'); 2120int colon = choiceId.LastIndexOf(':');
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (3)
812int colon = attr.Value.LastIndexOf(':'); 1201int colon = value == null ? -1 : value.LastIndexOf(':'); 2004int colon = value.LastIndexOf(':');
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
3679int colon = xmlName.LastIndexOf(':');
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2393int colon = xmlName.LastIndexOf(':');
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
467int nestedTypeIndex = originalName.LastIndexOf('.');
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
1818int nsEnd = fullTypeName.LastIndexOf('.');
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BindingContext.cs (1)
132builder.Append(typeString.Substring(typeString.LastIndexOf('.') + 1));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelRequirements.cs (2)
277contractChannelTypes.Append(typeString.Substring(typeString.LastIndexOf('.') + 1)); 321bindingChannelTypes.Append(typeString.Substring(typeString.LastIndexOf('.') + 1));
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultReason.cs (1)
101int idx = localLang.LastIndexOf('-');
Shared\MSBuildProj.cs (1)
558basePath = dependency.FullPath.Substring(0, dependency.FullPath.LastIndexOf(Path.DirectorySeparatorChar));
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
ILAssembler (2)
GrammarVisitor.cs (1)
1286int typeFullNameLastDot = typeFullName.LastIndexOf('.');
NameHelpers.cs (1)
10int lastDotIndex = dottedName.LastIndexOf('.');
ilc (1)
Program.cs (1)
252if (separatorIndex == 0 || separatorIndex != specifier.LastIndexOf('=') || separatorIndex == specifier.Length - 1)
ILCompiler.Compiler (7)
Compiler\Logging\DocumentationSignatureParser.cs (1)
533int indexOfLastDot = name.LastIndexOf('.');
Compiler\ObjectDumper.cs (1)
26int indexOfAccent = name.LastIndexOf('`');
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (1)
820var last_dot = fullName.LastIndexOf('.');
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\CompilerGeneratedNames.cs (4)
48int i = typeName.LastIndexOf('>'); 74int i = fieldName.LastIndexOf('>'); 112int i = methodName.LastIndexOf('>'); 143int i = methodName.LastIndexOf('>');
ILCompiler.ReadyToRun (1)
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (1)
820var last_dot = fullName.LastIndexOf('.');
ILCompiler.TypeSystem (1)
parent\parent\Common\TypeSystem\Common\Utilities\CSharpTypeNameFormatter.cs (1)
153int genericArityIndex = name.LastIndexOf('`');
illink (9)
ILLink.RoslynAnalyzer (6)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\CompilerGeneratedNames.cs (4)
48int i = typeName.LastIndexOf('>'); 74int i = fieldName.LastIndexOf('>'); 112int i = methodName.LastIndexOf('>'); 143int i = methodName.LastIndexOf('>');
TrimAnalysis\ParameterProxy.cs (2)
80public partial bool IsTypeOf(string typeName) => ParameterType.IsTypeOf(typeName.Substring(0, typeName.LastIndexOf('.')), typeName.Substring(1 + typeName.LastIndexOf('.')));
ILLink.Tasks (2)
CreateRuntimeRootDescriptorFile.cs (2)
167string lhs = namespaceDefElements[1].Substring(startIndex, namespaceDefElements[1].LastIndexOf('N') - startIndex); 178string prefix = namespaceDefElements[2].Substring(startIndex, namespaceDefElements[2].LastIndexOf('N') - startIndex);
Infrastructure.Tests (2)
Shared\TestTrxBuilder.cs (1)
88var lastDotIndex = testCase.CanonicalTestName.LastIndexOf('.');
TestTriggerMap\SelectTestsAcceptanceTests.cs (1)
1114.Select(p => p.Contains('/', StringComparison.Ordinal) ? p[..p.LastIndexOf('/')] : p)
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (1)
PostConfigureDeviceBoundSessionDerivedCookieOptions.cs (1)
76var lastSlash = refreshPath.LastIndexOf('/');
Microsoft.AspNetCore.Components (1)
NavigationManager.cs (1)
378var lastSlashIndex = baseUri.LastIndexOf('/');
Microsoft.AspNetCore.Components.WebView (1)
FileExtensionContentTypeProvider.cs (1)
461int index = path.LastIndexOf('.');
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ViewEnginePath.cs (1)
30var index = first.LastIndexOf('/');
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
parent\parent\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
71var index = pageRoute.LastIndexOf('/');
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\PageRouteModelFactory.cs (1)
71var index = pageRoute.LastIndexOf('/');
Microsoft.AspNetCore.Mvc.TagHelpers (4)
GlobbingUrlBuilder.cs (4)
191var xExtIndex = x.LastIndexOf('.'); 192var yExtIndex = y.LastIndexOf('.'); 195var xSlashIndex = x.LastIndexOf('/'); 196var ySlashIndex = y.LastIndexOf('/');
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DefaultHtmlGenerator.cs (1)
375var index = expression.LastIndexOf('.');
HtmlHelper.cs (1)
779var index = expression.LastIndexOf('.');
ViewComponents\ViewComponentConventions.cs (1)
30var separatorIndex = attribute.Name.LastIndexOf('.');
ViewDataEvaluator.cs (1)
145var lastDot = expression.LastIndexOf('.');
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonTypeInfoExtensions.cs (1)
132var backtickIndex = type.Name.LastIndexOf('`');
Microsoft.AspNetCore.StaticFiles (1)
FileExtensionContentTypeProvider.cs (1)
455int index = path.LastIndexOf('.');
Microsoft.Build (4)
Construction\ProjectElementContainer.cs (1)
596var lastIndexOfNewLine = leadingWhiteSpace.LastIndexOf('\n');
Evaluation\Expander.Function.cs (1)
795assemblyNameEnd = baseName.LastIndexOf('.');
Evaluation\Expander.PropertyExpander.cs (1)
690int lastAtSignOffset = registryLocation.LastIndexOf('@');
Logging\TerminalLogger\TerminalNodesFrame.cs (1)
85int lastDotInProject = project.LastIndexOf('.');
Microsoft.Build.Framework (2)
ItemSpecModifiers.cs (1)
676if (fullPath.IndexOf(':') != fullPath.LastIndexOf(':'))
Utilities\FileMatcher.cs (1)
1751int rightmostColon = filespec.LastIndexOf(':');
Microsoft.Build.Tasks.Core (2)
BootstrapperUtil\Util.cs (1)
37if (str.LastIndexOf(ch) == str.Length - 1)
ResourceHandling\MSBuildResXReader.cs (1)
342int lastIndexOfQuote = stringValue.LastIndexOf('"');
Microsoft.Build.Tasks.Git (1)
GitDataReader\GitIgnore.Matcher.cs (1)
167var i = fullPath.LastIndexOf('/');
Microsoft.CodeAnalysis (1)
MetadataReader\PEModule.cs (1)
840int index = typeName.LastIndexOf('.');
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Microsoft.CodeAnalysis.CSharp (6)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (3)
201bool getMemberNameWithoutInterfaceName = symbol.Name.LastIndexOf('.') > 0; 265if (symbol.Name.LastIndexOf('.') > 0) 507var lastDotPosition = operatorName.LastIndexOf('.');
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
111var idx = fullName.LastIndexOf('.');
Symbols\Synthesized\GeneratedNameParser.cs (1)
147int lastUnder = fieldName.LastIndexOf('_');
Symbols\Synthesized\GeneratedNames.cs (1)
423var nameEndIndex = name.LastIndexOf('}');
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
255return name.LastIndexOf('.') is var index && index >= 0 ? name[(index + 1)..] : name;
Microsoft.CodeAnalysis.Features (7)
CodeFixes\Configuration\ConfigurationUpdater.cs (2)
577var nameExtensionSplitIndex = mostRecentHeaderText.LastIndexOf('.'); 602var matchWithoutExtension = match[..match.LastIndexOf('.')];
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.SymbolComputer.cs (1)
466var indexOfLastDot = staticClassName.LastIndexOf('.');
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (3)
83var lastPlus = fullyQualifiedTypeName.LastIndexOf('+'); 84var lastDot = fullyQualifiedTypeName.LastIndexOf('.'); 127var backtickIndex = typeName.LastIndexOf('`');
Snippets\SnippetFunctionService.cs (1)
116var paramLength = xmlFunctionText.LastIndexOf(')') - xmlFunctionText.IndexOf('(') - 1;
Microsoft.CodeAnalysis.Razor.Compiler (10)
Language\RazorProjectFileSystem.cs (1)
100var fileNameIndex = path.LastIndexOf('/');
Language\RazorProjectItem.cs (3)
79var index = FileName.LastIndexOf('.'); 98var index = FilePath.LastIndexOf('/'); 110var index = FilePath.LastIndexOf('.');
Language\Syntax\SyntaxSerializer.cs (1)
141var typeName = tagHelper.Name[(tagHelper.Name.LastIndexOf('.') + 1)..];
Language\VirtualRazorProjectFileSystem.cs (1)
121var fileNameIndex = path.LastIndexOf('/');
Mvc.Version1_X\ViewComponentTagHelperDescriptorFactory.cs (1)
251var separatorIndex = name.LastIndexOf('.');
Mvc.Version2_X\ViewComponentTagHelperDescriptorFactory.cs (1)
266var separatorIndex = name.LastIndexOf('.');
Mvc\ViewComponentTagHelperDescriptorFactory.cs (1)
269var separatorIndex = name.LastIndexOf('.');
SourceGenerators\RazorSourceGenerator.Helpers.cs (1)
212var lastDot = name.LastIndexOf('.');
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
AbstractResxGenerator.cs (1)
834var lastDot = fullName.LastIndexOf('.');
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Microsoft.CodeAnalysis.VisualBasic (3)
Binding\Binder_Symbols.vb (1)
388currDiagName = currDiagName.Substring(0, currDiagName.LastIndexOf("."c))
SymbolDisplay\SymbolDisplayVisitor.vb (1)
216Dim nsIdx = emittedName.LastIndexOf("."c)
Symbols\SynthesizedSymbols\GeneratedNameParser.vb (1)
98Dim separator As Integer = proxyName.LastIndexOf("$"c)
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
87var index = fullName.LastIndexOf('.');
PatternMatching\PatternMatcher.cs (1)
131var dotIndex = pattern.LastIndexOf('.');
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
146var position = name.LastIndexOf('.');
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1041fullPath.LastIndexOf(Path.DirectorySeparatorChar);
Microsoft.Diagnostics.DataContractReader.Legacy (4)
ClrDataModule.cs (3)
151int lastNestingSep = Math.Max(fullName.LastIndexOf('+'), fullName.LastIndexOf('/')); 205int lastDot = firstPart.LastIndexOf('.');
ClrDataValue.cs (1)
740int separatorIndex = name.LastIndexOf('.');
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
464int lastDot = fullName.LastIndexOf('.');
Microsoft.DotNet.Build.Tasks.Packaging (2)
NuGetAssetResolver.cs (1)
107int dirLength = contentItem.Path.LastIndexOf(Path.AltDirectorySeparatorChar);
PackageItem.cs (1)
58int dirLength = TargetPath.LastIndexOf('/');
Microsoft.DotNet.Cli.Telemetry (1)
Implementation\FileSystemTelemetryBlobStorage.cs (1)
57var atSignIndex = lockedPath.LastIndexOf('@');
Microsoft.DotNet.GenFacades (1)
SourceGenerator.cs (1)
117int splitIndex = typeName.LastIndexOf('`');
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetUtils.cs (1)
15int lastSeparator = partName.LastIndexOf('/');
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
Storage\AzureStorageResultStore.cs (2)
183=> name.Substring(name.LastIndexOf('/') + 1); 186=> name.Substring(0, name.LastIndexOf('.'));
Microsoft.Extensions.AI.OpenAI (1)
OpenAIRealtimeClientSession.cs (1)
735int commaIndex = dataUri.LastIndexOf(',');
Microsoft.Extensions.Configuration.Abstractions (2)
ConfigurationPath.cs (2)
57int lastDelimiterIndex = path.LastIndexOf(':'); 73int lastDelimiterIndex = path.LastIndexOf(':');
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLoggerProvider.cs (1)
98int indexOfLastDot = traceSourceName.LastIndexOf('.');
Microsoft.Gen.BuildMetadata (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
58var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
58var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
58var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
58var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
58var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
58var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
58var index = n.LastIndexOf('.') + 1;
Microsoft.Maui (2)
Fonts\FontFile.cs (1)
110 var index = fontFamily.LastIndexOf('-');
Handlers\HybridWebView\FileExtensionContentTypeProvider.cs (1)
461 int index = path.LastIndexOf('.');
Microsoft.Maui.Controls.Build.Tasks (2)
CompiledMarkupExtensions\StaticExtension.cs (1)
23 var dotIdx = member.LastIndexOf('.');
SetPropertiesVisitor.cs (1)
691 var rbIndex = p.LastIndexOf(']');
Microsoft.Maui.Controls.Xaml (1)
MarkupExtensions\StaticExtension.cs (1)
26 var dotIdx = Member.LastIndexOf('.');
Microsoft.ML.Data (2)
Transforms\ColumnBindingsBase.cs (1)
846ich = str.LastIndexOf(':');
Transforms\SlotsDroppingTransformer.cs (1)
69int ich = str.LastIndexOf(':');
Microsoft.NET.Build.Tasks (3)
GenerateDepsFile.cs (1)
311int separator = runtimeIdentifier.LastIndexOf('-');
ProcessFrameworkReferences.cs (1)
621int separator = runtimeIdentifier.LastIndexOf('-');
ResolveReadyToRunCompilers.cs (1)
269int separator = runtimeIdentifier.LastIndexOf('-');
Microsoft.NET.ProjectData (1)
CacheFileReader.cs (1)
707 int lastSlash = portablePath.LastIndexOf('/');
Microsoft.NET.ProjectData.Tasks (3)
ValidateProjectDataPackagesTask.cs (3)
616 int separatorIndex = dependency.Name.LastIndexOf('/'); 809 int separatorIndex = resolvedPackage.ItemSpec.LastIndexOf('/'); 815 int separatorIndex = resolvedPackageIdentity.LastIndexOf('/');
Microsoft.TemplateEngine.Edge (2)
Mount\Archive\ZipFileMountPoint.cs (2)
92return new ZipFileFile(this, path, path.Substring(path.LastIndexOf('/') + 1), null); 106return new ZipFileDirectory(this, path, path.Substring(path.LastIndexOf('/') + 1));
Microsoft.TemplateEngine.Utils (1)
Glob.cs (1)
144i = test.LastIndexOf('/') + 1;
Microsoft.TestPlatform.AdapterUtilities (2)
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (1)
435var arityStart = name.LastIndexOf('`');
ManagedNameUtilities\ManagedNameParser.cs (1)
30int pos = managedTypeName.LastIndexOf('.');
Microsoft.TestPlatform.Utilities (1)
XmlUtilities.cs (1)
85var parentNode = xmlDocument.SelectSingleNode(nodeXPath.Substring(0, nodeXPath.LastIndexOf('/')));
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
Utility\Converter.cs (1)
606return nameToCheck.Substring(0, nameToCheck.LastIndexOf('.'));
Microsoft.Web.Xdt.Extensions (1)
InsertOrAppendAttribute.cs (1)
61var last = arg.LastIndexOf('\'');
Microsoft.Web.XmlTransform (1)
XmlAttributePreservingWriter.cs (1)
211writeBuffer.Remove(currentBuffer.LastIndexOf(' '), 1);
Mono.Cecil (2)
Mono.Cecil\TypeParser.cs (2)
81 var index = name.LastIndexOf ('`'); 310 var last_dot = fullname.LastIndexOf ('.');
Mono.Cecil.Pdb (1)
Microsoft.Cci.Pdb\PdbFunction.cs (1)
49int li = module.LastIndexOf('.');
Mono.Cecil.Rocks (3)
Mono.Cecil.Rocks\DocCommentId.cs (3)
234 var index = name.LastIndexOf ('`'); 259 var index = type.Name.LastIndexOf ('`'); 263 return type.Name.LastIndexOf ('`') == name.Length;
NuGet.Commands (2)
RestoreCommand\Utility\LockFileUtils.cs (2)
805int lastSeparator = path.LastIndexOf(Path.AltDirectorySeparatorChar); 975var firstItem = group.OrderBy(item => item.Path.LastIndexOf('/'))
NuGet.Configuration (1)
Settings\Settings.cs (1)
675var index = combinedPath.LastIndexOf(Path.DirectorySeparatorChar);
NuGet.Packaging (3)
ContentModel\ContentItemCollection.cs (2)
284ReadOnlyMemory<char> assemblyPrefix = assemblyPath.AsMemory(0, assemblyPath.LastIndexOf('.') + 1); 344int lastIndexOfDot = asset.Path.LastIndexOf('.');
PackageFileExtractor.cs (1)
78var fileSeparatorIndex = file.LastIndexOf('/');
NuGet.Protocol (1)
LegacyFeed\LegacyFeedCapabilityResourceV2Feed.cs (1)
202var lastIndex = packageEntityName.LastIndexOf('.');
NuGet.Versioning (3)
FloatRange.cs (3)
221var lastStarPosition = versionString.LastIndexOf('*'); 317if (IndexOf(versionString, '-') == versionString.LastIndexOf('-')) 319releasePrefix = actualVersion.Substring(versionString.LastIndexOf('-') + 1);
PresentationBuildTasks (32)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (1)
1077int pathEndIndex = fullFilePath.LastIndexOf(Path.DirectorySeparatorChar);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
540int pathEndIndex = fullFilePath.LastIndexOf(Path.DirectorySeparatorChar);
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
854int separatorIndex = uid.LastIndexOf(UidSeparator); 876int index = typeFullName.LastIndexOf('.');
MS\Internal\MarkupCompiler\MarkupCompiler.cs (5)
478int pathEndIndex = SourceFileInfo.RelativeSourceFilePath.LastIndexOf(Path.DirectorySeparatorChar); 689int fileExtIndex = file.Path.LastIndexOf(DOTCHAR); 1396int index = subClassFullName.LastIndexOf(DOTCHAR); 1425int index = className.LastIndexOf(DOTCHAR); 2489int dotIndex = baseClassFullName.LastIndexOf(DOTCHAR);
MS\Internal\MarkupCompiler\ParserExtension.cs (5)
198int lastIndex = xamlUnknownTagStartNode.Value.LastIndexOf(MarkupCompiler.DOTCHAR); 222int lastIndex = xamlUnknownTagEndNode.LocalName.LastIndexOf(MarkupCompiler.DOTCHAR); 258int lastIndex = localAttribName.LastIndexOf(MarkupCompiler.DOTCHAR); 836int index = xamlDefAttributeNode.Value.LastIndexOf(MarkupCompiler.DOTCHAR); 866int index = xamlDefAttributeNode.Value.LastIndexOf(MarkupCompiler.DOTCHAR);
MS\Internal\Tasks\CompilerWrapper.cs (2)
369int fileExtIndex = newRelativeFilePath.LastIndexOf(MarkupCompiler.DOTCHAR); 419int pathEndIndex = fullFilePath.LastIndexOf(Path.DirectorySeparatorChar);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (1)
1159int dotIndex = typeFullName.LastIndexOf('.');
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (3)
152int lastIndex = xamlUnknownTagStartNode.Value.LastIndexOf('.'); 269int lastIndex = localAttribName.LastIndexOf('.'); 387int dotIndex = member.LastIndexOf('.');
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (3)
167int lastIndex = xamlUnknownTagStartNode.Value.LastIndexOf('.'); 306int lastIndex = localAttribName.LastIndexOf('.'); 436int dotIndex = member.LastIndexOf('.');
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (5)
1084int dotIndex = propertyName.LastIndexOf('.'); 1554_childTag.Substring(_childTag.LastIndexOf('.') + 1); 1654int idx = longName.LastIndexOf('.'); 3591if (localName.LastIndexOf('.') != -1) 4482if (localName.LastIndexOf('.') != -1)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (3)
940int lastIndex = localName.LastIndexOf('.'); 2254typeIndex = typeName.LastIndexOf('.'); 3318int charIndex = _assemblyNames[k].LastIndexOf('\\');
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
963if (colonIndex <= 0 || colonIndex >= length - 1 || colonIndex != pair.LastIndexOf(':'))
PresentationCore (8)
MS\Internal\FontCache\FamilyCollection.cs (1)
375indexOfSpace = familyName.LastIndexOf(' ');
MS\Internal\FontCache\FontResourceCache.cs (1)
113int indexOfLastSlash = resourceFullName.LastIndexOf('/');
MS\Internal\FontCache\FontSource.cs (1)
391string fontFilename = _fontUri.OriginalString.Substring(_fontUri.OriginalString.LastIndexOf('/') + 1).ToLowerInvariant();
System\Windows\Input\Command\KeyGestureConverter.cs (1)
100index = fullName.LastIndexOf(MODIFIERS_DELIMITER);
System\Windows\Input\Command\MouseGestureConverter.cs (1)
62int Offset = fullName.LastIndexOf(MODIFIERS_DELIMITER);
System\Windows\Input\CursorConverter.cs (1)
104if (text.LastIndexOf('.') == -1)
System\Windows\Input\InputScopeNameConverter.cs (2)
96if (-1 != stringSource.LastIndexOf('.')) 97stringSource = stringSource.Substring(stringSource.LastIndexOf('.')+1);
PresentationFramework (32)
MS\Internal\Data\PropertyPathWorker.cs (1)
129int lastBracketIndex = s.LastIndexOf('[');
MS\Internal\Globalization\BamlResourceDeserializer.cs (4)
89_reader.Name.Substring(0, _reader.Name.LastIndexOf('.')), 115_reader.Name.Substring(0, _reader.Name.LastIndexOf('.')), 198_reader.Name.Substring(0, _reader.Name.LastIndexOf('.')), 267_reader.Name.Substring(0, _reader.Name.LastIndexOf('.')),
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
768int lastDot = fullTypeName.LastIndexOf('.');
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
244var lastSegment = moduleName.LastIndexOf('.');
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12513int dotIndex = filename.LastIndexOf('.');
System\Windows\Documents\TextRangeSerialization.cs (1)
569int index = elementTypeStandardized.Module.Name.LastIndexOf('.');
System\Windows\Documents\XamlToRtfWriter.cs (1)
2232int extensionIndex = imageName.LastIndexOf('.');
System\Windows\Input\Command\CommandConverter.cs (1)
229int Offset = localName.LastIndexOf('.');
System\Windows\Markup\BamlMapTable.cs (1)
1159int dotIndex = typeFullName.LastIndexOf('.');
System\Windows\Markup\BamlReader.cs (11)
386int index = info.Name.LastIndexOf('.'); 433int index = cpInfo.Name.LastIndexOf('.'); 1309typeName = typeName.Substring(typeName.LastIndexOf('.') + 1); 1433markupString = markupString.Substring(markupString.LastIndexOf('.') + 1); 1557typename = typename.Substring(typename.LastIndexOf('.') + 1); 1962_localName = _name.Substring(_name.LastIndexOf('.') + 1); 2081int index = nodeInfo.Name.LastIndexOf('.'); 2152int index = nodeInfo.Name.LastIndexOf('.'); 2410typeName = typeName.Substring(typeName.LastIndexOf('.') + 1); 2485typeName = typeName.Substring(typeName.LastIndexOf('.') + 1); 2599typeName = typeName.Substring(typeName.LastIndexOf('.') + 1);
System\Windows\Markup\BamlRecords.cs (1)
4385int periodIndex = _typeFullName.LastIndexOf('.');
System\Windows\Markup\DependencyPropertyConverter.cs (2)
138int lastIndex = value.LastIndexOf('.'); 150int lastIndex = value.LastIndexOf(':');
System\Windows\Markup\XamlTypeMapper.cs (5)
940int lastIndex = localName.LastIndexOf('.'); 1641int lastIndex = localName.LastIndexOf('.'); 1769int lastIndex = localName.LastIndexOf('.'); 2254typeIndex = typeName.LastIndexOf('.'); 3318int charIndex = _assemblyNames[k].LastIndexOf('\\');
System\Windows\PropertyPath.cs (1)
569int lastIndex = name.LastIndexOf('.');
ReachFramework (8)
Serialization\Manager\ReachDocumentSequenceSerializer.cs (1)
181int index = valueAsString.LastIndexOf('.');
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (1)
219int index = valueAsString.LastIndexOf('.');
Serialization\Manager\ReachFixedDocumentSerializer.cs (1)
260int index = valueAsString.LastIndexOf('.');
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (1)
300int index = valueAsString.LastIndexOf('.');
Serialization\Manager\ReachFixedPageSerializer.cs (1)
336int index = valueAsString.LastIndexOf('.');
Serialization\Manager\ReachFixedPageSerializerAsync.cs (1)
308int index = valueAsString.LastIndexOf('.');
Serialization\Manager\XpsOMFixedPageSerializer.cs (1)
294int index = valueAsString.LastIndexOf('.');
Serialization\VisualTreeFlattener.cs (1)
136int index = m_mainFile.LastIndexOf('.');
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
SelectTests (1)
Program.cs (1)
465.Select(p => p.Contains('/', StringComparison.Ordinal) ? p[..p.LastIndexOf('/')] : p)
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\EmailAddressAttribute.cs (1)
42index == valueAsString.LastIndexOf('@');
System.Configuration.ConfigurationManager (5)
System\Configuration\BaseConfigurationRecord.cs (1)
2142int lastSlash = configKey.LastIndexOf('/');
System\Configuration\ClientConfigPaths.cs (1)
335int lastDot = ns.LastIndexOf('.');
System\Configuration\ClientConfigurationHost.cs (1)
261int index = streamName.LastIndexOf('/');
System\Configuration\ConfigPathUtility.cs (1)
92int index = configPath.LastIndexOf(SeparatorChar);
System\Configuration\XmlUtil.cs (1)
894int iEndElement = formattedElement.LastIndexOf('\n') + 1;
System.Diagnostics.EventLog (2)
System\Diagnostics\EventLog.cs (2)
463int index = keyname.LastIndexOf('\\'); 755int whackPos = name.LastIndexOf('\\');
System.Diagnostics.Process (1)
src\runtime\src\libraries\Common\src\System\IO\StringParser.cs (1)
112int lastParen = _buffer.LastIndexOf(')');
System.DirectoryServices (1)
System\DirectoryServices\ActiveDirectory\Utils.cs (1)
1900int lastColon = serverName.LastIndexOf(':');
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
1547int index = sddlSid.LastIndexOf('-');
System.IO.Compression (1)
System\IO\Compression\ZipArchiveEntry.cs (1)
2214int i = path.LastIndexOf('/');
System.IO.Packaging (1)
System\IO\Packaging\XmlCompatibilityReader.cs (1)
899if (colonIndex <= 0 || colonIndex >= length - 1 || colonIndex != pair.LastIndexOf(':'))
System.Net.Http (6)
src\runtime\src\libraries\Common\src\System\Net\CredentialCacheKey.cs (2)
24UriPrefixLength = UriPrefix.AbsolutePath.LastIndexOf('/'); 124int uriPrefixLength = uriPrefix.AbsolutePath.LastIndexOf('/');
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (1)
502int lastQuoteIndex = input.LastIndexOf('\'');
System\Net\Http\HttpUtilities.cs (1)
26colonPos = hostHeader.LastIndexOf(':');
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (2)
190int separatorIndex = value.LastIndexOf('@'); 219separatorIndex = value.LastIndexOf(':');
System.Net.HttpListener (1)
System\Net\ServiceNameStore.cs (1)
69int colonIndex = hostAndPort.LastIndexOf(':'); // Allow IPv6 addresses
System.Net.NetworkInformation (1)
src\runtime\src\libraries\Common\src\System\IO\StringParser.cs (1)
112int lastParen = _buffer.LastIndexOf(')');
System.Net.Primitives (5)
src\runtime\src\libraries\Common\src\System\Net\CredentialCacheKey.cs (2)
24UriPrefixLength = UriPrefix.AbsolutePath.LastIndexOf('/'); 124int uriPrefixLength = uriPrefix.AbsolutePath.LastIndexOf('/');
System\Net\Cookie.cs (3)
440if (!path.StartsWith('/') || (lastSlash = path.LastIndexOf('/')) == 0) 451m_path = path.Substring(0, path.LastIndexOf('/')); // May be empty 457m_path = path.Substring(0, path.LastIndexOf('/') + 1);
System.Net.Requests (8)
System\Net\FtpControlStream.cs (7)
781int index = path.LastIndexOf('/'); 788index = path.LastIndexOf('/'); 974int end = str.LastIndexOf('('); 1019int pos1 = str.LastIndexOf('('); 1043int lastQuote = str.LastIndexOf('"'); 1083int pos1 = responseString.LastIndexOf('('); 1084int pos2 = responseString.LastIndexOf(')');
System\Net\HttpWebRequest.cs (1)
400_hostHasPort = endOfIPv6Address == -1 || value.LastIndexOf(':') > endOfIPv6Address;
System.Private.CoreLib (4)
src\runtime\src\libraries\Common\src\System\IO\StringParser.cs (1)
112int lastParen = _buffer.LastIndexOf(')');
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3189if (method.Name.LastIndexOf('.') >= 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.Unix.cs (1)
285int i = timeZoneId.LastIndexOf('/');
System\Reflection\Runtime\General\ThunkedApis.cs (1)
210int nsDelimiter = fullname.LastIndexOf('.');
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DataContract.cs (1)
1705int nsEnd = fullTypeName.LastIndexOf('.');
System.Private.Xml (13)
System\Xml\Dom\XmlEntityReference.cs (1)
187int nCount = baseURI.LastIndexOf('/') + 1;
System\Xml\Dom\XmlName.cs (1)
181return string.GetHashCode(name.AsSpan(name.LastIndexOf(':') + 1));
System\Xml\Serialization\Mappings.cs (2)
114int colon = name.LastIndexOf(':'); 251int colon = Name.LastIndexOf(':');
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
478int colon = xmlName.LastIndexOf(':');
System\Xml\Serialization\Types.cs (1)
1455int nsLen = type.LastIndexOf(':');
System\Xml\Serialization\XmlReflectionImporter.cs (2)
2028int colon = xmlName.LastIndexOf(':'); 2151int colon = choiceId.LastIndexOf(':');
System\Xml\Serialization\XmlSerializationReader.cs (3)
807int colon = attr.Value.LastIndexOf(':'); 1176int colon = value == null ? -1 : value.LastIndexOf(':'); 1956int colon = value.LastIndexOf(':');
System\Xml\Serialization\XmlSerializationWriter.cs (1)
4550int colon = xmlName.LastIndexOf(':');
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2301int colon = xmlName.LastIndexOf(':');
System.Private.Xml.Linq (1)
System\Xml\Linq\XName.cs (1)
77int i = expandedName.LastIndexOf('}');
System.Reflection.Emit (1)
System\Reflection\Emit\TypeBuilderImpl.cs (1)
65int idx = _name.LastIndexOf('.');
System.Reflection.Metadata (1)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
246int lastIndex = childName.LastIndexOf('.');
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Helpers.cs (1)
199int indexOfLastDot = fullName.LastIndexOf('.');
System\Reflection\TypeLoading\Modules\RoModule.cs (1)
53int i = s.LastIndexOf(Path.DirectorySeparatorChar);
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
481int nestedTypeIndex = originalName.LastIndexOf('.'); 1134int nestedTypeIndex = dataContractName.LastIndexOf('.');
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
420return path.Substring(0, path.LastIndexOf('/') + 1);
System.ServiceModel.Primitives (4)
System\ServiceModel\Channels\BindingContext.cs (1)
113builder.Append(typeString.Substring(typeString.LastIndexOf('.') + 1));
System\ServiceModel\Channels\ChannelRequirements.cs (2)
278contractChannelTypes.Append(typeString.Substring(typeString.LastIndexOf('.') + 1)); 322bindingChannelTypes.Append(typeString.Substring(typeString.LastIndexOf('.') + 1));
System\ServiceModel\FaultReason.cs (1)
117int idx = localLang.LastIndexOf('-');
System.Speech (4)
Internal\ObjectToken\RegistryDataKey.cs (1)
303int iPosSlash = _sKeyId.LastIndexOf('\\');
Internal\Synthesis\TextFragmentEngine.cs (2)
72int posSlash = baseUri.LastIndexOf('/'); 75posSlash = baseUri.LastIndexOf('\\');
Result\RecognizedPhrase.cs (1)
1107return name.Substring(0, name.LastIndexOf('_'));
System.Windows.Forms (7)
System\Resources\ResxFileRef.Converter.cs (1)
53int lastIndexOfQuote = stringValue.LastIndexOf('"');
System\Windows\Forms\Application.cs (1)
597int lastDot = ns.LastIndexOf('.');
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (2)
91int comma = typeName.LastIndexOf(','); 100int lastDot = typeName.LastIndexOf('.');
System\Windows\Forms\DataBinding\BindingContext.cs (1)
260int lastDot = dataMember.LastIndexOf('.');
System\Windows\Forms\DataBinding\BindingMemberInfo.cs (1)
15int lastDot = dataMember.LastIndexOf('.');
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
250int i = SupportMultiDottedExtensions ? ext.IndexOf('.') : ext.LastIndexOf('.');
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
869int dotIndex = typeName.LastIndexOf('.');
System\Windows\Forms\Design\DesignBinding.cs (1)
31int lastDot = DataMember.LastIndexOf('.');
System.Xaml (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
963if (colonIndex <= 0 || colonIndex >= length - 1 || colonIndex != pair.LastIndexOf(':'))
vstest.console (3)
Internal\FilePatternParser.cs (3)
110pathBeforeWildCard.LastIndexOf(Path.DirectorySeparatorChar), 111pathBeforeWildCard.LastIndexOf(Path.AltDirectorySeparatorChar)); 116directorySeparatorIndex = pathBeforeWildCard.LastIndexOf(Path.DirectorySeparatorChar);
vstest.console.arm64 (3)
parent\vstest.console\Internal\FilePatternParser.cs (3)
110pathBeforeWildCard.LastIndexOf(Path.DirectorySeparatorChar), 111pathBeforeWildCard.LastIndexOf(Path.AltDirectorySeparatorChar)); 116directorySeparatorIndex = pathBeforeWildCard.LastIndexOf(Path.DirectorySeparatorChar);