327 references to LastIndexOf
Aspire.Azure.Npgsql (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
119var lastSlashIndex = xms_mirid.LastIndexOf('/');
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
119var lastSlashIndex = xms_mirid.LastIndexOf('/');
Aspire.Dashboard (1)
Otlp\Storage\ApplicationKey.cs (1)
24var separator = instanceId.LastIndexOf('-');
Crossgen2Tasks (1)
ResolveReadyToRunCompilers.cs (1)
211int 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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
illink (9)
ILLink.RoslynAnalyzer (6)
src\tools\illink\src\ILLink.Shared\DataFlow\CompilerGeneratedNames.cs (4)
30int i = typeName.LastIndexOf('>'); 42int i = fieldName.LastIndexOf('>'); 63int i = methodName.LastIndexOf('>'); 81int i = methodName.LastIndexOf('>');
TrimAnalysis\ParameterProxy.cs (2)
59public 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);
Metrics (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Metrics.Legacy (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Microsoft.AspNetCore.Components (1)
NavigationManager.cs (1)
320var lastSlashIndex = baseUri.LastIndexOf('/');
Microsoft.AspNetCore.Components.WebView (1)
FileExtensionContentTypeProvider.cs (1)
461int index = path.LastIndexOf('.');
Microsoft.AspNetCore.Components.WebView.Photino (2)
PhotinoWebViewManager.cs (2)
51var hasFileExtension = url.LastIndexOf('.') > url.LastIndexOf('/');
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ViewEnginePath.cs (1)
30var index = first.LastIndexOf('/');
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
71var index = pageRoute.LastIndexOf('/');
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
TestInfrastructure\DirectoryNode.cs (1)
99var fileNameIndex = path.LastIndexOf('/');
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\PageRouteModelFactory.cs (1)
71var index = pageRoute.LastIndexOf('/');
Microsoft.AspNetCore.Mvc.TagHelpers (4)
GlobbingUrlBuilder.cs (4)
190var xExtIndex = x.LastIndexOf('.'); 191var yExtIndex = y.LastIndexOf('.'); 194var xSlashIndex = x.LastIndexOf('/'); 195var 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)
110var backtickIndex = type.Name.LastIndexOf('`');
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\Request.cs (1)
537var index = transferEncoding.LastIndexOf(',');
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.cs (1)
912var index = transferEncoding.LastIndexOf(',');
Microsoft.AspNetCore.StaticFiles (1)
FileExtensionContentTypeProvider.cs (1)
455int index = path.LastIndexOf('.');
Microsoft.AspNetCore.WebUtilities.Tests (1)
HttpRequestStreamReaderTest.cs (1)
167Assert.Equal((valueString.Substring(valueString.LastIndexOf('\n') + 1)), data);
Microsoft.Build (6)
Construction\ProjectElementContainer.cs (1)
587var lastIndexOfNewLine = leadingWhiteSpace.LastIndexOf('\n');
Evaluation\Expander.cs (2)
1707int lastAtSignOffset = registryLocation.LastIndexOf('@'); 4294assemblyNameEnd = baseName.LastIndexOf('.');
FileMatcher.cs (1)
1622int rightmostColon = filespec.LastIndexOf(':');
Logging\TerminalLogger\TerminalNodesFrame.cs (1)
73int lastDotInProject = project.LastIndexOf('.');
Modifiers.cs (1)
461if (fullPath.IndexOf(':') != fullPath.LastIndexOf(':'))
Microsoft.Build.Framework (1)
NativeMethods.cs (1)
1410string[] statFields = line.Substring(line.LastIndexOf(')')).Split(MSBuildConstants.SpaceChar, 4);
Microsoft.Build.Tasks.Core (4)
BootstrapperUtil\Util.cs (1)
33if (str.LastIndexOf(ch) == str.Length - 1)
FileMatcher.cs (1)
1622int rightmostColon = filespec.LastIndexOf(':');
Modifiers.cs (1)
461if (fullPath.IndexOf(':') != fullPath.LastIndexOf(':'))
ResourceHandling\MSBuildResXReader.cs (1)
340int lastIndexOfQuote = stringValue.LastIndexOf('"');
Microsoft.Build.Utilities.Core (2)
FileMatcher.cs (1)
1622int rightmostColon = filespec.LastIndexOf(':');
Modifiers.cs (1)
461if (fullPath.IndexOf(':') != fullPath.LastIndexOf(':'))
Microsoft.CodeAnalysis (1)
MetadataReader\PEModule.cs (1)
840int index = typeName.LastIndexOf('.');
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Microsoft.CodeAnalysis.CodeStyle (1)
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)
107var idx = fullName.LastIndexOf('.');
Symbols\Synthesized\GeneratedNameParser.cs (1)
147int lastUnder = fieldName.LastIndexOf('_');
Symbols\Synthesized\GeneratedNames.cs (1)
423var nameEndIndex = name.LastIndexOf('}');
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\Indentation\CSharpFormatterTestsBase.cs (1)
78var index = line.ToString().LastIndexOf(ch);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
37int lastDotIndex = qualifiedMethodName.LastIndexOf('.');
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (2)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (1)
147int lastUnder = fieldName.LastIndexOf('_');
src\ExpressionEvaluator\CSharp\Source\ResultProvider\CSharpFormatter.cs (1)
83int lastQuote = expression.LastIndexOf('"') + 1;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
IncrementalParsing\IncrementalParsingTests.cs (1)
3450var span = new TextSpan(text.LastIndexOf('x'), 0);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
261return name.LastIndexOf('.') is var index && index >= 0 ? name[(index + 1)..] : name;
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
253var nameExtensionSplitIndex = mostRecentHeaderText.LastIndexOf('.');
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
190var lastDotIndex = symbolMetadataName.LastIndexOf('.');
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
MetadataUtilities.cs (1)
376var lastDotIndex = fileName.LastIndexOf('.');
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (4)
MetadataDecoder.cs (1)
287int index = typeName.LastIndexOf('`');
MetadataResolver.cs (2)
292var lastDot = metadataName.LastIndexOf('.'); 458int index = typeName.LastIndexOf('`');
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (1)
147int lastUnder = fieldName.LastIndexOf('_');
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\MemberAndDeclarationInfo.cs (1)
231var dotPos = _member.Name.LastIndexOf('.');
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\MemberAndDeclarationInfo.cs (1)
231var dotPos = _member.Name.LastIndexOf('.');
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (1)
RazorAnalyzerAssemblyResolverTests.cs (1)
51var i = simpleName.LastIndexOf('.');
Microsoft.CodeAnalysis.Features (6)
CodeFixes\Configuration\ConfigurationUpdater.cs (2)
577var nameExtensionSplitIndex = mostRecentHeaderText.LastIndexOf('.'); 602var matchWithoutExtension = match[..match.LastIndexOf('.')];
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (3)
83var lastPlus = fullyQualifiedTypeName.LastIndexOf('+'); 84var lastDot = fullyQualifiedTypeName.LastIndexOf('.'); 127var backtickIndex = typeName.LastIndexOf('`');
Snippets\SnippetFunctionService.cs (1)
115var paramLength = xmlFunctionText.LastIndexOf(')') - xmlFunctionText.IndexOf('(') - 1;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
AbstractResxGenerator.cs (1)
805var lastDot = fullName.LastIndexOf('.');
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.VisualBasic.ResultProvider (1)
src\ExpressionEvaluator\VisualBasic\Source\ResultProvider\VisualBasicFormatter.vb (1)
65Dim lastQuote As Integer = expression.LastIndexOf(""""c) + 1
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
CompilationTestUtils.vb (1)
486Dim endBindCommentLength = commentText.LastIndexOf(""""c)
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
81var index = fullName.LastIndexOf('.');
PatternMatching\PatternMatcher.cs (1)
100var dotIndex = pattern.LastIndexOf('.');
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
145var position = name.LastIndexOf('.');
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1206fullPath.LastIndexOf(Path.DirectorySeparatorChar);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\ProjectSemanticVersionTests.cs (3)
44var position = text.ToString().LastIndexOf('{') + 1; 58var position = text.ToString().LastIndexOf('{') + 1; 72var position = text.ToString().LastIndexOf('(') + 1;
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
460int lastDot = fullName.LastIndexOf('.');
Microsoft.DotNet.Build.Tasks.Packaging (2)
NuGetAssetResolver.cs (1)
105int dirLength = contentItem.Path.LastIndexOf(Path.AltDirectorySeparatorChar);
PackageItem.cs (1)
58int dirLength = TargetPath.LastIndexOf('/');
Microsoft.DotNet.GenFacades (1)
SourceGenerator.cs (1)
118int splitIndex = typeName.LastIndexOf('`');
Microsoft.DotNet.Helix.Sdk (1)
DownloadFromResultsContainer.cs (1)
117var strippedFileUri = new Uri(fileAvailableForDownload.Link.Substring(0, fileAvailableForDownload.Link.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)
182=> name.Substring(name.LastIndexOf('/') + 1); 185=> name.Substring(0, name.LastIndexOf('.'));
Microsoft.Extensions.Configuration.Abstractions (2)
ConfigurationPath.cs (2)
57int lastDelimiterIndex = path.LastIndexOf(':'); 73int lastDelimiterIndex = path.LastIndexOf(':');
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
108var lastDotIndex = fullyQualifiedMetadataName.LastIndexOf('.');
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLoggerProvider.cs (1)
98int indexOfLastDot = traceSourceName.LastIndexOf('.');
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
59var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
59var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
59var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
59var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
59var index = n.LastIndexOf('.') + 1;
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
59var 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.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
416Dim manglingCharIndex As Integer = name.LastIndexOf(chGenericManglingChar)
Microsoft.VisualStudio.LanguageServices (9)
ErrorReporting\VisualStudioErrorReportingService.ExceptionFormatting.cs (2)
140var start = fullName.LastIndexOf('<'); 141var end = fullName.LastIndexOf('>');
GenerateType\GenerateTypeDialogViewModel.cs (3)
301var lastIndexOfSeparatorInFullPath = this.FullFilePath.LastIndexOf('\\'); 357var lastIndexOfSeparator = this.FullFilePath.LastIndexOf('\\'); 391var indexOfLastSeparator = implicitPathContainer.LastIndexOf('\\');
MoveStaticMembers\MoveStaticMembersDialogViewModel.cs (2)
47var lastDot = _destinationName.FullyQualifiedTypeName.LastIndexOf('.'); 56var lastDot = _destinationName.FullyQualifiedTypeName.LastIndexOf('.');
Venus\ContainedLanguageCodeSupport.cs (2)
327var newName = newFullyQualifiedName[(newFullyQualifiedName.LastIndexOf('.') + 1)..]; 419var lastDot = fullyQualifiedName.LastIndexOf('.');
Microsoft.Web.Xdt.Extensions (1)
InsertOrAppendAttribute.cs (1)
61var last = arg.LastIndexOf('\'');
MSBuild (1)
Modifiers.cs (1)
461if (fullPath.IndexOf(':') != fullPath.LastIndexOf(':'))
MSBuildTaskHost (1)
Modifiers.cs (1)
461if (fullPath.IndexOf(':') != fullPath.LastIndexOf(':'))
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); 702int fileExtIndex = file.Path.LastIndexOf(DOTCHAR); 1409int index = subClassFullName.LastIndexOf(DOTCHAR); 1438int index = className.LastIndexOf(DOTCHAR); 2502int 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); 840int index = xamlDefAttributeNode.Value.LastIndexOf(MarkupCompiler.DOTCHAR); 870int 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\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (1)
1159int dotIndex = typeFullName.LastIndexOf('.');
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\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\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (5)
1087int dotIndex = propertyName.LastIndexOf('.'); 1557_childTag.Substring(_childTag.LastIndexOf('.') + 1); 1657int idx = longName.LastIndexOf('.'); 3594if (localName.LastIndexOf('.') != -1) 4485if (localName.LastIndexOf('.') != -1)
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\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)
355string 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 (33)
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)
12522int dotIndex = filename.LastIndexOf('.');
System\Windows\Documents\FixedPageStructure.cs (1)
474int indexofDot = typeString.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)
575int lastIndex = name.LastIndexOf('.');
ReachFramework (9)
AlphaFlattener\PrimitiveList.cs (1)
92typ = typ.Substring(typ.LastIndexOf('.') + 1);
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Roslyn.VisualStudio.Next.UnitTests (2)
Services\PerformanceTrackerServiceTests.cs (2)
227return line[1..line.LastIndexOf('"')]; 238return line[(line.LastIndexOf('"') + 2)..];
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\EmailAddressAttribute.cs (1)
42index == valueAsString.LastIndexOf('@');
System.Configuration.ConfigurationManager (5)
System\Configuration\BaseConfigurationRecord.cs (1)
2146int 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.Process (1)
src\libraries\Common\src\System\IO\StringParser.cs (1)
111int lastParen = _buffer.LastIndexOf(')');
System.IO.Compression (1)
System\IO\Compression\ZipArchiveEntry.cs (1)
1373int 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\libraries\Common\src\System\Net\CredentialCacheKey.cs (2)
24UriPrefixLength = UriPrefix.AbsolutePath.LastIndexOf('/'); 116int uriPrefixLength = uriPrefix.AbsolutePath.LastIndexOf('/');
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (1)
502int lastQuoteIndex = input.LastIndexOf('\'');
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
248colonPos = hostHeader.LastIndexOf(':');
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (2)
170int separatorIndex = value.LastIndexOf('@'); 191separatorIndex = value.LastIndexOf(':');
System.Net.HttpListener (1)
System\Net\ServiceNameStore.cs (1)
69int colonIndex = hostAndPort.LastIndexOf(':'); // Allow IPv6 addresses
System.Net.NetworkInformation (1)
src\libraries\Common\src\System\IO\StringParser.cs (1)
111int lastParen = _buffer.LastIndexOf(')');
System.Net.Primitives (5)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (2)
24UriPrefixLength = UriPrefix.AbsolutePath.LastIndexOf('/'); 116int 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)
779int index = path.LastIndexOf('/'); 786index = path.LastIndexOf('/'); 972int end = str.LastIndexOf('('); 1017int pos1 = str.LastIndexOf('('); 1041int lastQuote = str.LastIndexOf('"'); 1081int pos1 = responseString.LastIndexOf('('); 1082int pos2 = responseString.LastIndexOf(')');
System\Net\HttpWebRequest.cs (1)
400_hostHasPort = endOfIPv6Address == -1 || value.LastIndexOf(':') > endOfIPv6Address;
System.Private.CoreLib (7)
src\libraries\Common\src\System\IO\StringParser.cs (1)
111int lastParen = _buffer.LastIndexOf(')');
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3289if (method.Name.LastIndexOf('.') >= 0)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.Unix.cs (1)
285int i = timeZoneId.LastIndexOf('/');
src\System\Exception.CoreCLR.cs (1)
268if (helpFile is null || (poundPos = helpFile.LastIndexOf('#')) == -1)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
417int iLast = name.LastIndexOf('.');
src\System\Reflection\RuntimeModule.cs (1)
500int i = s.LastIndexOf(IO.Path.DirectorySeparatorChar);
src\System\RuntimeType.CoreCLR.cs (1)
2035int nsDelimiter = fullname.LastIndexOf('.');
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DataContract.cs (1)
1680int 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(':'); 236int colon = Name.LastIndexOf(':');
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
320int colon = xmlName.LastIndexOf(':');
System\Xml\Serialization\Types.cs (1)
1392int nsLen = type.LastIndexOf(':');
System\Xml\Serialization\XmlReflectionImporter.cs (2)
2012int colon = xmlName.LastIndexOf(':'); 2135int colon = choiceId.LastIndexOf(':');
System\Xml\Serialization\XmlSerializationReader.cs (3)
792int colon = attr.Value.LastIndexOf(':'); 1141int colon = value == null ? -1 : value.LastIndexOf(':'); 1905int colon = value.LastIndexOf(':');
System\Xml\Serialization\XmlSerializationWriter.cs (1)
4465int colon = xmlName.LastIndexOf(':');
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2258int 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)
66int idx = _name.LastIndexOf('.');
System.Reflection.Metadata (1)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
257int lastIndex = childName.LastIndexOf('.');
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Helpers.cs (1)
211int 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)
474int nestedTypeIndex = originalName.LastIndexOf('.'); 1119int nestedTypeIndex = dataContractName.LastIndexOf('.');
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
420return path.Substring(0, path.LastIndexOf('/') + 1);
System.Windows.Forms (7)
System\Resources\ResxFileRef.Converter.cs (1)
53int lastIndexOfQuote = stringValue.LastIndexOf('"');
System\Windows\Forms\Application.cs (1)
487int 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\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
963if (colonIndex <= 0 || colonIndex >= length - 1 || colonIndex != pair.LastIndexOf(':'))
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
207listeningUrlString.AsSpan(listeningUrlString.LastIndexOf(':')));
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
207listeningUrlString.AsSpan(listeningUrlString.LastIndexOf(':')));
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
207listeningUrlString.AsSpan(listeningUrlString.LastIndexOf(':')));
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
207listeningUrlString.AsSpan(listeningUrlString.LastIndexOf(':')));
Templates.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
207listeningUrlString.AsSpan(listeningUrlString.LastIndexOf(':')));
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
131var lineBreak = text.LastIndexOf('\n');
VisualBasicSyntaxGenerator (1)
Util\WriteUtils.vb (1)
564Dim split As Integer = text.Substring(0, LineLength).LastIndexOf(" "c)
WinFormsControlsTest (1)
RichTextBoxes.cs (1)
66int index = prefix.LastIndexOf('\n');