1262 references to Substring
AnalyzerRunner (3)
Options.cs (3)
162var expression = new Regex(arg.Substring("/editperf:".Length), RegexOptions.Compiled | RegexOptions.IgnoreCase); 166testDocumentIterations = int.Parse(arg.Substring("/edititer:".Length)); 169iterations = int.Parse(arg.Substring("/iter:".Length));
Aspire.Azure.Messaging.EventHubs (1)
EventHubsComponent.cs (1)
79var slug = Guid.NewGuid().ToString().Substring(24);
Aspire.Azure.Messaging.ServiceBus (1)
AzureMessagingServiceBusSettings.cs (1)
147SubscriptionName = entityPath.Substring(subscriptionsIndex + subscriptionsSegment.Length);
Aspire.Dashboard (4)
Components\Controls\Chart\ChartContainer.razor.cs (1)
287var id = newTab.Id?.Substring("tab-".Length);
Components\Pages\Resources.razor.cs (1)
775var id = newTab.Id?.Substring("tab-".Length);
Otlp\Storage\ApplicationKey.cs (2)
25return new ApplicationKey(name, instanceId.Substring(name.Length + 1)); 37return new ApplicationKey(Name: instanceId.Substring(0, separator), InstanceId: instanceId.Substring(separator + 1));
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
220InfoTable = ProjectInfo.Parse(line.Substring("$ENDPOINTS: ".Length));
Aspire.Hosting (1)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
127var relativePath = file.Substring(fullPath.Length + 1);
Aspire.Hosting.Garnet.Tests (1)
AddGarnetTests.cs (1)
317Assert.DoesNotContain("--checkpointdir", args.Substring(saveIndex + 1));
Aspire.Hosting.Kubernetes (1)
KubernetesPublishingContext.cs (1)
153resourceName = resourceName.Substring(baseName.Length + 1); // +1 for the hyphen
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
655Assert.DoesNotContain("--save", args.Substring(saveIndex + 1));
Aspire.Hosting.Valkey.Tests (1)
AddValkeyTests.cs (1)
307Assert.DoesNotContain("--save", args.Substring(saveIndex + 1));
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
220InfoTable = ProjectInfo.Parse(line.Substring("$ENDPOINTS: ".Length));
BasicWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
32.ToDictionary(kvp => kvp.Key.Substring("link_".Length), kvp => (object)kvp.Value[0]);
BoundTreeGenerator (2)
BoundNodeClassWriter.cs (2)
1062name = name.Substring(5); 1849name = char.ToLowerInvariant(name[0]) + name.Substring(1);
BuildActionTelemetryTable (3)
Program.cs (3)
136var fnvHash = telemetryId.Substring(19); 292part = part.Substring(prefix.Length); 339part = part.Substring(description.Length).TrimStart();
BuildBoss (2)
CompilerNuGetCheckerUtil.cs (1)
250var buildAssetRelativePath = buildAssetFilePath.Substring(tuple.BuildOutputDirectory.Length + 1);
Extensions.cs (1)
19relativeName = relativeName.Substring(1);
BuildValidator (2)
CompilationDiff.cs (1)
296string getRelativePath(string dataFilePath) => dataFilePath.Substring(debugPath.Length);
LocalSourceResolver.cs (1)
36onDiskPath = Path.GetFullPath(Path.Combine(Options.SourcePath, originalFilePath.Substring(link.Prefix.Length)));
Client.ExpectedExceptions.IntegrationTests (1)
ExpectedExceptionTests.4.1.0.cs (1)
97string uniqueIdentifier = restartServiceAddress.Substring(restartServiceAddress.LastIndexOf("/") + 1);
ClientSample (5)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
503identifier = char.ToUpperInvariant(identifier[1]) + identifier.Substring(2);
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\Specs\TypeIndex.cs (2)
122displayString = displayString.Substring(GlobalPrefix.Length); 128displayString = char.ToUpperInvariant(displayString[0]) + displayString.Substring(1);
Crossgen2Tasks (2)
CommonFilePulledFromSdkRepo\Logger.cs (1)
98format = format.Substring(12);
ResolveReadyToRunCompilers.cs (1)
217string architectureStr = runtimeIdentifier.Substring(separator + 1).ToLowerInvariant();
CSharpSyntaxGenerator (1)
AbstractFileWriter.cs (1)
267name = char.ToLowerInvariant(name[0]) + name.Substring(1);
CustomPolicyProvider (1)
Authorization\MinimumAgePolicyProvider.cs (1)
42int.TryParse(policyName.Substring(POLICY_PREFIX.Length), out var age))
dotnet-dev-certs (5)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
dotnet-getdocument (5)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
dotnet-openapi (5)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
dotnet-razorpagegenerator (1)
Program.cs (1)
99var viewDirPath = viewDir.Substring(targetProjectDirectory.Length).Replace('\\', '/');
dotnet-sql-cache (5)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
dotnet-svcutil.xmlserializer (7)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (7)
31name = name.Substring(2); 36abbreviation = abbreviation.Substring(1); 65other = other.Substring(2); 67other = other.Substring(1); 180arg = arg.Substring(1); 182arg = arg.Substring(2); 196argValue = arg.Substring(delim + 1);
dotnet-svcutil-lib (79)
CodeDomFixup\StringHelpers.cs (1)
13return s.StartsWith(prefix, StringComparison.Ordinal) ? s.Substring(prefix.Length) : s;
CommandLineParser.cs (4)
40this.Name = name.Substring(FullSwitchIndicator.Length); 49this.Abbreviation = abbreviation.Substring(AbbreviationSwitchIndicator.Length); 92otherName = other.Substring(FullSwitchIndicator.Length).ToLowerInvariant(); 97otherName = other.Substring(AbbreviationSwitchIndicator.Length).ToLowerInvariant();
FrameworkFork\Microsoft.CodeDom\Compiler\RedistVersionInfo.cs (1)
57String versionWithoutV = versionVal.Substring(1);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
3631value = value.Substring(1); 3785sb.Append(CreateEscapedIdentifier(baseType.Substring(lastIndex)));
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
1949lnameStr = _xnt.Add(prefixStr.Substring(6));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingWriter.cs (1)
189text = text.Substring(i + 2);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (2)
5932_curNode.SetValue(_curNode.StringValue.Substring(_readValueOffset)); 5948_curNode.SetValue(_curNode.StringValue.Substring(_readValueOffset));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (1)
1276localName = name.Substring(colonPos + 1);
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (2)
296_nameTable.Add(docTypeName.Substring(colonPos + 1))); 1507Throw(_curPos - systemId.Length - 1, ResXml.Xml_FragmentId, new string[] { systemId.Substring(systemId.IndexOf('#')), systemId });
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
980name = name.Substring(idx + 1);
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (1)
1791if (s.Substring(i) == "INF")
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (1)
530Uri ruri = _xmlResolver.ResolveUri(_baseUri, uri.Substring(x_schema.Length));
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (1)
337string url = uri.Substring(x_schema.Length);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (3)
43return char.ToUpperInvariant(identifier[0]).ToString() + identifier.Substring(1); 58return char.ToLowerInvariant(identifier[0]).ToString() + identifier.Substring(1); 191int arguments = Int32.Parse(name.Substring(nameEnd + 1), CultureInfo.InvariantCulture) + index;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
116return new XmlQualifiedName(XmlConvert.EncodeLocalName(name.Substring(colon + 1)), XmlConvert.EncodeLocalName(name.Substring(0, colon))).ToString(); 238Name = Name.Substring("xml:".Length);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1417dims = type.Substring(nameLen);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (2)
1999string choiceName = colon < 0 ? xmlName : xmlName.Substring(colon + 1); 2121string choiceName = colon < 0 ? choiceId : choiceId.Substring(colon + 1);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (2)
572System.Diagnostics.Debug.Assert(memberInfos.ContainsKey(source.Substring(3))); 573MemberInfo memInfo = memberInfos[source.Substring(3)];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (4)
819attr.Value = _r.LookupNamespace(attr.Value.Substring(0, colon)) + ":" + attr.Value.Substring(colon + 1); 1203string localName = value.Substring(colon + 1); 1521fixupReference = href.Substring(1); 2005xsiTypeName = (colon >= 0) ? value.Substring(colon + 1) : value;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (4)
560Int64 index = Int64.Parse(name.Substring(prefixLength), CultureInfo.InvariantCulture); 983_w.WriteAttributeString(prefix, localName.Substring(colon + 1), ns, value); 1017_w.WriteStartAttribute(prefix, localName.Substring(colon + 1), ns); 3681string choiceName = colon < 0 ? xmlName : xmlName.Substring(colon + 1);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
2395string choiceName = colon < 0 ? xmlName : xmlName.Substring(colon + 1); 2601Debug.Assert(initValue.MemberInfo.Name == initValue.Arg.Substring(3));
FrameworkFork\Microsoft.Xml\Xml\ValidateNames.cs (1)
314localName = s.Substring(colonOffset + 1);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\StringFunctions.cs (2)
162return (idx < 0) ? string.Empty : s1.Substring(idx + s2.Length); 202return str1.Substring((int)num);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
474string nestedTypeName = XmlConvert.DecodeName(originalName.Substring(nestedTypeIndex + 1)); 1434AddToNamespace(builder, uriString.Substring(Globals.DataContractXsdBaseNamespace.Length), fragments);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (5)
1676typeName = DataContract.GetClrTypeFullName(type).Substring(nsLen).Replace('+', '.'); 1743localName.Append(typeName.Substring(startIndex)); 1757nestedParamCounts.Add(Int32.Parse(typeName.Substring(endIndex + 1), CultureInfo.InvariantCulture)); 1827localName = fullTypeName.Substring(nsEnd + 1).Replace('+', '.'); 1836return uriString.StartsWith(Globals.DataContractXsdBaseNamespace, StringComparison.Ordinal) ? uriString.Substring(Globals.DataContractXsdBaseNamespace.Length) : uriString;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
458name = qname.Substring(colon + 1);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (3)
559localName = name.Substring(index + 1); 1036localName = name.Substring(index + 1); 1169_value = value.Substring(actual);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
495localName = Trim(qname.Substring(index + 1));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\UrlUtility.cs (2)
48query = query.Substring(1); 75return UrlPathEncode(str.Substring(0, i)) + str.Substring(i);
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
423SecurityKeyIdentifierClause clause = new LocalIdKeyIdentifierClause(uri.Substring(1), derivationNonce, derivationLength, tokenTypes);
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\Channels\HttpChannelFactory.cs (1)
633uriBuilder.Query = requestProperty.QueryString.Substring(1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageProperty.cs (1)
306return query.Length > 0 ? query.Substring(1) : string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (1)
193charSet = contentType.Substring(charsetValueIndex);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
938return interfaceName.Substring(1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
160_defaultName = _method.Name.Substring(5);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (2)
40return baseUri + (path.StartsWith("/", StringComparison.Ordinal) ? path.Substring(1) : path); 927return method.Name.Substring(BeginMethodNamePrefix.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ReferenceList.cs (1)
127return uri.Substring(1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2978message.Substring(message.Length - (MaxLength - Ellipsis.Length) / 2));
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (2)
75return s.Substring(i); 117localName = TrimEnd(qname.Substring(index + 1));
Metadata\HttpAuthenticationHelper.cs (3)
102realm = GetRealmFromChallenge(challenge.Substring(spaceIndex + 1).Trim()); 147string value = challenge.Substring(realmTokenStart.Length); 172challenge = challenge.Substring(i + 1);
Metadata\MetadaExchangeResolver.cs (1)
460return paramDecl.Substring(equals + 1).Trim(new char[] { ' ', '\'', '\"', '\t' });
Shared\FrameworkInfo.cs (1)
53string versionString = fullFrameworkName.Substring(i);
Shared\MSBuildProj.cs (1)
426elementStr = elementStr.Substring(2).TrimEnd(')');
Shared\Utilities\LogTag.cs (1)
69value = message.Substring(tag.Length);
Shared\Utilities\PathHelper.cs (1)
186string str = childDir.Name.Substring(directoryName.Length);
dotnet-svcutil-lib.Tests (1)
TestInit.cs (1)
576g_SvcutilPkgVersion = nugetId.Substring("dotnet-svcutil-lib.".Length);
dotnet-user-jwts (6)
Helpers\ConsoleTable.cs (1)
123rows[i][j] = rows[i][j].Substring(columnLengths[j]);
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
dotnet-user-secrets (5)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
GenerateDocumentationAndConfigFiles (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
GenericHostWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
32.ToDictionary(kvp => kvp.Key.Substring("link_".Length), kvp => (object)kvp.Value[0]);
GetDocument.Insider (5)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
809var length = int.Parse(headers.Single(h => h.StartsWith("Content-Length: ", StringComparison.Ordinal)).Substring("Content-Length: ".Length), CultureInfo.InvariantCulture);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
809var length = int.Parse(headers.Single(h => h.StartsWith("Content-Length: ", StringComparison.Ordinal)).Substring("Content-Length: ".Length), CultureInfo.InvariantCulture);
illink (10)
ILLink.RoslynAnalyzer (1)
TrimAnalysis\ParameterProxy.cs (1)
59public partial bool IsTypeOf(string typeName) => ParameterType.IsTypeOf(typeName.Substring(0, typeName.LastIndexOf('.')), typeName.Substring(1 + typeName.LastIndexOf('.')));
ILLink.Tasks (2)
CreateRuntimeRootDescriptorFile.cs (2)
526classNamespace = classNamespace.Substring(prefixToRemove.Length); 602string defineName = line.Substring(ifdefLength);
Infrastructure.Common (1)
JsonSerializer.cs (1)
44string value = pair.Substring(colonPos + 1).Replace("\"", String.Empty).Trim();
InMemory.FunctionalTests (7)
Http2\Http2TestBase.cs (1)
334var expectedBytes = int.Parse(context.Request.Path.Value.Substring(1), CultureInfo.InvariantCulture);
Http3\Http3TestBase.cs (1)
76var expectedBytes = int.Parse(context.Request.Path.Value.Substring(1), CultureInfo.InvariantCulture);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (4)
50string path = authority.AiaHttpUri.Substring(UriPrefix.Length - 1); 57string path = authority.CdpUri.Substring(UriPrefix.Length - 1); 64string path = authority.OcspUri.Substring(UriPrefix.Length - 1); 304string base64 = HttpUtility.UrlDecode(request.RawUrl.Substring(prefix.Length + 1));
TestTransport\InMemoryHttpClientSlim.cs (1)
101var body = response.Substring(response.IndexOf("\r\n\r\n", StringComparison.Ordinal) + 4);
Interop.FunctionalTests (1)
H2SpecCommands.cs (1)
206description = line.Substring(firstSpace + 1);
IOperationGenerator (3)
IOperationClassWriter.cs (2)
255WriteLine($"/// {line.Substring(indentation)}"); 1134var camelCased = char.ToLowerInvariant(name[0]) + name.Substring(1);
Model.cs (1)
156public int Value => int.Parse(ValueText.Substring(2), System.Globalization.NumberStyles.HexNumber);
Metrics (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Metrics.Legacy (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (2)
82argName = (char)(firstChar + ('a' - 'A')) + argName.Substring(1); 125Level = method.Name.Substring("Log".Length);
Microsoft.AspNetCore.Analyzer.Testing (1)
TestSource.cs (1)
46line = line.Substring(0, markerStartIndex) + line.Substring(markerEndIndex + MarkerEnd.Length);
Microsoft.AspNetCore.App.Analyzers.Test (7)
RouteEmbeddedLanguage\Infrastructure\FormattedClassification.cs (3)
43var remainder = ClassificationName.Substring("regex - ".Length); 51var remainder = ClassificationName.Substring("json - ".Length); 108=> char.ToUpperInvariant(val[0]) + val.Substring(1);
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
173outputBuilder.Append(input.Substring(currentIndexInInput));
RouteEmbeddedLanguage\RoutePatternParserTests.cs (3)
98current = "@\"" + current.Substring(3); 102current = "\"" + current.Substring(2); 217var actual = routeParameter.Policies[i].Substring(1).Replace("{{", "{").Replace("}}", "}");
Microsoft.AspNetCore.App.UnitTests (1)
SharedFxTests.cs (1)
107var target = $".NETCoreApp,Version=v{_expectedTfm.Substring(3)}/{_expectedRid}";
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerHandler.cs (1)
86token = authorization.Substring("Bearer ".Length).Trim();
Microsoft.AspNetCore.Authentication.Negotiate (3)
Internal\LdapAdapter.cs (2)
69var groupCN = DistinguishedNameSeparatorRegex.Split(groupDN)[0].Substring("CN=".Length); 127var nestedGroupCN = DistinguishedNameSeparatorRegex.Split(nestedGroupDN)[0].Substring("CN=".Length);
NegotiateHandler.cs (1)
112token = authorization.Substring(AuthHeaderPrefix.Length).Trim();
Microsoft.AspNetCore.Authentication.Test (9)
CookieTests.cs (1)
1861var ticket = await context.AuthenticateAsync(remainder.Value.Substring(1));
DynamicSchemeTests.cs (3)
143var name = remainder.Value.Substring(1); 150var name = (remainder.Value.Length > 0) ? remainder.Value.Substring(1) : null; 156var name = remainder.Value.Substring(1);
OpenIdConnect\OpenIdConnectTests.cs (3)
249var query = transaction.Response.Headers.Location.Query.Substring(1).Split('&') 280var query = transaction.Response.Headers.Location.Query.Substring(1).Split('&') 580timestamp = keyname.Substring(noncePrefix.Length);
PolicyTests.cs (2)
349p.ForwardDefaultSelector = c => c.Request.QueryString.Value.Substring(1); 476var name = (remainder.Value.Length > 0) ? remainder.Value.Substring(1) : null;
Microsoft.AspNetCore.Components (7)
NavigationManager.cs (2)
272return uri.Substring(_baseUri.OriginalString.Length); 285return uri.Substring(_baseUri.OriginalString.Length - 1);
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (1)
252var captured = requestSegment.Buffer.Substring(requestSegment.Offset);
src\Http\Routing\src\Patterns\RoutePatternParser.cs (4)
461return routePattern.Substring(2); 465return routePattern.Substring(1); 558_template.Substring(_index); 562return string.Concat(_template.Substring(0, _index), "|", _template.Substring(_index));
Microsoft.AspNetCore.Components.Endpoints (2)
src\Shared\Components\ComponentMarker.cs (2)
100return $"Server Component: {TypeName}, Sequence: {Sequence}, Key: {Key?.FormattedComponentKey} Descriptor: {Descriptor?.Substring(5)}..."; 104return $"Auto Component: {TypeName}, Assembly: {Assembly}, Key: {Key?.FormattedComponentKey}, Descriptor: {Descriptor?.Substring(5)}...";
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Builder\TestFileProvider\TestFileProvider.cs (1)
118filePath = filePath.Substring(1);
EndpointHtmlRendererTest.cs (1)
1651content = content.Substring(wasmOptionsMatch.Groups[0].Length);
Microsoft.AspNetCore.Components.Server (2)
src\Shared\Components\ComponentMarker.cs (2)
100return $"Server Component: {TypeName}, Sequence: {Sequence}, Key: {Key?.FormattedComponentKey} Descriptor: {Descriptor?.Substring(5)}..."; 104return $"Auto Component: {TypeName}, Assembly: {Assembly}, Key: {Key?.FormattedComponentKey}, Descriptor: {Descriptor?.Substring(5)}...";
Microsoft.AspNetCore.Components.Server.Tests (1)
ProtectedBrowserStorageTest.cs (1)
344var unprotectedString = protectedString.Substring(expectedPrefix.Length);
Microsoft.AspNetCore.Components.WebAssembly (2)
src\Shared\Components\ComponentMarker.cs (2)
100return $"Server Component: {TypeName}, Sequence: {Sequence}, Key: {Key?.FormattedComponentKey} Descriptor: {Descriptor?.Substring(5)}..."; 104return $"Auto Component: {TypeName}, Assembly: {Assembly}, Key: {Key?.FormattedComponentKey}, Descriptor: {Descriptor?.Substring(5)}...";
Microsoft.AspNetCore.Components.WebView (1)
FileExtensionContentTypeProvider.cs (1)
467return path.Substring(index);
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
93 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
Microsoft.AspNetCore.Components.WebView.Test (1)
Infrastructure\TestDocument.cs (1)
328var eventName = attributeName.Substring(2);
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
93 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
93 var requestPath = new Uri(requestAbsoluteUri).AbsolutePath.Substring(1);
Microsoft.AspNetCore.Components.WebViewE2E.Test (1)
BasicBlazorHybridTest.cs (1)
87_latestControlDivValue = msg.Substring(NewControlDivValueMessage.Length + 1);
Microsoft.AspNetCore.Diagnostics (1)
StatusCodePage\StatusCodePagesExtensions.cs (1)
100locationFormat = locationFormat.Substring(1);
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
ShutdownTests.cs (1)
76output += data.Substring(StartedMessage.Length) + '\n';
Microsoft.AspNetCore.Http (3)
BindingAddress.cs (3)
109return host.Substring(unixPipeHostPrefixLength); 112private static string GetNamedPipeName(string host) => host.Substring(NamedPipeHostPrefix.Length); 258pathBase = address.Substring(pathDelimiterEnd);
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
MapPathMiddlewareTests.cs (1)
94Assert.Equal(requestPath.Substring(matchPath.Length), context.Items["test.Path"]);
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\Utils.cs (1)
51newQueryString = newQueryString.Substring(1);
Microsoft.AspNetCore.Http.Extensions (1)
UriHelper.cs (1)
133fragment = FragmentString.FromUriComponent(uri.Substring(searchIndex));
Microsoft.AspNetCore.Http.Results (2)
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
22var segment = new PathString(contentPath.Substring(1));
VirtualFileHttpResult.cs (1)
157normalizedPath = normalizedPath.Substring(1);
Microsoft.AspNetCore.Http.Results.Tests (1)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
424var expectedPath = path.Substring(1);
Microsoft.AspNetCore.HttpLogging.Tests (6)
W3CLoggerTests.cs (2)
40var startDate = DateTime.Parse(lines[1].Substring(13), CultureInfo.InvariantCulture); 85var startDate = DateTime.Parse(lines[1].Substring(13), CultureInfo.InvariantCulture);
W3CLoggingMiddlewareTests.cs (4)
94var startDate = DateTime.Parse(lines[1].Substring(13), CultureInfo.InvariantCulture); 139var startDate = DateTime.Parse(lines[1].Substring(13), CultureInfo.InvariantCulture); 259var startDate = DateTime.Parse(lines[1].Substring(13), CultureInfo.InvariantCulture); 297var startDate = DateTime.Parse(lines[1].Substring(13), CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
UserStoreEncryptPersonalDataTest.cs (2)
59return data.Substring(pad.Length); 103=> data?.Substring(4);
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
364var auth = await context.AuthenticateAsync(remainder.Value.Substring(1));
Microsoft.AspNetCore.InternalTesting (4)
AssemblyTestLog.cs (1)
114className = className.Substring(assemblyName.Length + 1);
HttpClientSlim.cs (1)
104var body = response.Substring(response.IndexOf("\r\n\r\n", StringComparison.Ordinal) + 4);
TestFileOutputContext.cs (1)
111name = name.Substring(assemblyName.Length + 1);
xunit\SkipOnAlpineAttribute.cs (1)
32line.StartsWith("ID=", StringComparison.Ordinal) && line.Substring(3).Trim('"', '\'') == "alpine");
Microsoft.AspNetCore.InternalTesting.Tests (1)
AssemblyTestLogTests.cs (1)
395var strippedPrefix = line.Contains('[') ? line.Substring(line.IndexOf('[')) : line;
Microsoft.AspNetCore.Mvc.Core (5)
Formatters\FormatterMappings.cs (1)
104format = format.Substring(1);
Infrastructure\VirtualFileResultExecutor.cs (1)
116normalizedPath = normalizedPath.Substring(1);
ModelBinding\PrefixContainer.cs (1)
149key = entry.Substring(keyPosition);
Routing\UrlHelperBase.cs (1)
304var segment = new PathString(contentPath.Substring(1));
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
22var segment = new PathString(contentPath.Substring(1));
Microsoft.AspNetCore.Mvc.Core.Test (1)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
424var expectedPath = path.Substring(1);
Microsoft.AspNetCore.Mvc.Razor (3)
Compilation\DefaultRazorPageFactoryProvider.cs (1)
35relativePath = relativePath.Substring(1);
Infrastructure\DefaultFileVersionProvider.cs (1)
67var requestPathBaseRelativePath = resolvedPath.Substring(requestPathBase.Value.Length);
TagHelpers\UrlResolutionTagHelper.cs (1)
255var postTildeSlashUrlValue = trimmedUrl.Substring(2);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
FileProviderRazorProjectItem.cs (1)
83_relativePhysicalPath = PhysicalPath.Substring(_root.Length + 1); // Include leading separator
Microsoft.AspNetCore.Mvc.Razor.Test (3)
TagHelpers\UrlResolutionTagHelperTest.cs (3)
108.Returns(new Func<string, string>(value => "/approot" + value.Substring(1))); 168.Returns(new Func<string, string>(value => "/approot" + value.Substring(1))); 400.Returns(new Func<string, string>(value => "/approot" + value.Substring(1)));
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DefaultHtmlGenerator.cs (1)
383resolvedLabelText = expression.Substring(index + 1);
HtmlHelper.cs (1)
787resolvedDisplayName = expression.Substring(index + 1);
ViewComponents\ViewComponentConventions.cs (1)
33return attribute.Name.Substring(separatorIndex + 1);
ViewDataEvaluator.cs (1)
115var rightExpression = expression.Substring(leftExpression.Length + 1);
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
118filePath = filePath.Substring(1);
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Helpers\StringExtensions.cs (1)
75builder.AppendLine(line.Substring(minLeadingWhitespace));
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheTests.cs (1)
1017Assert.True(Guid.TryParse(s.Substring(s.Length - 36), out value));
Microsoft.AspNetCore.Owin (1)
Utilities.cs (1)
18return queryString.Substring(1);
Microsoft.AspNetCore.Rewrite (15)
ApacheModRewrite\ConditionPatternParser.cs (1)
123results.Operand = condition.Substring(context.GetIndex());
ApacheModRewrite\CookieActionFactory.cs (1)
46SetActionOption(flagValue.Substring(start).Trim(new[] { ' ', separator }), currentField, ref action);
ApacheModRewrite\RuleRegexParser.cs (1)
16return new ParsedModRewriteInput { Invert = true, Operand = regex.Substring(1) };
IISUrlRewrite\IISUrlRewriteRule.cs (1)
50initMatchResults = InitialMatch.Evaluate(path.ToString().Substring(1), context);
PatternSegments\QueryStringSegment.cs (1)
14return queryString.Substring(1);
RedirectRule.cs (4)
40initMatchResults = InitialMatch.Match(path.ToString().Substring(1)); 70host = new HostString(newPath.Substring(schemeSplit)); 76newPath = newPath.Substring(pathSplit); 90resolvedQuery = request.QueryString.Add(QueryString.FromUriComponent(newPath.Substring(querySplit)));
RedirectToNonWwwRule.cs (1)
54new HostString(request.Host.Value.Substring(4)), // We verified the hostname begins with "www." already.
RewriteRule.cs (2)
37initMatchResults = InitialMatch.Match(path.ToString().Substring(1)); 84result.Substring(split)));
UrlActions\RedirectAction.cs (1)
61pattern.Substring(split)));
UrlActions\RewriteAction.cs (2)
109pattern.Substring(split))); 114pattern.Substring(split));
Microsoft.AspNetCore.Routing (8)
Matching\DfaMatcher.cs (1)
271path.Substring(segment.Start));
Matching\HostMatcherPolicy.cs (1)
413_wildcardEndsWith = HasHostWildcard ? Host.Substring(1) : null;
Patterns\RoutePatternMatcher.cs (1)
252var captured = requestSegment.Buffer.Substring(requestSegment.Offset);
Patterns\RoutePatternParser.cs (4)
461return routePattern.Substring(2); 465return routePattern.Substring(1); 558_template.Substring(_index); 562return string.Concat(_template.Substring(0, _index), "|", _template.Substring(_index));
RouteCollection.cs (1)
163queryString = url.Substring(indexOfSeparator);
Microsoft.AspNetCore.Routing.Tests (1)
Template\TemplateBinderTests.cs (1)
1452var query = uri.Substring(queryIndex + 1);
Microsoft.AspNetCore.Server.HttpSys (1)
UrlPrefix.cs (1)
147path = whole.Substring(pathDelimiterStart);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (17)
Listener\RequestHeaderTests.cs (1)
151Assert.StartsWith("400", response.Substring(9));
Listener\RequestTests.cs (5)
26var responseStatusCode = response.Substring(9); // Skip "HTTP/1.1 " 81Assert.Equal("200", response.Substring(9)); 104Assert.Equal("400", response.Substring(9)); 131Assert.Equal("200", response.Substring(9)); 169Assert.Equal("200", response.Substring(9));
RequestTests.cs (10)
253var responseStatusCode = response.Substring(9); // Skip "HTTP/1.1 " 272var responseStatusCode = response.Substring(9); // Skip "HTTP/1.1 " 289var responseStatusCode = response.Substring(9); // Skip "HTTP/1.1 " 359var responseStatusCode = response.Substring(9); // Skip "HTTP/1.1 " 392var statusCode = Encoding.UTF8.GetString(response).Substring(9); 415var responseStatusCode = response.Substring(9); // Skip "HTTP/1.1 " 440var responseStatusCode = response.Substring(9); // Skip "HTTP/1.1 " 460var responseStatusCode = response.Substring(9); // Skip "HTTP/1.1 " 481var responseStatusCode = response.Substring(9); // Skip "HTTP/1.1 " 499var responseStatusCode = response.Substring(9); // Skip "HTTP/1.1 "
ResponseCachingTests.cs (1)
431var status = int.Parse(httpContext.Request.Path.Value.Substring(1), CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http2\Http2Stream.cs (1)
341QueryString = queryIndex == -1 ? string.Empty : path.Substring(queryIndex);
Internal\Http3\Http3Stream.cs (1)
1103QueryString = queryIndex == -1 ? string.Empty : path.Substring(queryIndex);
Internal\SniOptionsSelector.cs (1)
107_wildcardPrefixOptions.Add(name.Substring(1), sniOptions);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
503identifier = char.ToUpperInvariant(identifier[1]) + identifier.Substring(2);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (4)
50string path = authority.AiaHttpUri.Substring(UriPrefix.Length - 1); 57string path = authority.CdpUri.Substring(UriPrefix.Length - 1); 64string path = authority.OcspUri.Substring(UriPrefix.Length - 1); 304string base64 = HttpUtility.UrlDecode(request.RawUrl.Substring(prefix.Length + 1));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
SkipOnMarinerAttribute.cs (1)
27line.StartsWith("ID=", StringComparison.Ordinal) && line.Substring(3).Trim('"', '\'') == "mariner");
Microsoft.AspNetCore.Shared.Tests (5)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
Microsoft.AspNetCore.StaticFiles (1)
FileExtensionContentTypeProvider.cs (1)
461return path.Substring(index);
Microsoft.AspNetCore.WebUtilities.Tests (1)
HttpRequestStreamReaderTest.cs (1)
167Assert.Equal((valueString.Substring(valueString.LastIndexOf('\n') + 1)), data);
Microsoft.Build.Framework (3)
InterningWriteTranslator.cs (1)
147string fileName = str.Substring(splitId + 1);
NativeMethods.cs (1)
1410string[] statFields = line.Substring(line.LastIndexOf(')')).Split(MSBuildConstants.SpaceChar, 4);
Sdk\SdkReference.cs (1)
108? new SdkReference(parts[0], null, parts[1].Substring(4))
Microsoft.Build.Tasks.CodeAnalysis (5)
src\Compilers\Core\MSBuildTask\CanonicalError.cs (1)
266messageOverflow = message.Substring(400);
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
654libDirectory = var.Substring(4);
src\Compilers\Core\MSBuildTask\Vbc.cs (2)
360return originalBaseAddress.Substring(2); 705string? newLine = originalVBErrorString.Substring(0, endParenthesisLocation) + "," + column + originalVBErrorString.Substring(endParenthesisLocation);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (5)
src\Compilers\Core\MSBuildTask\CanonicalError.cs (1)
266messageOverflow = message.Substring(400);
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
654libDirectory = var.Substring(4);
src\Compilers\Core\MSBuildTask\Vbc.cs (2)
360return originalBaseAddress.Substring(2); 705string? newLine = originalVBErrorString.Substring(0, endParenthesisLocation) + "," + column + originalVBErrorString.Substring(endParenthesisLocation);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TargetTests.cs (1)
914var compilerApiVersion = Version.Parse(compilerApiVersionString.Substring("roslyn".Length));
Microsoft.Cci.Extensions (4)
Comparers\ApiComparer.cs (1)
154afterFirstDot = qualifiedName.Substring(firstDot + 1);
Extensions\CSharp\CSharpCciExtensions.cs (1)
682return name.Substring(index + 1);
Writers\CSharp\CSDeclarationWriter.Properties.cs (2)
44id = id.Substring(index + 1); 155WriteIdentifier(name.Substring(name.IndexOf("_") + 1));
Microsoft.CodeAnalysis (32)
CommandLine\AnalyzerConfigSet.cs (1)
225string relativePath = normalizedPath.Substring(dirLength);
CommandLine\CommandLineParser.cs (4)
253SarifVersionFacts.TryParse(part.Substring(versionParameterDesignatorLength), out sarifVersion) 559string path = RemoveQuotesAndSlashes(arg.Substring(1)).TrimEnd(null); 790arg = arg.Substring(1); 804optionValue = arg.Substring(optionName.Length + 1).Trim('"');
CommandLine\CommonCompiler.cs (1)
1728return diagnosticId.StartsWith(expectedPrefix, StringComparison.Ordinal) && uint.TryParse(diagnosticId.Substring(expectedPrefix.Length), out code);
Compilation\SubsystemVersion.cs (1)
100minor = str.Substring(index + 1);
DocumentationCommentId.cs (1)
1534name = id.Substring(index);
FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
MetadataReader\MetadataHelpers.cs (1)
953return fullName.Substring(parentNamespaceNameLength);
MetadataReader\MetadataReaderExtensions.cs (1)
27var parts = version.Substring(prefix.Length).Split('.');
MetadataReader\ModuleExtensions.cs (1)
183if (int.TryParse(emittedMethodName.Substring(index + 1), NumberStyles.None, CultureInfo.InvariantCulture, out countOfSlots)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (11)
508if (int.TryParse(importString.Substring(1), NumberStyles.None, CultureInfo.InvariantCulture, out var tempMethodToken)) 593target = import.Substring(1); 612target = import.Substring(1); 626target = target.Substring(1); 632target = target.Substring(1); 651alias = import.Substring(1); // For consistency with the portable format, store it in alias, rather than externAlias. 717target = import.Substring(pos); 796target = import.Substring(pos); 803target = import.Substring(pos); 809target = import.Substring(pos); 835: input.Substring(separatorPos + 1);
Microsoft.CodeAnalysis.Analyzers (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.CodeAnalysis.BannedApiAnalyzers (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.CodeAnalysis.CodeStyle (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.CodeAnalysis.CSharp (11)
CommandLine\CommandLineDiagnosticFormatter.cs (1)
73return normalizedPath.Substring(
Compiler\DocumentationCommentCompiler.cs (2)
1015WriteLine(trimmed.Substring( 1025string trimmed = lines[i].Substring(skipLength);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (2)
148if (int.TryParse(name.Substring(GeneratedNames.AnonymousTypeNameWithoutModulePrefix.Length), NumberStyles.None, CultureInfo.InvariantCulture, out int index)) 169if (int.TryParse(name.Substring(GeneratedNames.AnonymousDelegateNameWithoutModulePrefix.Length), NumberStyles.None, CultureInfo.InvariantCulture, out int index))
Parser\DirectiveParser.cs (1)
349LanguageVersionFacts.TryParse(errorText.Substring(versionMarker.Length), out var languageVersion))
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
511operatorName = operatorName.Substring(lastDotPosition + 1);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
109return (idx > 0) ? fullName.Substring(idx + 1) : fullName; //don't consider leading dots
Symbols\Synthesized\GeneratedNameParser.cs (2)
154if (int.TryParse(fieldName.Substring(lastUnder + 1), NumberStyles.None, CultureInfo.InvariantCulture, out slotIndex) && slotIndex >= 1) 230originalTypeName = generatedName.Substring(prefixEndsAt);
Symbols\Tuples\TupleTypeSymbol.cs (1)
470string tail = name.Substring("Item".Length);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (1)
1055var text = sourceLines[expectedSpanResult.StartLine].Substring(expectedSpanResult.StartColumn);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests_StructLayout.cs (3)
57int expectedAlignment = int.Parse(typeName.Substring("Pack".Length)); 198expectedPack = ushort.Parse(part.Substring(1)); 202expectedSize = uint.Parse(part.Substring(1));
Diagnostics\DiagnosticAnalyzerTests.cs (1)
727var id = Int32.Parse(descriptor.Id.Substring(2));
Semantics\ExpressionOptionalAndNamedArgumentsTests.cs (1)
66builder.AppendLine(line.Substring(index));
Semantics\PrimaryConstructorTests.cs (1)
20111" + code.Substring(i + 2);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (2)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (2)
154if (int.TryParse(fieldName.Substring(lastUnder + 1), NumberStyles.None, CultureInfo.InvariantCulture, out slotIndex) && slotIndex >= 1) 230originalTypeName = generatedName.Substring(prefixEndsAt);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\NameLengthTests.cs (8)
218var substring1 = s_longSymbolName.Substring(1); 219var substring2 = s_longSymbolName.Substring(2); 267var name0 = s_longSymbolName.Substring(2); // Space for "I." 268var name1 = s_longSymbolName.Substring(7); // Space for "N.J<C>." 458string longName = s_longSymbolName.Substring(padding); 481string longName = s_longSymbolName.Substring(padding); 529string longName = s_longSymbolName.Substring(padding); 553string longName = s_longSymbolName.Substring(padding);
Semantics\OperatorTests.cs (1)
3214.Select(x => x.Substring(x.IndexOf("//-", StringComparison.Ordinal) + 3).Trim())
Semantics\OverloadResolutionTestBase.cs (1)
50.Select(x => x.Substring(x.IndexOf("//-", StringComparison.Ordinal) + 3))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\UsedAssembliesTests.cs (1)
146var afterUsings = source.Substring(unit.Usings.Last().FullSpan.End);
Symbols\StaticAbstractMembersInInterfacesTests.cs (7)
5465abstract static " + type + " operator " + op.Substring(8) + " " + paramList + @"; 5533virtual static " + type + " operator " + op.Substring(8) + " " + paramList + @" => throw null; 5691Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op.Substring(isChecked ? 8 : 0)).WithLocation(4, 31 + type.Length + (isChecked ? 8 : 0)) 5738Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op.Substring(isChecked ? 8 : 0)).WithLocation(4, 31 + type.Length + (isChecked ? 8 : 0)) 34135abstract static " + type + " operator " + op.Substring(8) + " " + paramList + @"; 34159virtual static " + type + " operator " + op.Substring(8) + " " + paramList + @" => throw null; 34183static " + type + " I1.operator " + op.Substring(8) + " " + paramList + @" => throw null;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Parsing\PatternParsingTests.cs (1)
2994string source2 = source.Substring(0, k1) + source.Substring(k2);
TextExtensions.cs (4)
26var newFullText = oldFullText.Substring(0, offset) + newText + oldFullText.Substring(span.End); 36var newFullText = oldFullText.Substring(0, offset) + newText + oldFullText.Substring(span.End); 46var newFullText = oldFullText.Substring(0, offset) + newText + oldFullText.Substring(span.End); 60var newFullText = oldFullText.Substring(0, offset) + newText + oldFullText.Substring(offset);
Microsoft.CodeAnalysis.Debugging.Package (11)
CustomDebugInfoReader.cs (11)
508if (int.TryParse(importString.Substring(1), NumberStyles.None, CultureInfo.InvariantCulture, out var tempMethodToken)) 593target = import.Substring(1); 612target = import.Substring(1); 626target = target.Substring(1); 632target = target.Substring(1); 651alias = import.Substring(1); // For consistency with the portable format, store it in alias, rather than externAlias. 717target = import.Substring(pos); 796target = import.Substring(pos); 803target = import.Substring(pos); 809target = import.Substring(pos); 835: input.Substring(separatorPos + 1);
Microsoft.CodeAnalysis.EditorFeatures (1)
Lightup\LightupHelpers.cs (1)
503return char.ToLower(typeName[0]) + typeName.Substring(1);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (1)
8278commitText = commitText.Substring(2)
IntelliSense\CSharpCompletionCommandHandlerTests_AwaitCompletion.vb (2)
813Await state.AssertLineTextAroundCaret($" {committedAwait.Substring(0, committedCursorPosition)}", committedAwait.Substring(committedCursorPosition)) 829Dim committedAwaitfAfterCursor = committedAwaitf.Substring(committedCursorPosition)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
CustomTypeInfo.cs (1)
186var name = (next < 0) ? str.Substring(offset) : str.Substring(offset, next - offset);
MetadataUtilities.cs (1)
380var extension = fileName.Substring(extensionStartIndex);
PseudoVariableUtilities.cs (1)
48(n > ReturnValuePrefixLength) && int.TryParse(name.Substring(ReturnValuePrefixLength), NumberStyles.None, CultureInfo.InvariantCulture, out index);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (4)
MetadataDecoder.cs (1)
293if (int.TryParse(typeName.Substring(index + 1), out n))
MetadataResolver.cs (1)
293if (lastDot >= 0 && comparer.Equals(metadataName.Substring(lastDot + 1), name))
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (2)
154if (int.TryParse(fieldName.Substring(lastUnder + 1), NumberStyles.None, CultureInfo.InvariantCulture, out slotIndex) && slotIndex >= 1) 230originalTypeName = generatedName.Substring(prefixEndsAt);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (1)
186var name = (next < 0) ? str.Substring(offset) : str.Substring(offset, next - offset);
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\MemberAndDeclarationInfo.cs (1)
244memberDisplayName = _member.Name.Substring(dotPos + 1);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Debugger\Engine\DkmClrValue.cs (1)
275var rawFormatSpecifiers = name.Substring(commaIndex + 1).Split(',');
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (1)
186var name = (next < 0) ? str.Substring(offset) : str.Substring(offset, next - offset);
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\MemberAndDeclarationInfo.cs (1)
244memberDisplayName = _member.Name.Substring(dotPos + 1);
Microsoft.CodeAnalysis.Extensions.Package (2)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.CodeAnalysis.Features (11)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (11)
508if (int.TryParse(importString.Substring(1), NumberStyles.None, CultureInfo.InvariantCulture, out var tempMethodToken)) 593target = import.Substring(1); 612target = import.Substring(1); 626target = target.Substring(1); 632target = target.Substring(1); 651alias = import.Substring(1); // For consistency with the portable format, store it in alias, rather than externAlias. 717target = import.Substring(pos); 796target = import.Substring(pos); 803target = import.Substring(pos); 809target = import.Substring(pos); 835: input.Substring(separatorPos + 1);
Microsoft.CodeAnalysis.InteractiveHost (7)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.CodeAnalysis.PublicApiAnalyzers (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
AbstractResxGenerator.cs (1)
829className = fullName.Substring(lastDot + 1);
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (6)
Verifiers\CSharpSourceGeneratorVerifier`1+Test.cs (3)
102if (!expectedNames.Contains(name.Substring(currentTestPrefix.Length))) 104throw new InvalidOperationException($"Unexpected test resource: {name.Substring(currentTestPrefix.Length)}"); 123var name = resourceName.Substring(expectedPrefix.Length);
Verifiers\VisualBasicSourceGeneratorVerifier`1+Test.cs (3)
87if (!expectedNames.Contains(name.Substring(currentTestPrefix.Length))) 89throw new InvalidOperationException($"Unexpected test resource: {name.Substring(currentTestPrefix.Length)}"); 108var name = resourceName.Substring(expectedPrefix.Length);
Microsoft.CodeAnalysis.Test.Utilities (5)
Assert\ArtifactUploadUtil.cs (2)
97var destFilePath = filePath.Substring(directory.Length); 100destFilePath = destFilePath.Substring(1);
Compilation\OperationTreeVerifier.cs (1)
202_currentIndent = _currentIndent.Substring(indent.Length);
InstrumentationChecker.cs (1)
357return lines[span.StartLine].Substring(span.StartColumn).TrimEnd(new[] { '\r', '\n', ' ' });
MarkedSource\MarkupTestFile.cs (1)
175outputBuilder.Append(input.Substring(currentIndexInInput));
Microsoft.CodeAnalysis.UnitTests (5)
CachingLookupTests.cs (1)
83return s.Substring(s.Length - 2);
FileSystem\RelativePathResolverTests.cs (1)
90string rooted = filePath.Substring(2);
Text\CompositeTextTests.cs (1)
83foreach (var otherSourceTexts in CreateSourceTextPermutations(contents.Substring(i), requestedSourceTextCount - 1))
Text\TextChangeTests.cs (2)
380expected = expected.Substring(0, 50 + i) + c + expected.Substring(50 + i); 400expected = expected.Substring(0, i) + c + str.Substring(i + 1);
Microsoft.CodeAnalysis.VisualBasic (8)
CommandLine\VisualBasicCommandLineParser.vb (1)
2210parseValue = value.Substring(2) ' UInt64.TryParse does not accept hex format strings
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
169Integer.TryParse(name.Substring(prefix.Length), NumberStyles.None, CultureInfo.InvariantCulture, index) Then
SymbolDisplay\SymbolDisplayVisitor.vb (1)
218myCaseCorrectedNSName = emittedName.Substring(nsIdx + 1)
Symbols\SynthesizedSymbols\GeneratedNameParser.vb (4)
61methodName = stateMachineTypeName.Substring(separatorPos + 1) 81variableName = proxyName.Substring(prefixLen) 104Return Integer.TryParse(proxyName.Substring(separator + 1), NumberStyles.None, CultureInfo.InvariantCulture, index) 134Integer.TryParse(fieldName.Substring(prefix.Length), NumberStyles.None, CultureInfo.InvariantCulture, slotIndex) Then
Symbols\Tuples\TupleTypeSymbol.vb (1)
627Dim s As String = name.Substring(4)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
Attributes\AttributeTests_StructLayout.vb (3)
81Dim expectedAlignment As Integer = Integer.Parse(typeName.Substring("Pack".Length)) 376expectedPack = UShort.Parse(part.Substring(1)) 379expectedSize = UInteger.Parse(part.Substring(1))
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (1)
833Assert.True(sourceLines(expectedSpanResult.StartLine + 1).Substring(expectedSpanResult.StartColumn).StartsWith(expectedSpanResult.TextStart))
XmlLiteralTests.vb (1)
4524XmlnsNamespaceTooLongCore(identifier.Substring(6), tooLong:=False)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (2)
SymbolExtensions.vb (1)
93unmangledName = unmangledName.Substring(1)
SyntaxHelpers.vb (1)
118Dim token = expr.Substring(start)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
ExtractInterface\VisualBasicExtractInterfaceService.vb (1)
67Return fullDisplayName.Substring(rootNamespace.Length + 1)
Structure\Providers\XmlExpressionStructureProvider.vb (1)
27Dim lineText = line.ToString().Substring(span.Start - line.Start)
Structure\VisualBasicStructureHelpers.vb (1)
23Return "' " & comment.ToString().Substring(1).Trim() & SpaceEllipsis
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Binding\BindingScopeTests.vb (1)
30Dim locationText = If(treeText.Length > position + 50, treeText.Substring(position, 50), treeText.Substring(position))
Diagnostics\DiagnosticAnalyzerTests.vb (1)
476Dim id = Integer.Parse(descriptor.Id.Substring(2))
Semantics\NameLengthTests.vb (2)
229Dim substring1 = s_longSymbolName.Substring(1) 230Dim substring2 = s_longSymbolName.Substring(2)
Semantics\VariableTypeInference.vb (1)
698Dim varName = textToFind.Substring(textToFind.IndexOf(":"c) + 1)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (5)
SymbolsTests\Metadata\PE\LoadingOperators.vb (4)
594display.Substring(display.IndexOf("("c)). 1190display.Substring(display.IndexOf("("c)). 1952display.Substring(display.IndexOf("("c)). 2086display.Substring(display.IndexOf("("c)).
SymbolsTests\Source\OperatorsTests.vb (1)
192syntax.Substring(syntax.IndexOf("("c)).
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (3)
CompilationTestUtils.vb (3)
700names.Add(methodName.Substring(offset)) 887If actualText.StartsWith(expectedText, StringComparison.Ordinal) AndAlso actualText.Substring(expectedText.Length).Trim().Length > 0 Then 889.AppendLine(actualText.Substring(expectedText.Length))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (1)
308Dim expectedText = remKeywordText & trivia.ToString().Substring(3)
CodeCleanup\Providers\FixIncorrectTokensCodeCleanupProvider.vb (1)
72triviaText = s_CH_STRGHT_Q + triviaText.Substring(1)
CodeCleanup\Providers\ReduceTokensCodeCleanupProvider.vb (1)
189Dim exponent = Integer.Parse(valueText.Substring(exponentIndex + 1), CultureInfo.InvariantCulture)
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
987If replacementText.Length > AttributeSuffixLength AndAlso CaseInsensitiveComparison.Equals(halfWidthReplacementText.Substring(halfWidthReplacementText.Length - AttributeSuffixLength), AttributeSuffix) Then
Microsoft.CodeAnalysis.Workspaces (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
304callOrInvoke.Name.Substring(4), //remove prefix
Microsoft.Data.Analysis (1)
TextFieldParser.cs (1)
865field = line.Substring(index).TrimEnd(_newLineChars);
Microsoft.Data.Analysis.Tests (1)
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
865field = line.Substring(index).TrimEnd(_newLineChars);
Microsoft.DotNet.Arcade.Sdk (5)
src\CalculateAssemblyAndFileVersions.cs (1)
89r = int.Parse(BuildNumber.Substring(9));
src\DownloadFile.cs (1)
113var filePath = uri.Substring(FileUriProtocol.Length);
src\ExtractNgenMethodList.cs (1)
62if (int.TryParse(flagsInt?.Value.Substring(2), NumberStyles.HexNumber, CultureInfo.InvariantCulture, out int parsedFlagsInt)
src\GenerateResxSource.cs (1)
469className = fullName.Substring(lastDot + 1);
src\GenerateSourcePackageSourceLinkTargetsFile.cs (1)
91var relativePathToSourceRoot = projectDir.Substring(innerMostRootItemSpec.Length);
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Utilities\TestApp.cs (1)
112var destFileName = Path.Combine(destDir, srcFileName.Substring(srcDir.Length).TrimStart(new[] { Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar }));
Microsoft.DotNet.ArcadeLogging (2)
PipelinesLogger.cs (2)
284projectFile = projectFile.Substring(_solutionDirectory.Length).TrimStart('\\'); 348string value = str.Substring(valueDelimiterIndex + 1);
Microsoft.DotNet.Build.Manifest (2)
MSBuildListSplitter.cs (1)
43var value = item.Substring(splitIdx + 1);
VersionIdentifier.cs (1)
115nextSegment = assetPathSegment.Substring(currentIndex);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
553return targetPath.Substring(basePath.Length).TrimStart('/', '\\');
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CreateMD5SumsFile.cs (1)
41string relativePath = file.ItemSpec.Substring(RootDirectory.Length).TrimStart(Path.DirectorySeparatorChar).Replace('\\', '/');
src\RpmBuilder.cs (1)
286dirName = dirName.Substring(1);
Microsoft.DotNet.Build.Tasks.Packaging (4)
GeneratePackageReport.cs (1)
155var refAssm = compileAssets.FirstOrDefault(r => !NuGetAssetResolver.IsPlaceholder(r))?.Substring(PackageId.Length + 1);
HarvestPackage.cs (3)
239var refAssm = compileAssets.FirstOrDefault(r => !NuGetAssetResolver.IsPlaceholder(r))?.Substring(PackageId.Length + 1); 305string harvestPackagePath = packageFile.Substring(pathToPackage.Length + 1).Replace('\\', '/'); 616.Select(f => f.Substring(packageFolder.Length + 1).Replace('\\', '/'))
Microsoft.DotNet.Build.Tasks.Templating (1)
MSBuildListSplitter.cs (1)
36string value = item.Substring(splitIdx + 1);
Microsoft.DotNet.Build.Tasks.VisualStudio (4)
OptProf\GenerateTrainingPropsFile.cs (1)
50var dropName = hasDropName ? ProductDropName.Substring(ProductDropNamePrefix.Length) : "dummy";
OptProf\GetRunSettingsSessionConfiguration.cs (2)
87return $"Tests/{dropUrl.Substring(prefix.Length)}"; 106return "ProfilingInputs/" + vsDropName.Substring(prefix.Length);
OptProf\IbcEntry.cs (1)
71=> path.StartsWith(prefix, StringComparison.OrdinalIgnoreCase) ? replacement + path.Substring(prefix.Length) : path;
Microsoft.DotNet.Build.Tasks.Workloads (1)
WorkloadPackageBase.cs (1)
306packageId.Substring(packageId.IndexOf(separator) + separator.Length) :
Microsoft.DotNet.GenFacades (2)
NotSupportedAssemblyGenerator.cs (1)
110_exclusionApis = exclusionApis?.Select(t => t.Substring(t.IndexOf(':') + 1));
SourceGenerator.cs (1)
126sb.Append(',', int.Parse(typeName.Substring(splitIndex + 1)) - 1);
Microsoft.DotNet.Helix.Client (1)
generated-code\PagedResponse.cs (1)
131var v = value.Substring(equalIdx + 1).Trim().Trim('"');
Microsoft.DotNet.Helix.JobSender (5)
JobDefinition.cs (1)
278string dockerTag = value.Substring(@index + 1);
Payloads\DirectoryPayload.cs (1)
61file.FullName.Substring(basePath.Length + 1); // +1 prevents it from including the leading backslash
StorageHelpers\ApiBlobHelper.cs (1)
52sasToken = sasToken.Substring(1);
StorageHelpers\ConnectionStringBlobHelper.cs (2)
49return sas.Substring(sas.IndexOf('?')); 57sasToken = sasToken.Substring(1);
Microsoft.DotNet.MacOsPkg.Core (1)
Package.cs (1)
63string packageName = Path.Combine(dstPath, package.Value.Substring(1));
Microsoft.DotNet.MacOsPkg.Tests (1)
UnpackPackTests.cs (1)
249.Select(f => (f.Substring(basePath.Length + 1), File.GetUnixFileMode(f)))
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetUtils.cs (1)
16fileName = partName.Substring(lastSeparator + 1);
Microsoft.DotNet.SignCheckLibrary (2)
Verification\Jar\JarIndividualSection.cs (1)
59entryText = RawText.Substring(entryStartIndex);
Verification\Jar\JarManifestFileBase.cs (1)
120IndividualSectionText = ManifestText.Substring(mainSectionLength);
Microsoft.DotNet.SignTool (3)
src\ZipData.cs (3)
258var relativeName = file.Substring($"{workingDir}\\".Length).Replace('\\', '/'); 330var relativePath = path.Substring(extractDir.Length + 1).Replace(Path.DirectorySeparatorChar, '/'); 356var relativePath = path.Substring(extractDir.Length + 1).Replace(Path.DirectorySeparatorChar, '/');
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WritePackageUsageData.cs (1)
268return path.Substring(RootDir.Length).Replace(Path.DirectorySeparatorChar, '/');
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Languages\Language.cs (1)
31relative = relative.Substring(templateDirectory.Length + 1);
Modeler\ServiceClientModelFactory.cs (1)
157name = name.Substring(firstTag.Length);
Microsoft.DotNet.XliffTasks (3)
Model\UnstructuredDocument.cs (2)
51string source = translatableSpan.Substring(separatorIndex + TranslatableSpanSeparator.Length); 65_fragments.Add(text.Substring(lastSpanEnd));
Model\XamlRuleDocument.cs (1)
202return line.Substring(attributeName.Length).Trim(s_attrValueTrimChars);
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Formats\Html\HtmlReportWriter.cs (1)
99HtmlTemplateAfter = all.Substring(start + SearchString.Length);
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Storage\AzureStorageResultStore.cs (1)
182=> name.Substring(name.LastIndexOf('/') + 1);
Microsoft.Extensions.AI.Integration.Tests (2)
PromptBasedFunctionCallingChatClient.cs (1)
91content = content.Substring(startPos);
VerbatimMultiPartHttpHandler.cs (1)
106string rawValue = part.Substring(headerEnd + 4).TrimEnd('\r', '\n');
Microsoft.Extensions.Configuration (2)
ConfigurationProvider.cs (1)
100return indexOf < 0 ? key.Substring(prefixLength) : key.Substring(prefixLength, indexOf - prefixLength);
ConfigurationSectionDebugView.cs (1)
57string path = section.Path.Substring(prefixLength);
Microsoft.Extensions.Configuration.Abstractions (2)
ConfigurationExtensions.cs (1)
65yield return new KeyValuePair<string, string?>(section.Path.Substring(prefixLength), section.Value);
ConfigurationPath.cs (1)
58return lastDelimiterIndex < 0 ? path : path.Substring(lastDelimiterIndex + 1);
Microsoft.Extensions.Configuration.CommandLine (3)
CommandLineConfigurationProvider.cs (3)
65currentArg = $"--{currentArg.Substring(1)}"; 93key = currentArg.Substring(keyStartIndex); 124value = currentArg.Substring(separator + 1);
Microsoft.Extensions.Configuration.EnvironmentVariables (2)
EnvironmentVariablesConfigurationProvider.cs (2)
144string normalizedKeyWithoutConnectionStringPrefix = Normalize(fullKey.Substring(connectionStringPrefix.Length)); 158data[normalizedKey.Substring(_normalizedPrefix.Length)] = value;
Microsoft.Extensions.Configuration.Ini (1)
IniStreamConfigurationProvider.cs (1)
68string value = line.Substring(separator + 1).Trim();
Microsoft.Extensions.DependencyModel (2)
DependencyContextJsonReader.cs (2)
178runtime = runtimeTargetName.Substring(separatorIndex + 1); 770string version = Pool(nameWithVersion.Substring(separatorPosition + 1));
Microsoft.Extensions.FileProviders.Embedded (1)
EmbeddedFileProvider.cs (1)
163resourceName.Substring(_baseNamespace.Length),
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFilesWatcher.cs (2)
293string oldLocation = Path.Combine(e.OldFullPath, newLocation.Substring(e.FullPath.Length + 1)); 348string relativePath = fullPath.Substring(_root.Length);
Microsoft.Extensions.Identity.Core (1)
DefaultPersonalDataProtector.cs (1)
44return _encryptor.Unprotect(keyId, data.Substring(split + 1));
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizerFactory.cs (1)
241return name.Substring(prefix.Length);
Microsoft.Extensions.Logging.AzureAppServices (1)
BlobAppendReferenceWrapper.cs (1)
93uriBuilder.Query = uriBuilder.Query.Substring(1) + "&" + queryToAppend;
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
485t.Key[0] == '@' && t.Key.Substring(1).Equals(p.CodeName, StringComparison.OrdinalIgnoreCase))
Microsoft.Gen.ComplianceReports (1)
Parser.cs (1)
97result = result.Substring("global::".Length);
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
269(t[0] == '@' && t.Substring(1).Equals(p.ParameterNameWithAtIfNeeded, StringComparison.OrdinalIgnoreCase)))
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.ComplianceReports\Parser.cs (1)
97result = result.Substring("global::".Length);
Microsoft.Gen.Metrics (1)
MetricFactoryEmitter.cs (1)
54return char.ToLowerInvariant(str[0]) + str.Substring(1);
Microsoft.Interop.ComInterfaceGenerator (2)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
72string value = optionKeyAndValue[1].Substring(2);
VirtualMethodPointerStubGenerator.cs (1)
308callingConventions.Add(FunctionPointerUnmanagedCallingConvention(Identifier(callConvSymbol.Name.Substring("CallConv".Length))));
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSMarshalAsAttributeInfoParser.cs (3)
30string name = gt.Substring(gt.IndexOf("JSType") + "JSType.".Length); 37string argName = ta.Substring(ta.IndexOf("JSType") + "JSType.".Length); 46string name = st.Substring(st.IndexOf("JSType") + "JSType.".Length);
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
72string value = optionKeyAndValue[1].Substring(2);
Microsoft.Maui (5)
Fonts\FontFile.cs (1)
68 var postScriptName = hashIndex > 0 ? input.Substring(hashIndex + 1)
Handlers\HybridWebView\FileExtensionContentTypeProvider.cs (1)
467 return path.Substring(index);
Handlers\HybridWebView\HybridWebViewHandler.cs (2)
119 var messageContent = rawMessage.Substring(indexOfPipe + 1); 137 var result = messageContent.Substring(indexOfPipeInContent + 1);
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (1)
39 .Substring(1)
Microsoft.Maui.Controls (6)
BindingExpression.cs (1)
223 p = p.Substring(1);
Items\ItemsLayoutTypeConverter.cs (1)
47 var argument = strValue.Substring(identifierLength + 1);
ResourceDictionary.cs (1)
450 return resourceUri.AbsolutePath.Substring(1);
Shell\ShellRouteParameters.cs (2)
49 var key = q.Key.Substring(prefix.Length); 104 query = query.Substring(1);
Xaml\TypeConversionExtensions.cs (1)
206 return str.Substring(2);
Microsoft.Maui.Controls.Build.Tasks (10)
CompiledMarkupExtensions\StaticExtension.cs (1)
25 var membername = member.Substring(dotIdx + 1);
ExpandMarkupsVisitor.cs (3)
87 return new ValueNode(expression.Substring(2), null); 94 expression = expression.Substring(len).TrimStart(); 144 remaining = remaining.Substring(1);
NodeILExtensions.cs (1)
278 yield return Instruction.Create(OpCodes.Ldstr, str.Substring(2));
PerformanceProvider.cs (1)
76 path = path.Substring(index + 14);
SetPropertiesVisitor.cs (1)
1809 localname = localname.Substring(dotIdx + 1);
XamlCTask.cs (3)
56 var code = s.Substring(2); 69 var code = s.Substring(2); 82 var code = s.Substring(2);
Microsoft.Maui.Controls.SourceGen (2)
src\Controls\src\Xaml\TypeArgumentsParser.cs (1)
51 remaining = match.Substring(pos + 1);
src\Controls\src\Xaml\XmlTypeXamlExtensions.cs (1)
74 name = name.Substring(lastIndex + 1);
Microsoft.Maui.Controls.Xaml (13)
ApplyPropertiesVisitor.cs (1)
306 localname = localname.Substring(dotIdx + 1);
ExpandMarkupsVisitor.cs (3)
81 return new ValueNode(expression.Substring(2), null); 97 expression = expression.Substring(len).TrimStart(); 142 remaining = remaining.Substring(1);
MarkupExpressionParser.cs (4)
56 return expression.Substring(2); 65 expression = expression.Substring(len).TrimStart(); 169 remaining = remaining.Substring(1); 224 remaining = remaining.Substring(end + 1);
MarkupExtensions\StaticExtension.cs (1)
28 var membername = Member.Substring(dotIdx + 1);
TypeArgumentsParser.cs (1)
51 remaining = match.Substring(pos + 1);
XamlParser.cs (2)
75 name = new XmlName(reader.NamespaceURI, reader.Name.Substring(elementName.Length + 1)); 322 return new ValueNode(valueString.Substring(2), (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber,
XmlTypeXamlExtensions.cs (1)
74 name = name.Substring(lastIndex + 1);
Microsoft.Maui.Graphics (3)
PathBuilder.cs (2)
141 entry = entry.Substring(1); 146 _commandStack.Push(entry.Substring(1));
Text\AttributedTextExtensions.cs (1)
192 var value = text.Text.Substring(start);
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\SimpleCssParser.cs (1)
24 var value = entry.Substring(index + 1).Trim();
Microsoft.Maui.Resizetizer (1)
GetMauiAssetPath.cs (1)
88 path = path.Substring(projectDirectory.Length);
Microsoft.ML.AutoML (1)
Utils\SweepableParamAttributes.cs (1)
102return $"{name.Substring(index2)}.{o.ToString()}";
Microsoft.ML.AutoML.SourceGenerator (6)
Template\EstimatorType.cs (1)
258returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Template\SearchSpace.cs (1)
275returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Template\SweepableEstimator.cs (1)
277returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Template\SweepableEstimator_T_.cs (1)
282returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Template\SweepableEstimatorFactory.cs (1)
253returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Utils.cs (1)
52return char.ToUpper(str[0]) + str.Substring(1);
Microsoft.ML.CodeGenerator (11)
Templates\Azure\Console\AzureModelBuilder.cs (1)
352returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Templates\Azure\Model\AzureImageModelOutputClass.cs (1)
293returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (1)
293returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Templates\Console\ConsumeModel.cs (1)
304returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Templates\Console\ModelBuilder.cs (1)
669returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Templates\Console\ModelInputClass.cs (1)
267returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Templates\Console\ModelOutputClass.cs (1)
310returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Templates\Console\ModelProject.cs (1)
299returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Templates\Console\PredictProgram.cs (1)
326returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Templates\Console\PredictProject.cs (1)
304returnValue = this.currentIndentField.Substring((this.currentIndentField.Length - indentLength));
Utils.cs (1)
146return sanitizedInput.First().ToString().ToUpper() + sanitizedInput.Substring(1);
Microsoft.ML.Core (13)
CommandLine\CharCursor.cs (1)
45return _ichCur < _ichLim ? _text.Substring(_ichCur) : "";
CommandLine\CmdParser.cs (9)
450return name.Substring(0, 1).ToLowerInvariant() + name.Substring(1); 459return name.Substring(0, firstNonUpper).ToLowerInvariant() + name.Substring(firstNonUpper); 579hadError |= !LexFileArguments(str.Substring(1), out nested); 585if (!TryGetOptionValue(info, str.Substring(1), out arg, out option, out tag, out value)) 715value = str.Substring(ichLim + 1); 720value = str.Substring(ichLim); 1041rest = text.Substring(curs.IchCur); 1047string path = token.Substring(1); 1169args = CmdLexer.UnquoteValue(str.Substring(ich));
ComponentModel\ComponentCatalog.cs (1)
765kind = kind.Substring("Signature".Length);
Data\Repository.cs (1)
261pathEnt = entityPath.Substring(ichSplit + 1);
EntryPoints\ModuleArgs.cs (1)
382return $"{name.Substring(index2)}.{o.ToString()}";
Microsoft.ML.Data (18)
DataLoadSave\Text\TextLoader.cs (1)
385string rest = str.Substring(ich + 1);
DataLoadSave\Text\TextLoaderCursor.cs (1)
266sb.Append(pre).Append(text.Substring(2).Trim());
Deprecated\Instances\HeaderSchema.cs (1)
261if (name.Length >= 2 && name[0] == 'f' && int.TryParse(name.Substring(1), out index) &&
Model\Pfa\ModelUtils.cs (2)
22return name.Substring(0, 1).ToLowerInvariant() + name.Substring(1); 31return name.Substring(0, firstNonUpper).ToLowerInvariant() + name.Substring(firstNonUpper);
Transforms\ColumnBindingsBase.cs (6)
147var src = str.Substring(ich + 1); 183src = str.Substring(ichMin); 189src = str.Substring(ich + 1); 811source = str.Substring(ich + 1); 850source = str.Substring(ichMin); 861source = str.Substring(ich + 1);
Transforms\GenerateNumberTransform.cs (1)
71var result = uint.TryParse(str.Substring(ich + 1), out tmp);
Transforms\SlotsDroppingTransformer.cs (2)
74return TryParseSlots(str.Substring(ich + 1)); 159string rest = str.Substring(ich + 1);
Utilities\StreamUtils.cs (3)
85var right = currentPattern.Substring(recursiveIndex + 3); 108files[i] = files[i].Substring(2); 139files[i] = files[i].Substring(2);
Utilities\TypeParsingUtils.cs (1)
131str = str.Substring(ich + 1);
Microsoft.ML.GenAI.Core (2)
Extension\ModuleExtension.cs (1)
152var childrenDeviceMap = deviceMap.Where(x => x.Key.StartsWith($"{key}.")).ToDictionary(x => x.Key.Substring($"{key}.".Length), x => x.Value);
Pipeline\CausalLMPipeline.cs (1)
286tokenString = duplicateTokenString.Substring(tokenString.Length);
Microsoft.ML.GenAI.Mistral (1)
MistralCausalLMAgent.cs (1)
145var json = content.Substring("[TOOL_CALLS]".Length).Trim();
Microsoft.ML.InternalCodeAnalyzer (1)
NameFixProvider.cs (1)
178builder.Append(token.Substring(1).ToLowerInvariant());
Microsoft.ML.Sweeper (3)
Parameters.cs (3)
547scaleStr = paramValue.Substring(atIdx + 1); 589numSteps = int.Parse(option.Substring(option.IndexOf(':') + 1)); 594stepSize = Double.Parse(option.Substring(option.IndexOf(':') + 1), CultureInfo.InvariantCulture);
Microsoft.ML.TensorFlow (3)
TensorflowTransform.cs (2)
325if (int.TryParse(operation.Substring(p + 1), out var idx)) 481var relativePath = fullPath.Substring(_savedModelPath.Length + 1);
TensorflowUtils.cs (1)
570if (int.TryParse(operation.Substring(p + 1), out var idx))
Microsoft.ML.TestFramework (3)
BaseTestPredictorsMaml.cs (2)
247args[i] = string.Format("in={0}", args[i].Substring(4)); 249args[i] = string.Format("data={0}", args[i].Substring(5));
SubComponent.cs (1)
181args = CmdLexer.UnquoteValue(str.Substring(ich));
Microsoft.ML.Tokenizers (6)
Model\BPETokenizer.cs (3)
177merges.Push((merge.Substring(0, index), merge.Substring(index + 1))); 378string newToken = $"{mergeValues.a}{mergeValues.b.Substring(prefixLen)}"; 1165merges.Push((line.Substring(0, index), line.Substring(index + 1)));
Model\CodeGenTokenizer.cs (1)
1790mergeRanks.Add(new StringSpanOrdinalKeyPair(line.Substring(0, index), line.Substring(index + 1)), rank++);
Model\EnglishRobertaTokenizer.cs (1)
222mergeRanks.Set((line.Substring(0, index), line.Substring(index + 1)), rank++);
Model\TiktokenTokenizer.cs (1)
222throw new FormatException($"Can't parse {line.Substring(spaceIndex)} to integer");
Microsoft.ML.Tokenizers.Tests (7)
TiktokenTests.cs (1)
52using Stream compressedStream = Assembly.Load($"Microsoft.ML.Tokenizers.Data.Cl100kBase{assemblyName.Substring(assemblyName.IndexOf(','))}").GetManifestResourceStream("cl100k_base.tiktoken.deflate")!;
TokenizerTests.cs (2)
171string suffixString = (processedText2 ?? input).Substring(index2); 200Assert.Equal(0, tokenizer.CountTokens(s.Substring(index1)));
UnigramTests.cs (4)
500IReadOnlyList<int> ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>(); 506ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index).AsSpan(), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>(); 512ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>(); 518ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index).AsSpan(), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>();
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (2)
568if (int.TryParse(operation.Substring(p + 1), out var idx)) 715var relativePath = fullPath.Substring(_modelLocation.Length + 1);
Microsoft.VisualBasic.Core (20)
Microsoft\VisualBasic\CompilerServices\StringType.vb (5)
246Skip = AsteriskSkip(Pattern.Substring(PatternIndex + 1), Source.Substring(SourceIndex), SourceEndIndex - SourceIndex, CompareMethod.Binary, m_InvariantCompareInfo) 429Skip = AsteriskSkip(Pattern.Substring(PatternIndex + 1), Source.Substring(SourceIndex), SourceEndIndex - SourceIndex, CompareMethod.Text, ci) 734NewSource = Source.Substring(SourceEndIndex - Count)
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (3)
161Return s.Substring(1) 284tmpValue = ToHalfwidthNumbers(value.Substring(firstNonspace + 2), GetCultureInfo()) 322tmpValue = ToHalfwidthNumbers(value.Substring(firstNonspace + 2), GetCultureInfo())
Microsoft\VisualBasic\ErrObject.vb (1)
193Me.HelpContext = CInt(HelpLink.Substring(iContext + 1))
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (1)
984Field = Line.Substring(Index).TrimEnd(Chr(13), Chr(10))
Microsoft\VisualBasic\Information.vb (3)
210Result = Result.Substring(1) 479Result = Result.Substring(i + 1) 579Result = Result.Substring(1)
Microsoft\VisualBasic\Interaction.vb (1)
73m_CommandLine = LTrim(s.Substring(LengthOfAppName))
Microsoft\VisualBasic\Strings.vb (6)
678Expression = Expression.Substring(Start - 1) 735Builder.Append(Expression.Substring(Start)) 742Builder.Append(Expression.Substring(Start)) 868sSubString = sSrc.Substring(iLastIndex) 898sSubString = sSrc.Substring(iLastIndex) 1903Return [str].Substring(Start - 1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (5)
CodeModel\VisualBasicCodeModelService.vb (5)
2239Dim commentText = trivia.ToString().Substring(1) 2492lines(i) = line.Substring(3) 4041Return "MyBase" & eventName.Substring(parentName.Length) 4049Return EscapeIfNotMeMyBaseOrMyClass(eventName.Substring(0, dotIndex)) & eventName.Substring(dotIndex) 4107Dim memberName = newEventName.Substring(indexOfDot + 1)
Mvc.RoutingWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
32.ToDictionary(kvp => kvp.Key.Substring("link_".Length), kvp => (object)kvp.Value[0]);
PresentationBuildTasks (44)
Microsoft\Build\Tasks\Windows\UidManager.cs (3)
857string suffix = uid.Substring(separatorIndex + 1); 879return typeFullName.Substring(index + 1); 1293return Content.Substring(temp);
MS\Internal\MarkupCompiler\MarkupCompiler.cs (6)
1413string subClassName = subClassFullName.Substring(index + 1); 1443className = className.Substring(index + 1); 1616string relPath = TargetPath.Substring(SourceFileInfo.SourcePath.Length); 2505baseClassName = baseClassFullName.Substring(dotIndex + 1); 3026string rootClassName = elementType != null ? elementType.Name : baseClassFullName.Substring(baseClassFullName.LastIndexOf(DOT, StringComparison.Ordinal)+1); 3395get { return _elementType != null ? _elementType.Name : _localElementFullName.Substring(_localElementFullName.LastIndexOf(DOT, StringComparison.Ordinal) + 1); }
MS\Internal\MarkupCompiler\ParserExtension.cs (2)
287localAttribName = localAttribName.Substring(lastIndex + 1); 332localAttribName = localAttribName.Substring(lastIndex + 1);
MS\Internal\Tasks\CompilerLocalReference.cs (1)
126filePath = filePath.Substring(1);
MS\Internal\Tasks\CompilerWrapper.cs (2)
404relPath = fullFilePath.Substring(_sourceDir.Length); 422newRelativeFilePath = fullFilePath.Substring(pathEndIndex + 1);
MS\Internal\Tasks\TaskHelper.cs (1)
104relPath = fullpath2.Substring (fullpath1.Length);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\MS\Internal\Globalization\LocalizationComments.cs (1)
357enumName = enumName.Substring(_enumPrefix.Length);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (1)
1164typeShortName = typeFullName.Substring(dotIndex + 1);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (5)
385attrValue = attrValue.Substring(2); 566typename = typename.Substring(typeIndex + 1); 751typename = typename.Substring(typeIndex + 1); 1367string localName = (nameIndex < 0) ? propertyName : propertyName.Substring(nameIndex+1); 1505string localName = (nameIndex < 0) ? name : name.Substring(nameIndex+1);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (3)
309localAttribName = localAttribName.Substring(lastIndex + 1); 391member = propOrEvent.Substring(dotIndex + 1); 400member = target.Substring(colonIndex + 1);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (3)
346localAttribName = localAttribName.Substring(lastIndex + 1); 440member = propertyName.Substring(dotIndex+1); 449member = target.Substring(colonIndex+1);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (7)
1090propertyName = propertyName.Substring(dotIndex+1); 1557_childTag.Substring(_childTag.LastIndexOf('.') + 1); 1661propName = longName.Substring(idx + 1); 2215prefix = attribName.Substring(NamespacePrefix.Length); 3057typeName = attribData.Args.Substring(colonIndex + 1); 3207$"Set{methodInfo.Name.Substring("Get".Length)}", 3519null != methodInfo.DeclaringType.GetMethod($"Set{methodInfo.Name.Substring("Get".Length)}",
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (7)
946localName = localName.Substring(lastIndex+1); 2100return methodInfo.Name.Substring("Get".Length); 2248typeName = typeName.Substring(typeIndex + 1); 2257memberName = typeName.Substring(typeIndex + 1); 2871typeString = typeString.Substring(colonIndex + 1); 2954typeString = typeString.Substring(colonIndex + 1); 3320_assemblyNames[k].Substring(charIndex + 1) == usingAssemblyName)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ResourceIDHelper.cs (1)
72resourceID = sourcePath.Substring(basePath.Length);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
89$"Get{methodInfo.Name.Substring("Set".Length)}",
PresentationCore (17)
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
126string uriMinusInitialSlash = original.Substring(1); // trim leading '/'
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (1)
175escapedFamilyName = normalizedString.Substring(familyNameIndex);
MS\Internal\FontCache\FontResourceCache.cs (1)
123fileName = resourceFullName.Substring(indexOfLastSlash + 1);
MS\Internal\FontCache\FontSource.cs (1)
355string fontFilename = _fontUri.OriginalString.Substring(_fontUri.OriginalString.LastIndexOf('/') + 1).ToLowerInvariant();
MS\Internal\FontFace\CompositeFontParser.cs (1)
129s = s.Substring(2);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
140extension = extensionWithDot.Substring(1).ToLower(CultureInfo.InvariantCulture);
System\Windows\Input\Command\KeyGesture.cs (2)
255keyGestures = keyGestures.Substring(index + 1); 268displayStrings = displayStrings.Substring(index + 1);
System\Windows\Input\Command\KeyGestureConverter.cs (2)
91displayString = fullName.Substring(index + 1).Trim(); 104keyToken = fullName.Substring(index + 1);
System\Windows\Input\Command\MouseGestureConverter.cs (1)
66mouseActionToken = fullName.Substring(Offset + 1);
System\Windows\Input\InputScopeNameConverter.cs (1)
97stringSource = stringSource.Substring(stringSource.LastIndexOf('.')+1);
System\Windows\Media\Parsers.cs (2)
90string tokens = trimmedColor.Substring(s_ContextColor.Length); 98tokens = tokens.Substring(preSplit[0].Length);
System\Windows\Navigation\BaseUriHelper.cs (3)
242partName = original.Substring(start); 261partName = original.Substring(end + 1); 291assemblyVersion = assemblyInfo[i].Substring(1); // Get rid of the leading "v"
PresentationFramework (66)
Microsoft\Win32\FileDialog.cs (1)
274value = value.Substring(1); // but strip out the period to leave only "ext"
MS\Internal\Data\PathParser.cs (3)
142SetError(nameof(SR.PathSyntax), _path.Substring(0, _index), _path.Substring(_index)); 188SetError(nameof(SR.UnmatchedParen), _path.Substring(start)); 234SetError(nameof(SR.UnmatchedBracket), _path.Substring(start - 1));
MS\Internal\Data\PropertyPathWorker.cs (1)
130return s.Substring(lastBracketIndex);
MS\Internal\Data\RBNode.cs (8)
807s = s.Substring(2); 814s = s.Substring(1); // skip '(' 817s = s.Substring(1); 821s = s.Substring(index + 1); 825s = s.Substring(index+1); 831s = s.Substring(index+1); 835s = s.Substring(index); 842s = s.Substring(1); // skip ')'
MS\Internal\Data\RBTree.cs (2)
652if (s.StartsWith("\"", StringComparison.Ordinal)) s = s.Substring(1); 655s = s.Substring(index);
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
772typeName = fullTypeName.Substring(lastDot + 1);
MS\Internal\Globalization\LocalizationComments.cs (1)
357enumName = enumName.Substring(_enumPrefix.Length);
MS\Internal\IO\Packaging\XamlFilter.cs (1)
875propertyName = name.Substring(suffixStart + 1);
MS\Internal\Utility\BindUriHelper.cs (1)
162fragment = frag.Substring(1);
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
158type = Projections.FindCustomPublicTypeForAbiType(type) ?? type.Assembly.GetType(type.FullName.Substring("ABI.".Length)) ?? type;
MS\Internal\WindowsRuntime\Generated\WinRT\TypeExtensions.cs (1)
78return ns.Substring(NamespacePrefix.Length);
System\Windows\Documents\FixedSchema.cs (1)
423attrValue = attrValue.Substring(_colorConvertedBitmap.Length);
System\Windows\Documents\RtfToXamlReader.cs (2)
8119instructionName = instructionName.Substring(1); 8173imageXaml += dnImage.Xaml.Substring(uriSourceEndIndex + 1);
System\Windows\Documents\TextStore.cs (1)
4826name = name.Substring(24); // 24 == length of "s.w.c."
System\Windows\Documents\WpfPayload.cs (1)
701imageSourceString = imageSourceString.Substring(1); // cut the leading dot out
System\Windows\Documents\XamlToRtfWriter.cs (1)
2236string imageFormatName = imageName.Substring(extensionIndex);
System\Windows\Documents\ZoomPercentageConverter.cs (1)
174zoomString = zoomString.Substring(1);
System\Windows\Input\Command\CommandConverter.cs (1)
233localName = localName.Substring(Offset + 1);
System\Windows\Input\Command\CommandValueSerializer.cs (1)
147commandName = value.Substring(dotIndex + 1).Trim();
System\Windows\Markup\BamlMapTable.cs (1)
1164typeShortName = typeFullName.Substring(dotIndex + 1);
System\Windows\Markup\BamlReader.cs (7)
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); 2410typeName = typeName.Substring(typeName.LastIndexOf('.') + 1); 2485typeName = typeName.Substring(typeName.LastIndexOf('.') + 1); 2599typeName = typeName.Substring(typeName.LastIndexOf('.') + 1);
System\Windows\Markup\BamlRecordReader.cs (3)
3809value = OptionallyMakeNullable(methodInfo.GetParameters()[1].ParameterType, value, methodInfo.Name.Substring("Set".Length)); 5838return this.AttachedPropertySetter.Name.Substring("Set".Length); 5842return this.AttachedPropertyGetter.Name.Substring("Get".Length);
System\Windows\Markup\BamlWriter.cs (1)
533typeName = data.Args.Substring(colonIndex+1);
System\Windows\Markup\DependencyPropertyConverter.cs (2)
140property = value.Substring(lastIndex + 1); 151property = value.Substring(lastIndex + 1);
System\Windows\Markup\MarkupExtensionParser.cs (5)
385attrValue = attrValue.Substring(2); 566typename = typename.Substring(typeIndex + 1); 751typename = typename.Substring(typeIndex + 1); 1367string localName = (nameIndex < 0) ? propertyName : propertyName.Substring(nameIndex+1); 1505string localName = (nameIndex < 0) ? name : name.Substring(nameIndex+1);
System\Windows\Markup\RoutedEventConverter.cs (2)
68routedEventName = routedEventName.Substring(lastIndex + 1); 158nameString = nameString.Substring(nsIndex + 1);
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
60string name = value.Substring(index + 1).Trim();
System\Windows\Markup\XamlTypeMapper.cs (9)
946localName = localName.Substring(lastIndex+1); 1646localName = localName.Substring(lastIndex+1); 1773localName = localName.Substring(lastIndex+1); 2100return methodInfo.Name.Substring("Get".Length); 2248typeName = typeName.Substring(typeIndex + 1); 2257memberName = typeName.Substring(typeIndex + 1); 2871typeString = typeString.Substring(colonIndex + 1); 3035nameString = nameString.Substring (nsIndex + 1); 3320_assemblyNames[k].Substring(charIndex + 1) == usingAssemblyName)
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (2)
268clrNamespace = xmlNamespace.Substring(clrNsIndex); 277assembly = xmlNamespace.Substring(assemblyIndex);
System\Windows\Navigation\JournalEntry.cs (1)
354displayName = displayName.Substring(1);
System\Windows\PropertyPath.cs (2)
579propertyName = name.Substring(lastIndex + 1).Trim(); 838name = name.Substring(nsIndex + 1).TrimStart();
ReachFramework (5)
AlphaFlattener\PrimitiveList.cs (1)
92typ = typ.Substring(typ.LastIndexOf('.') + 1);
PrintConfig\PrtCap_Reader.cs (1)
553return QName.Substring(colonIndex + 1);
PrintConfig\PrtTicket_Editor.cs (1)
435string localName =QName.Substring(colonIndex + 1);
Serialization\VisualSerializer.cs (1)
1476_writer.WriteAttributeString("Figures", p.Substring(3));
Serialization\XpsImageSerializationService.cs (1)
156foundType = XpsManager.SupportedImageType( new ContentType(imageMimeType.Substring(start)) );
Replay (1)
Replay.cs (1)
233line = line.Substring(1);
Roslyn.Diagnostics.Analyzers (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
ServerComparison.FunctionalTests (1)
HelloWorldTest.cs (1)
73expectedName = char.ToUpperInvariant(expectedName[0]) + expectedName.Substring(1);
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
83token = token.Substring("Bearer ".Length).Trim();
StatusCodePagesSample (1)
Startup.cs (1)
67builder.AppendLine("An error occurred, Status Code: " + HtmlEncoder.Default.Encode(context.Request.Path.ToString().Substring(1)) + "<br>");
Swaggatherer (5)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
System.CodeDom (3)
Microsoft\CSharp\CSharpCodeGenerator.cs (2)
2673value = value.Substring(1); 2813sb.Append(CreateEscapedIdentifier(baseType.Substring(lastIndex)));
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
2523sb.Append(CreateEscapedIdentifier(baseType.Substring(lastIndex)));
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ReflectionModel\ReflectionProperty.cs (1)
73return name.Substring(4);
System.ComponentModel.TypeConverter (3)
System\ComponentModel\BaseNumberConverter.cs (2)
63return FromString(text.Substring(1), 16); 68return FromString(text.Substring(2), 16);
System\ComponentModel\ComponentResourceManager.cs (1)
168string propName = key.Substring(idx + 1);
System.Configuration.ConfigurationManager (5)
System\Configuration\BaseConfigurationRecord.cs (1)
2155name = configKey.Substring(lastSlash + 1);
System\Configuration\ClientConfigPaths.cs (1)
336if ((lastDot != -1) && (lastDot < ns.Length - 1)) ProductName = ns.Substring(lastDot + 1);
System\Configuration\ConfigPathUtility.cs (1)
97return configPath.Substring(index + 1);
System\Configuration\XmlUtil.cs (1)
898endElement = formattedElement.Substring(iEndElement);
System\Diagnostics\TraceUtils.cs (1)
146string name = className.Substring(SystemDiagnostics.Length);
System.Data.Common (5)
System\Data\DataTable.cs (1)
6520string CurrentTableName = CurrentTableFullName.Substring(nsSeparator + 1);
System\Data\XmlDataLoader.cs (1)
944c = collection[XmlConvert.DecodeName(_dataReader.LocalName.Substring(6))];
System\Data\XMLSchema.cs (3)
340propName = propName.Substring(3); 346propName = propName.Substring(4); 1180colName = field.Substring(1);
System.Data.Odbc (3)
Common\System\Data\Common\DbConnectionOptions.cs (3)
299fullPath = rootFolderPath + '\\' + value.Substring(fileNamePosition); 304fullPath = rootFolderPath + value.Substring(fileNamePosition + 1); 309fullPath = rootFolderPath + value.Substring(fileNamePosition);
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (2)
201return Directory.EnumerateDirectories(RootDirectory, searchPattern).Select(m => m.Substring(Path.GetDirectoryName(m)!.Length + 1)).ToArray(); 554partialPath = partialPath.Substring(i);
System.IO.Packaging (3)
System\IO\Packaging\PackUriHelper.cs (1)
685partUriExtension = partUriExtension.Substring(1);
System\IO\Packaging\ZipPackage.cs (2)
60string zipItemName = ((PackUriHelper.ValidatedPartUri)partUri).PartUriString.Substring(1); 430return opcName.Substring(1);
System.Net.HttpListener (6)
System\Net\Managed\HttpListenerContext.Managed.cs (2)
44_user = ParseBasicAuthentication(header.Substring(AuthenticationTypes.Basic.Length + 1)); 79password = authString.Substring(colonPos + 1);
System\Net\Managed\ListenerAsyncResult.Managed.cs (1)
145!HttpListenerContext.TryParseBasicAuth(authHeader.Substring(AuthenticationTypes.Basic.Length + 1), out errorCode, out _, out _))
System\Net\Managed\ListenerPrefix.cs (2)
119_path = uri.Substring(root); 126_path = uri.Substring(root);
System\Net\ServiceNameStore.cs (1)
39string hostPortAndDistinguisher = inputServiceName.Substring(shashIndex + 1); // Excludes slash
System.Net.Security (1)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
177string hostPortAndDistinguisher = inputServiceName.Substring(slashIndex + 1); // Excludes slash
System.Net.WebHeaderCollection (1)
System\Net\WebHeaderCollection.cs (1)
320string value = header.Substring(colpos + 1);
System.Private.CoreLib (22)
src\libraries\Common\src\System\IO\StringParser.cs (1)
320return _buffer.Substring(_startIndex);
src\libraries\System.Private.CoreLib\src\System\AppContextConfigHelper.cs (3)
38str = str.Substring(2); 141str = str.Substring(2); 251str = str.Substring(2);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
5870string evtName = key.Substring("event_".Length);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (1)
804metaData.AddRange(Encoding.UTF8.GetBytes(value.Substring(1)));
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
2037string symbol = dateWords[i].Substring(1);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (1)
53expression = expression.Substring(directoryName.Length + 1);
src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (2)
160s = s.Substring(pos); 207string result = s.Substring(pos);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
1883splitStrings[arrIndex] = Substring(currIndex);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.Unix.cs (1)
286return timeZoneId.Substring(i + 1).Replace('_', ' ');
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
1109zoneAbbreviations.Substring(index);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (4)
209timeZoneId = zoneTabFileLine.Substring(startIndex); 232result = result.Substring(1); 256id = symlinkPath.Substring(timeZoneDirectory.Length); 334id = id.Substring(timeZoneDirectory.Length);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (2)
43return typeName.Substring(i + 1); 612parameters = className.Substring(i);
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
428m_strName = name.Substring(iLast + 1);
src\System\Reflection\RuntimeModule.cs (1)
505return s.Substring(i + 1);
src\System\RuntimeType.CoreCLR.cs (1)
2039name = fullname.Substring(nsDelimiter + 1);
System.Private.DataContractSerialization (13)
System\Runtime\Serialization\DataContract.cs (3)
1473typeName = DataContract.GetClrTypeFullName(type).Substring(nsLen).Replace('+', '.'); 1689localName = fullTypeName.Substring(nsEnd + 1).Replace('+', '.'); 1698return uriString.StartsWith(Globals.DataContractXsdBaseNamespace, StringComparison.Ordinal) ? uriString.Substring(Globals.DataContractXsdBaseNamespace.Length) : uriString;
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (1)
46ns = qname.Substring(colon + 1);
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
175serverTypeNamespace = serverTypeNamespace.Substring(1); 208serverTypeNamespace = serverTypeNamespace.Substring(1); 236ns = qname.Substring(colon + 1);
System\Runtime\Serialization\SchemaExporter.cs (1)
278typeName = DataContract.GetClrTypeFullName(clrType).Substring(nsLen).Replace('+', '.');
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
447name = qname.Substring(colon + 1);
System\Xml\XmlBaseReader.cs (3)
536localName = name.Substring(index + 1); 1022localName = name.Substring(index + 1); 1150_value = value.Substring(actual);
System\Xml\XmlConverter.cs (1)
461localName = qname.Substring(index + 1).Trim();
System.Private.Uri (5)
System\Uri.cs (3)
620relativeStr = relativeStr.Substring(i + 1); 704path = path.Substring(1); 876result = result.Substring(1);
System\UriBuilder.cs (2)
87_fragment = extraValue.Substring(fragmentIndex); 296_password = userInfo.Substring(index + 1);
System.Private.Xml (43)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
1938lnameStr = _xnt.Add(prefixStr.Substring(6));
System\Xml\Core\XmlCharCheckingWriter.cs (1)
160text = text.Substring(i + 2);
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
109text = text.Substring(i + 2);
System\Xml\Core\XmlTextReaderImpl.cs (2)
5808_curNode.SetValue(_curNode.StringValue.Substring(_readValueOffset)); 5824_curNode.SetValue(_curNode.StringValue.Substring(_readValueOffset));
System\Xml\Core\XmlTextReaderImplAsync.cs (2)
3577_curNode.SetValue(_curNode.StringValue.Substring(_readValueOffset)); 3593_curNode.SetValue(_curNode.StringValue.Substring(_readValueOffset));
System\Xml\Dom\XmlNode.cs (1)
1296localName = name.Substring(colonPos + 1);
System\Xml\Schema\DtdParser.cs (2)
284_nameTable.Add(docTypeName.Substring(colonPos + 1))); 1483Throw(_curPos - systemId.Length - 1, SR.Xml_FragmentId, new string[] { systemId.Substring(systemId.IndexOf('#')), systemId });
System\Xml\Schema\DtdParserAsync.cs (1)
1108Throw(_curPos - systemId.Length - 1, SR.Xml_FragmentId, new string[] { systemId.Substring(systemId.IndexOf('#')), systemId });
System\Xml\Schema\XdrBuilder.cs (1)
523Uri ruri = _xmlResolver.ResolveUri(_baseUri, uri.Substring(x_schema.Length));
System\Xml\Schema\XdrValidator.cs (1)
339string url = uri.Substring(x_schema.Length);
System\Xml\Schema\XmlSchemaDataType.cs (1)
258canonicalUri = nameTable.Add(string.Concat(uri.AsSpan(0, offset), uri.Substring(offset).ToUpperInvariant()));
System\Xml\Serialization\Mappings.cs (2)
121return new XmlQualifiedName(XmlConvert.EncodeLocalName(name.Substring(colon + 1)), XmlConvert.EncodeLocalName(name.Substring(0, colon))).ToString(); 244Name = Name.Substring("xml:".Length);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
322string choiceName = colon < 0 ? xmlName : xmlName.Substring(colon + 1);
System\Xml\Serialization\Types.cs (1)
1409dims = type.Substring(nameLen);
System\Xml\Serialization\XmlReflectionImporter.cs (2)
2014string choiceName = colon < 0 ? xmlName : xmlName.Substring(colon + 1); 2136string choiceName = colon < 0 ? choiceId : choiceId.Substring(colon + 1);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
581System.Diagnostics.Debug.Assert(memberInfos.ContainsKey(source.Substring(3))); 582MemberInfo memInfo = memberInfos[source.Substring(3)];
System\Xml\Serialization\XmlSerializationReader.cs (3)
1143string localName = value!.Substring(colon + 1); 1428fixupReference = href.Substring(1); 1906xsiTypeName = (colon >= 0) ? value.Substring(colon + 1) : value;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (4)
2791Debug.Assert(memberInfos.ContainsKey(source.Substring(3))); 2792MemberInfo memInfo = memberInfos[source.Substring(3)]; 2865Debug.Assert(memberInfos.ContainsKey(source.Substring(3))); 2866memberMapping.MemberInfo = memberInfos[source.Substring(3)];
System\Xml\Serialization\XmlSerializationWriter.cs (2)
977_w.WriteAttributeString(prefix, localName.Substring(colon + 1), ns, value); 1004_w.WriteStartAttribute(prefix, localName.Substring(colon + 1), ns);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
2260string choiceName = colon < 0 ? xmlName : xmlName.Substring(colon + 1); 2502Debug.Assert(initValue.MemberInfo.Name == initValue.Arg.Substring(3));
System\Xml\ValidateNames.cs (2)
290localName = s.Substring(colonOffset + 1); 615lname = name.Substring(colonPos);
System\Xml\XPath\Internal\StringFunctions.cs (2)
162return (idx < 0) ? string.Empty : s1.Substring(idx + s2.Length); 203return str1.Substring((int)num);
System\Xml\Xsl\IlGen\XmlILTrace.cs (1)
201return s.Substring(4);
System\Xml\Xsl\Runtime\XmlCollation.cs (2)
183string lang = collationUri.LocalPath.Substring(1); 221foreach (string option in query.Substring(1).Split('&'))
System\Xml\Xsl\Runtime\XsltFunctions.cs (3)
53return (idx < 0) ? string.Empty : s1.Substring(idx + s2.Length); 65return value.Substring((int)startIndex - 1); 494return name.Substring(colonOffset + 1);
System.Private.Xml.Linq (1)
System\Xml\Linq\XNodeReader.cs (1)
1150localName = qualifiedName.Substring(i + 1);
System.Reflection.Context (1)
System\Reflection\Context\Custom\CustomType.cs (1)
218string targetPropertyName = name.Substring(4);
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\PathUtilities.cs (1)
52return (fileNameStart <= 0) ? path : path.Substring(fileNameStart);
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Helpers.cs (1)
220name = fullName.Substring(indexOfLastDot + 1);
System\Reflection\TypeLoading\Modules\RoModule.cs (1)
57return s.Substring(i + 1);
System.Resources.Extensions (1)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
472typeName = typeName.Substring(17); // Remove through '.'
System.Resources.Writer (1)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
472typeName = typeName.Substring(17); // Remove through '.'
System.Runtime.Serialization.Schema (4)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
481string nestedTypeName = XmlConvert.DecodeName(originalName.Substring(nestedTypeIndex + 1)); 1120string expectedName = (nestedTypeIndex <= 0 || nestedTypeIndex == dataContractName.Length - 1) ? dataContractName : dataContractName.Substring(nestedTypeIndex + 1); 1526AddToNamespace(builder, uriString.Substring(ImportGlobals.DataContractXsdBaseNamespace.Length), fragments);
System\Runtime\Serialization\Schema\SchemaImportHelper.cs (1)
73return uriString.StartsWith(ImportGlobals.DataContractXsdBaseNamespace, StringComparison.Ordinal) ? uriString.Substring(ImportGlobals.DataContractXsdBaseNamespace.Length) : uriString;
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\Utils.cs (2)
311string idref = uri.Substring(1); 332string idref = uri!.Substring(1);
System.Text.Json (1)
System\Text\Json\ThrowHelper.Serialization.cs (1)
485message = $"{message.Substring(0, iPos)} Path: {path} |{message.Substring(iPos)}";
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\Regex.Split.cs (1)
115state.results.Add(input.Substring(state.prevat));
System\Text\RegularExpressions\RegexCharClass.cs (1)
2022desc.Append('-').Append(DescribeSet(set.Substring(endPosition)));
System\Text\RegularExpressions\RegexNode.cs (2)
1349node.Str = node.Str.Substring(startingSpan.Length); 1749nextNode.Str = nextNode.Str.Substring(matchingCharsInMulti);
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
453subtractorCond = CreateBDDFromSetString(set.Substring(i));
System.Text.RegularExpressions.Generator (4)
RegexGenerator.Emitter.cs (1)
1892new(RegexNodeKind.Multi, multi.Options, multi.Str.Substring(1));
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
2022desc.Append('-').Append(DescribeSet(set.Substring(endPosition)));
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (2)
1349node.Str = node.Str.Substring(startingSpan.Length); 1749nextNode.Str = nextNode.Str.Substring(matchingCharsInMulti);
System.Web.HttpUtility (1)
System\Web\Util\UriUtil.cs (1)
47path = inputWithoutQueryFragment.Substring(schemeAndAuthorityLength);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonKeyTipAndContentSyncHelper.cs (1)
155return string.Concat(stringContent.Substring(0, accessorIndex), '_', stringContent.Substring(accessorIndex));
System.Windows.Forms.Analyzers.CSharp (4)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (4)
58style = font.Substring(styleIndex); 66sizeStr = font.Substring(nameIndex + 1); 96style = style.Substring(6); // style string always starts with style= 168units = text.Substring(splitPoint);
System.Xaml (7)
System\Xaml\Parser\MeScanner.cs (1)
246value = value.Substring(2);
System\Xaml\Parser\XamlPropertyName.cs (1)
55string name = (start == 0) ? dottedName : dottedName.Substring(start);
System\Xaml\Parser\XamlQualifiedName.cs (1)
91name = (start==0) ? longName : longName.Substring(start);
System\Xaml\Schema\ClrNamespaceUriParser.cs (2)
42clrNs = uriInput.Substring(clrNsStartIdx); 65assemblyName = uriInput.Substring(equalIdx + 1);
System\Xaml\Schema\TypeReflector.cs (2)
922name = mi.Name.Substring(KnownStrings.Get.Length); 946name = mi.Name.Substring(KnownStrings.Set.Length);
Templates.Blazor.Tests (6)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
201var listeningUrlString = listeningMessage.Substring(listeningMessage.IndexOf(
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
Templates.Blazor.WebAssembly.Auth.Tests (7)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
201var listeningUrlString = listeningMessage.Substring(listeningMessage.IndexOf(
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
src\Shared\E2ETesting\E2ETestOptions.cs (1)
27.ToDictionary(kvp => kvp.Key.Substring(TestingOptionsPrefix.Length + 1), kvp => kvp.Value);
Templates.Blazor.WebAssembly.Tests (7)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
201var listeningUrlString = listeningMessage.Substring(listeningMessage.IndexOf(
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
src\Shared\E2ETesting\E2ETestOptions.cs (1)
27.ToDictionary(kvp => kvp.Key.Substring(TestingOptionsPrefix.Length + 1), kvp => kvp.Value);
Templates.Mvc.Tests (7)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
201var listeningUrlString = listeningMessage.Substring(listeningMessage.IndexOf(
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
src\Shared\E2ETesting\E2ETestOptions.cs (1)
27.ToDictionary(kvp => kvp.Key.Substring(TestingOptionsPrefix.Length + 1), kvp => kvp.Value);
Templates.Tests (8)
BaselineTest.cs (1)
110?.Substring(namespaceDeclarationPrefix.Length);
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
201var listeningUrlString = listeningMessage.Substring(listeningMessage.IndexOf(
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
src\Shared\E2ETesting\E2ETestOptions.cs (1)
27.ToDictionary(kvp => kvp.Key.Substring(TestingOptionsPrefix.Length + 1), kvp => kvp.Value);
Test.Utilities (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
TestContentPackage (1)
CustomIntSerializer.cs (1)
28if (text.StartsWith("CUSTOM:", StringComparison.Ordinal) && int.TryParse(text.Substring(7), out var value))
Text.Analyzers (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
176return PathUtilities.CombinePathsUnchecked(baseRoot, path.Substring(1));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (4)
616var relativePath = childPath.Substring(parentPath.Length); 622relativePath = relativePath.Substring(start); 723var replacement = replacementPrefix + filePath.Substring(oldPrefix.Length); 742filePath = char.ToUpper(filePath[0]) + filePath.Substring(1);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
43string value = feature.Substring(equals + 1);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (2)
91return (index >= 0) ? path.Substring(index) : string.Empty; 193var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart);
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
77return convert(shortName[1]) + shortName.Substring(2); 82return convert(shortName[0]) + shortName.Substring(1);
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\BuildServerController.cs (1)
178pipeName = arg.Substring(pipeArgPrefix.Length);
VersioningWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
32.ToDictionary(kvp => kvp.Key.Substring("link_".Length), kvp => (object)kvp.Value[0]);
VisualBasicSyntaxGenerator (5)
Util\WriteUtils.vb (3)
535Return Char.ToLowerInvariant(s(0)) + s.Substring(1) 544Return Char.ToUpperInvariant(s(0)) + s.Substring(1) 570text = text.Substring(split).Trim()
Util\XmlRenamer.vb (1)
62s = s.Substring("Optional".Length)
XML\ParseTreeDescription.vb (1)
198Dim nodeTypeString = typeString.Substring(1)
Wasm.Performance.ConsoleHost (5)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
69var text = message.Substring(escapeScan);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
160longOption = arg.Substring(2).Split(new[] { ':', '=' }, 2); 164shortOption = arg.Substring(1).Split(new[] { ':', '=' }, 2);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
22LongName = part.Substring(2); 26var optName = part.Substring(1);
XmlFileLogger (7)
ItemGroupParser.cs (5)
30line = line.Substring(prefix.Length); 40var nameValue = ParseNameValue(lines[0].Substring(prefix.Length)); 64currentItem = new Item(line.Substring(8)); 70var nameValue = ParseNameValue(line.Substring(16)); 89var value = nameEqualsValue.Substring(equals + 1);
ObjectModel\Build.cs (2)
115string message = buildMessageEventArgs.Message.Substring(prefix.Length); 122var value = message.Substring(equals + 1);
xunit.console (6)
CommandLine.cs (2)
249ParseRspFile(option.Key.Substring(1)); 253optionName = optionName.Substring(1);
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\Native\PlatformApis.cs (2)
109result.Id = line.Substring(3).Trim(_idTrimChars); 113result.VersionId = line.Substring(11).Trim(_idTrimChars);
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (2)
79runtime = runtimeTargetName.Substring(seperatorIndex + 1); 376var version = Pool(nameWithVersion.Substring(seperatorPosition + 1));