528 references to AsSpan
aspire (2)
Aspire.Azure.Npgsql (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Dashboard (7)
Aspire.Hosting (2)
cdac-build-tool (1)
dotnet (3)
dotnet-aot (1)
dotnet-dev-certs (1)
dotnet-getdocument (1)
dotnet-openapi (1)
dotnet-razorpagegenerator (1)
dotnet-sql-cache (1)
dotnet-user-jwts (1)
dotnet-user-secrets (1)
GenerateDocumentationAndConfigFiles (3)
GetDocument.Insider (1)
ILAssembler (1)
ILCompiler.Compiler (1)
ILCompiler.ReadyToRun (2)
ILCompiler.RyuJit (2)
illink (2)
ILLink.RoslynAnalyzer (2)
Microsoft.AspNetCore.Antiforgery (2)
Microsoft.AspNetCore.Components (11)
Microsoft.AspNetCore.Components.AI (1)
Microsoft.AspNetCore.DataProtection.Abstractions (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Connections (2)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Razor (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.Routing (8)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.WebUtilities (2)
Microsoft.Build (14)
Evaluation\ExpressionShredder.cs (5)
164string itemName = Strings.WeakIntern(expression.AsSpan(startOfName, currentIndex - startOfName));
262ItemExpressionCapture expressionCapture = new ItemExpressionCapture(startPoint, endPoint - startPoint, Strings.WeakIntern(expression.AsSpan(startPoint, endPoint - startPoint)), itemName, separator, separatorStart, transformExpressions);
473string firstName = Strings.WeakIntern(expression.AsSpan(startOfText, i - startOfText));
491metadataName = Strings.WeakIntern(expression.AsSpan(startOfText, i - startOfText));
646functionArguments = Strings.WeakIntern(expression.AsSpan(startFunctionArguments, endFunctionArguments - startFunctionArguments));
Microsoft.Build.Framework (7)
Microsoft.Build.Tasks.Core (8)
Microsoft.Build.Tasks.Git (1)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.Razor.Compiler (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.DotNet.ProjectTools (1)
Microsoft.DotNet.TemplateLocator (1)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (4)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.EventLog (2)
Microsoft.Extensions.Primitives (3)
Microsoft.Extensions.Telemetry (2)
Microsoft.Extensions.WebEncoders (3)
Microsoft.Maui (1)
Microsoft.Maui.Graphics.Skia (1)
Microsoft.ML.Tokenizers (4)
Microsoft.ML.Tokenizers.Tests (2)
Microsoft.NET.Build.Tasks (2)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
Microsoft.NET.Sdk.WorkloadManifestReader (1)
Microsoft.NET.StringTools (2)
Microsoft.SourceLink.AzureDevOpsServer.Git (1)
Microsoft.SourceLink.AzureRepos.Git (1)
Microsoft.SourceLink.Bitbucket.Git (1)
Microsoft.SourceLink.Common (1)
Microsoft.SourceLink.Gitea (1)
Microsoft.SourceLink.Gitee (1)
Microsoft.SourceLink.GitHub (1)
Microsoft.SourceLink.GitLab (1)
Microsoft.SourceLink.GitWeb (1)
NuGet.Commands (1)
PresentationBuildTasks (1)
PresentationCore (5)
PresentationFramework (25)
MS\Internal\Data\RBNode.cs (4)
820node.LeftSize = Int32.Parse(s.AsSpan(0, index), TypeConverterHelper.InvariantEnglishUS);
824node.Size = Int32.Parse(s.AsSpan(0, index), TypeConverterHelper.InvariantEnglishUS);
830node.SetItemAt(k, AsT(Int32.Parse(s.AsSpan(0, index), TypeConverterHelper.InvariantEnglishUS)));
834node.SetItemAt(node.Size - 1, AsT(Int32.Parse(s.AsSpan(0, index), TypeConverterHelper.InvariantEnglishUS)));
Roslyn.Diagnostics.Analyzers (3)
Roslyn.Diagnostics.CSharp.Analyzers (1)
System.CodeDom (1)
System.Collections.Immutable (23)
System\Collections\Frozen\String\KeyAnalyzer.cs (11)
88static (string s, int index, int count) => s.AsSpan(index, count));
112static (string s, int index, int count) => s.AsSpan(s.Length + index, count));
258public override bool Equals(string? x, string? y) => x.AsSpan(IsLeft ? Index : (x!.Length + Index), Count).SequenceEqual(y.AsSpan(IsLeft ? Index : (y!.Length + Index), Count));
259public override int GetHashCode(string s) => Hashing.GetHashCodeOrdinal(s.AsSpan(IsLeft ? Index : (s.Length + Index), Count));
264public override bool Equals(string? x, string? y) => x.AsSpan(IsLeft ? Index : (x!.Length + Index), Count).Equals(y.AsSpan(IsLeft ? Index : (y!.Length + Index), Count), StringComparison.OrdinalIgnoreCase);
265public override int GetHashCode(string s) => Hashing.GetHashCodeOrdinalIgnoreCase(s.AsSpan(IsLeft ? Index : (s.Length + Index), Count));
270public override bool Equals(string? x, string? y) => x.AsSpan(IsLeft ? Index : (x!.Length + Index), Count).Equals(y.AsSpan(IsLeft ? Index : (y!.Length + Index), Count), StringComparison.OrdinalIgnoreCase);
271public override int GetHashCode(string s) => Hashing.GetHashCodeOrdinalIgnoreCaseAscii(s.AsSpan(IsLeft ? Index : (s.Length + Index), Count));
System.CommandLine (2)
System.ComponentModel.TypeConverter (1)
System.Configuration.ConfigurationManager (5)
System.Data.Common (2)
System.Diagnostics.DiagnosticSource (11)
System.Diagnostics.Process (7)
System.Diagnostics.TextWriterTraceListener (8)
System.Drawing.Common (1)
System.IO.Compression.ZipFile (1)
System.IO.Packaging (2)
System.Memory (1)
System.Net.Http (14)
System.Net.HttpListener (10)
System.Net.Mail (4)
System.Net.NetworkInformation (12)
System.Net.Ping (2)
System.Net.Primitives (3)
System.Net.Requests (5)
System.Net.Security (3)
System.Net.WebHeaderCollection (2)
System.Net.WebProxy (1)
System.Private.CoreLib (58)
System.Private.DataContractSerialization (6)
System.Private.Uri (34)
System\Uri.cs (27)
651UriParser? syntax = CheckSchemeSyntax(relativeStr.AsSpan(0, i), ref error);
1048ReadOnlySpan<char> path = _string.AsSpan(start, _info.Offset.Query - start);
1218string.Concat(host.AsSpan(1, host.Length - 2), scopeId) :
1637result = _string.AsSpan(_info.Offset.Scheme, _info.Offset.End - _info.Offset.Scheme);
2286Debug.Assert(_string.AsSpan(0, idx).SequenceEqual(OriginalString.AsSpan(0, idx)));
2757ReadOnlySpan<char> slice = str.AsSpan(_info.Offset.User, _info.Offset.Host - _info.Offset.User);
2900FormatQueryOrFragment(str.AsSpan(offset, _info.Offset.Fragment - offset), ref dest, nonCanonical, formatAs, isQuery: true);
2910FormatQueryOrFragment(str.AsSpan(offset, _info.Offset.End - offset), ref dest, nonCanonical, formatAs, isQuery: false);
2971_string.AsSpan(_info.Offset.Scheme, _info.Offset.User - _info.Offset.Scheme),
2972_string.AsSpan(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host));
2983return string.Concat(_string.AsSpan(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host),
2998_string.AsSpan(_info.Offset.Scheme, _info.Offset.User - _info.Offset.Scheme),
2999_string.AsSpan(_info.Offset.Host, _info.Offset.Fragment - _info.Offset.Host));
3084return string.Concat(_string.AsSpan(_info.Offset.User, _info.Offset.Path - _info.Offset.User),
3094_string.AsSpan(_info.Offset.Scheme, _info.Offset.User - _info.Offset.Scheme),
3095_string.AsSpan(_info.Offset.Host, _info.Offset.End - _info.Offset.Host));
3202Check result = CheckCanonical(inputStr.AsSpan(userStart, _info.Offset.Host - userStart), '@', out _);
3262Check result = CheckCanonical(inputStr.AsSpan(idx, length - idx), delim, out int checkedChars);
3358Check result = CheckCanonical(inputStr.AsSpan(idx, length - idx), (syntaxFlags & (UriSyntaxFlags.MayHaveFragment)) != 0 ? '#' : c_EOL, out int charsChecked);
3386Check result = CheckCanonical(inputStr.AsSpan(idx, length - idx), c_EOL, out int checkedChars);
3602syntax = CheckSchemeSyntax(uriString.AsSpan(i, colonOffset), ref err);
4195dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));
4227dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));
4248dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));
4434return string.Concat(basePart.OriginalString.AsSpan(0, idx + 1), relativePart);
4439return string.Concat(basePart.OriginalString.AsSpan(0, idx + 1), relativePart);
System.Private.Xml (10)
System.Private.Xml.Linq (4)
System.Reflection.Emit (1)
System.Reflection.Metadata (2)
System.ServiceModel.Syndication (1)
System.Text.Encodings.Web (3)
System.Text.RegularExpressions (13)
System.Text.RegularExpressions.Generator (7)
System.Transactions.Local (2)
System.Web.HttpUtility (6)
System.Windows.Controls.Ribbon (1)
System.Windows.Extensions (1)
System.Windows.Forms (17)
System.Windows.Forms.Design (6)
System.Xaml (2)
UIAutomationClientSideProviders (3)