Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Memory<T>.Span Property
Definition
- Namespace:
- System
- Assemblies:
- netstandard.dll, System.Runtime.dll
- Assembly:
- System.Runtime.dll
- Assembly:
- netstandard.dll
- Source:
- Memory.cs
- Source:
- Memory.cs
- Source:
- Memory.cs
- Source:
- Memory.cs
- Source:
- Memory.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a span from the current instance.
public:
property Span<T> Span { Span<T> get(); };
public Span<T> Span { get; }
member this.Span : Span<'T>
Public ReadOnly Property Span As Span(Of T)
Property Value
A span created from the current Memory<T> object.
Remarks
Although it doesn't involve copying, it's costly to access this property. Instead of accessing this property multiple times, it's better to assign its result to a variable (if possible).
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
