466 references to AsSpan
Aspire.Azure.Npgsql (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Dashboard (7)
Aspire.Hosting (2)
BuildActionTelemetryTable (1)
ClientSample (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)
illink (2)
ILLink.RoslynAnalyzer (2)
Metrics (3)
Metrics.Legacy (3)
Microsoft.AspNetCore.Components (9)
Microsoft.AspNetCore.DataProtection.Abstractions (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.Grpc.Swagger (2)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
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.ResponseCompression (1)
Microsoft.AspNetCore.Routing (7)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.Shared.Tests (3)
Microsoft.AspNetCore.WebUtilities (2)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.Diagnostics (1)
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 (3)
Microsoft.Extensions.WebEncoders (3)
Microsoft.Maui (1)
Microsoft.Maui.Graphics.Skia (1)
Microsoft.ML.Tokenizers (4)
Microsoft.ML.Tokenizers.Tests (2)
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)
Swaggatherer (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.ComponentModel.TypeConverter (1)
System.Data.Common (2)
System.Diagnostics.DiagnosticSource (12)
System.Diagnostics.Process (3)
System.Diagnostics.TextWriterTraceListener (8)
System.Drawing.Common (1)
System.IO.Packaging (2)
System.Memory (1)
System.Net.Http (11)
System.Net.HttpListener (10)
System.Net.Mail (4)
System.Net.NetworkInformation (8)
System.Net.Ping (2)
System.Net.Primitives (1)
System.Net.Requests (5)
System.Net.Security (3)
System.Net.WebHeaderCollection (2)
System.Private.CoreLib (49)
System.Private.DataContractSerialization (5)
System.Private.Uri (35)
System\Uri.cs (27)
665UriParser? syntax = CheckSchemeSyntax(relativeStr.AsSpan(0, i), ref error);
1064ReadOnlySpan<char> path = _string.AsSpan(start, _info.Offset.Query - start);
1234string.Concat(host.AsSpan(1, host.Length - 2), scopeId) :
1653result = _string.AsSpan(_info.Offset.Scheme, _info.Offset.End - _info.Offset.Scheme);
2302Debug.Assert(_string.AsSpan(0, idx).SequenceEqual(OriginalString.AsSpan(0, idx)));
2773ReadOnlySpan<char> slice = str.AsSpan(_info.Offset.User, _info.Offset.Host - _info.Offset.User);
2916FormatQueryOrFragment(str.AsSpan(offset, _info.Offset.Fragment - offset), ref dest, nonCanonical, formatAs, isQuery: true);
2926FormatQueryOrFragment(str.AsSpan(offset, _info.Offset.End - offset), ref dest, nonCanonical, formatAs, isQuery: false);
2987_string.AsSpan(_info.Offset.Scheme, _info.Offset.User - _info.Offset.Scheme),
2988_string.AsSpan(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host));
2999return string.Concat(_string.AsSpan(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host),
3014_string.AsSpan(_info.Offset.Scheme, _info.Offset.User - _info.Offset.Scheme),
3015_string.AsSpan(_info.Offset.Host, _info.Offset.Fragment - _info.Offset.Host));
3100return string.Concat(_string.AsSpan(_info.Offset.User, _info.Offset.Path - _info.Offset.User),
3110_string.AsSpan(_info.Offset.Scheme, _info.Offset.User - _info.Offset.Scheme),
3111_string.AsSpan(_info.Offset.Host, _info.Offset.End - _info.Offset.Host));
3219result = CheckCanonical(_string.AsSpan(idx, _info.Offset.Host - idx), '@', out _);
3355result = CheckCanonical(_string.AsSpan(idx, length - idx), delim, out int checkedChars);
3483result = CheckCanonical(_string.AsSpan(idx, length - idx), (syntaxFlags & (UriSyntaxFlags.MayHaveFragment)) != 0 ? '#' : c_EOL, out int charsChecked);
3531result = CheckCanonical(_string.AsSpan(idx, length - idx), c_EOL, out int checkedChars);
3651syntax = CheckSchemeSyntax(uriString.AsSpan(i, colonOffset), ref err);
4255dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));
4287dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));
4308dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));
4492return string.Concat(basePart.OriginalString.AsSpan(0, idx + 1), relativePart);
4497return string.Concat(basePart.OriginalString.AsSpan(0, idx + 1), relativePart);
System.Private.Xml (9)
System.Private.Xml.Linq (1)
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.Forms (17)
System.Windows.Forms.Design (6)
System.Xaml (2)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
Test.Utilities (3)
Text.Analyzers (3)
UIAutomationClientSideProviders (3)
Wasm.Performance.ConsoleHost (1)