1381 references to Substring
aspire (4)
Aspire.Azure.Messaging.EventHubs (1)
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Cli.Tests (1)
Aspire.Dashboard (8)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (1)
Aspire.Hosting.CodeGeneration.Python (1)
Aspire.Hosting.EntityFrameworkCore (1)
Aspire.Hosting.Garnet.Tests (1)
Aspire.Hosting.Integration.Analyzers (6)
Aspire.Hosting.JavaScript (1)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Redis.Tests (1)
Aspire.Hosting.Valkey.Tests (1)
Aspire.Templates.Tests (1)
Client.ExpectedExceptions.IntegrationTests (1)
ConfigurationSchemaGenerator (2)
crossgen2 (2)
Crossgen2Tasks (2)
csc (2)
CSharpSyntaxGenerator (1)
dotnet (17)
dotnet-aot (6)
dotnet-dev-certs (5)
dotnet-getdocument (5)
dotnet-Microsoft.XmlSerializer.Generator (4)
dotnet-openapi (5)
dotnet-razorpagegenerator (1)
dotnet-sourcelink (2)
dotnet-sql-cache (5)
dotnet-suggest (3)
dotnet-svcutil-lib (81)
dotnet-svcutil-lib.Tests (1)
dotnet-svcutil.xmlserializer (7)
dotnet-user-jwts (6)
dotnet-user-secrets (5)
GenerateDocumentationAndConfigFiles (10)
GetDocument.Insider (5)
ILAssembler (2)
ilc (5)
ILCompiler.Compiler (6)
ILCompiler.ReadyToRun (4)
ILCompiler.RyuJit (1)
illink (11)
ILLink.RoslynAnalyzer (1)
ILLink.Tasks (2)
Infrastructure.Common (2)
Infrastructure.Tests (1)
Microsoft.Analyzers.Extra (2)
Microsoft.Analyzers.Local (2)
Microsoft.AspNetCore.Authentication.Cookies (1)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.Negotiate (3)
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Components.AI.SourceGenerators (1)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Http (3)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Results (2)
Microsoft.AspNetCore.InternalTesting (4)
Microsoft.AspNetCore.Mvc.Core (5)
Microsoft.AspNetCore.Mvc.Razor (3)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.Owin (1)
Microsoft.AspNetCore.Rewrite (15)
Microsoft.AspNetCore.Routing (8)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.Build (19)
Microsoft.Build.Framework (22)
Microsoft.Build.Tasks.CodeAnalysis (8)
Microsoft.Build.Tasks.Core (16)
Microsoft.Build.Utilities.Core (1)
Microsoft.CodeAnalysis (32)
Microsoft.CodeAnalysis.Analyzers (10)
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
Microsoft.CodeAnalysis.CodeStyle (10)
Microsoft.CodeAnalysis.CSharp (11)
Microsoft.CodeAnalysis.Extensions.Package (2)
Microsoft.CodeAnalysis.Features (11)
Microsoft.CodeAnalysis.Razor.Compiler (17)
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
Microsoft.CodeAnalysis.VisualBasic (8)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
Microsoft.CodeAnalysis.Workspaces (11)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Microsoft.CSharp (1)
Microsoft.Data.Analysis (1)
Microsoft.Data.Analysis.Tests (1)
Microsoft.Deployment.DotNet.Releases (3)
Microsoft.Diagnostics.DataContractReader.DataGenerator (2)
Microsoft.Diagnostics.NETCore.Client (8)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.DotNet.Arcade.Sdk (5)
Microsoft.DotNet.Build.Manifest (2)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Installers (12)
Microsoft.DotNet.Build.Tasks.Packaging (4)
Microsoft.DotNet.Build.Tasks.Templating (1)
Microsoft.DotNet.Build.Tasks.VisualStudio (4)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.Cli.Definitions (5)
Microsoft.DotNet.Cli.Telemetry (1)
Microsoft.DotNet.Cli.Utils (6)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.HotReload.Watch (3)
Microsoft.DotNet.MacOsPkg.Core (1)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.SdkResolver (1)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.TemplateLocator (10)
Microsoft.DotNet.XliffTasks (3)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.Configuration (2)
Microsoft.Extensions.Configuration.Abstractions (2)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (2)
Microsoft.Extensions.Configuration.CommandLine (3)
Microsoft.Extensions.Configuration.EnvironmentVariables (2)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.DependencyModel (2)
Microsoft.Extensions.FileProviders.Embedded (1)
Microsoft.Extensions.FileProviders.Physical (3)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Interop.ComInterfaceGenerator (3)
Microsoft.Interop.JavaScript.JSImportGenerator (3)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Maui (5)
Microsoft.Maui.Controls (6)
Microsoft.Maui.Controls.Build.Tasks (10)
Microsoft.Maui.Controls.SourceGen (2)
Microsoft.Maui.Controls.Xaml (13)
Microsoft.Maui.Graphics (3)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML (1)
Microsoft.ML.AutoML.SourceGenerator (6)
Microsoft.ML.CodeGenerator (11)
Microsoft.ML.Core (13)
Microsoft.ML.Data (18)
Microsoft.ML.GenAI.Core (2)
Microsoft.ML.GenAI.Mistral (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.Sweeper (3)
Microsoft.ML.TensorFlow (3)
Microsoft.ML.TestFramework (3)
Microsoft.ML.Tokenizers (6)
Microsoft.ML.Tokenizers.Tests (7)
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)
Microsoft.NET.Build.Containers (6)
Microsoft.NET.Build.Extensions.Tasks (2)
Microsoft.NET.Build.Tasks (16)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
Microsoft.NET.Sdk.Publish.Tasks (3)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
Microsoft.NET.Sdk.WorkloadManifestReader (10)
Microsoft.SourceLink.Tools.Package (2)
Microsoft.TemplateEngine.Cli (2)
Microsoft.TemplateEngine.Core (3)
Microsoft.TemplateEngine.Edge (9)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (8)
Microsoft.TemplateEngine.Utils (18)
InMemoryFileSystem.cs (15)
39string rel = path.Substring(_root.FullPath.Length).Trim('/', '\\');
69string rel = path.Substring(_root.FullPath.Length).Trim('/', '\\');
104string rel = path.Substring(_root.FullPath.Length).Trim('/', '\\');
142string rel = directory.Substring(_root.FullPath.Length).Trim('/', '\\');
179string rel = path.Substring(_root.FullPath.Length).Trim('/', '\\');
259string rel = path.Substring(_root.FullPath.Length).Trim('/', '\\');
341string rel = directoryName.Substring(_root.FullPath.Length).Trim('/', '\\');
443string rel = path.Substring(_root.FullPath.Length).Trim('/', '\\');
469string rel = file.Substring(_root.FullPath.Length).Trim('/', '\\');
499string rel = path.Substring(_root.FullPath.Length).Trim('/', '\\');
557string rel = file.Substring(_root.FullPath.Length).Trim('/', '\\');
589string rel = file.Substring(_root.FullPath.Length).Trim('/', '\\');
620string rel = file.Substring(_root.FullPath.Length).Trim('/', '\\');
651string rel = file.Substring(_root.FullPath.Length).Trim('/', '\\');
710path = path.Substring(1);
Microsoft.TemplateSearch.Common (1)
Microsoft.TestPlatform.AdapterUtilities (1)
Microsoft.TestPlatform.Build (1)
Microsoft.VisualBasic.Core (20)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
Microsoft.Web.XmlTransform (7)
Microsoft.Win32.Registry (1)
Mono.Cecil (3)
Mono.Cecil.Pdb (4)
MSBuild (7)
NuGet.Build.Tasks.Pack (1)
NuGet.CommandLine.XPlat (3)
NuGet.Commands (4)
NuGet.Common (5)
NuGet.Configuration (2)
NuGet.PackageManagement (5)
NuGet.Packaging (13)
NuGet.ProjectModel (4)
NuGet.Protocol (5)
NuGet.Versioning (2)
PresentationBuildTasks (44)
PresentationCore (17)
PresentationFramework (66)
ReachFramework (5)
RepoTasks (1)
Roslyn.Diagnostics.Analyzers (10)
rzc (6)
sdk-tasks (4)
SuperFileCheck (1)
System.CodeDom (3)
System.CommandLine (4)
System.ComponentModel.Composition (1)
System.ComponentModel.TypeConverter (3)
System.Configuration.ConfigurationManager (5)
System.Console (1)
System.Data.Common (5)
System.Data.Odbc (3)
System.Data.OleDb (4)
System.Diagnostics.EventLog (2)
System.Diagnostics.PerformanceCounter (1)
System.Diagnostics.Process (1)
System.DirectoryServices (21)
System\DirectoryServices\ActiveDirectory\Utils.cs (8)
284string bindingDN = dn.Substring(index + 1);
605username = tmpUsername.Substring(index + 1);
1025serverName = Locator.GetDomainControllerInfo(null, source, null, (long)flag).DomainControllerName.Substring(2);
1035serverName = Locator.GetDomainControllerInfo(null, source, null, (long)flag).DomainControllerName.Substring(2);
1052serverName = Locator.GetDomainControllerInfo(null, source, null, (long)flag).DomainControllerName.Substring(2);
1057serverName = Locator.GetDomainControllerInfo(null, source, null, (long)flag).DomainControllerName.Substring(2);
1924portNumber = serverName.Substring(lastColon + 1);
1945portNumber = serverName.Substring(lastColon + 1);
System.DirectoryServices.AccountManagement (7)
System.Formats.Tar (2)
System.IO.Compression (2)
System.IO.IsolatedStorage (2)
System.IO.Packaging (3)
System.Management (5)
System.Net.Http (11)
System.Net.HttpListener (6)
System.Net.NetworkInformation (1)
System.Net.Requests (1)
System.Net.Security (2)
System.Net.WebHeaderCollection (1)
System.Private.CoreLib (20)
System.Private.DataContractSerialization (13)
System.Private.Uri (5)
System.Private.Xml (43)
System.Private.Xml.Linq (1)
System.Reflection.Context (1)
System.Reflection.Metadata (1)
System.Reflection.MetadataLoadContext (2)
System.Resources.Extensions (1)
System.Resources.Writer (1)
System.Runtime.InteropServices.JavaScript (4)
System.Runtime.Serialization.Schema (4)
System.Security.Cryptography.Xml (2)
System.ServiceModel.Http (2)
System.ServiceModel.Primitives (13)
System.ServiceProcess.ServiceController (1)
System.Speech (17)
System.Text.Json (1)
System.Text.Json.SourceGeneration (2)
System.Text.RegularExpressions (6)
System.Text.RegularExpressions.Generator (4)
System.Web.HttpUtility (1)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms.Analyzers.CSharp (4)
System.Xaml (7)
vbc (2)
VBCSCompiler (2)
vstest.console (6)
vstest.console.arm64 (6)