Skip to content

ImmutableArray<T>.ToBuilder method has incorrect remark #4262

@joost-morsink

Description

@joost-morsink

The remarks section of the ToBuilder method of the ImmutableArray class (System.Collections.Immutable) incorrectly states it is an O(1) operation.
The implementation calls an AddRange on the Builder class, which is clearly O(n).

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions