Skip to content

Change AsSpan() on OwnedMemory to property Span and rename AsMemory #8877

@ahsonkhan

Description

@ahsonkhan

Introduced in dotnet/coreclr#13583.
There is currently a property on OwnedMemory called AsMemory. This is inconsistent with the OwnedMemory.AsSpan() method. Therefore, change the AsSpan() method into an abstract property named Span and rename the AsMemory property to just Memory.

dotnet/coreclr#13583 (comment)
dotnet/corefx#23701 (comment)

cc @KrzysztofCwalina, @stephentoub

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions