Skip to content

Add ImmutableArray Span-based APIs #22928

@jamesqo

Description

@jamesqo

EDIT see #22928 (comment) for the full API proposal.

@stephentoub You did not open a tracking issue for this in https://github.com/dotnet/corefx/issues/21281, although from the notes at dotnet/apireviews#40 it seems like this was approved (:tada:). So I took the liberty of moving the proposal here:

namespace System.Collections.Immutable
{
    public struct ImmutableArray<T>
    {
        public static implicit operator ReadOnlySpan<T>(ImmutableArray<T> array);
    }
}

Since the API seems to have been approved, this is intended to be a tracking issue for work towards implementing it.

Metadata

Metadata

Labels

api-approvedAPI was approved in API review, it can be implementedarea-System.Collectionsbreaking-changeIssue or PR that represents a breaking API or functional change over a previous release.help wanted[up-for-grabs] Good issue for external contributors

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions