Skip to content

Use collection expressions for dealing with collections #6

@YVbakker

Description

@YVbakker

As of c# 12 collection expressions seem to be the way to go when it comes to creating or accessing collections.
For example, stringBuilder[stringBuilder.Length - 1] could be rewritten as stringBuilder[^1].
Or new[] { Dot } could be rewritten as [Dot].

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions