Skip to content

Clarify array initializers and give examples for complex situations #1705

Open

Description

@jskeet

(Brought up by email.)

In particular:

  • Arrays of arrays
  • Multi-dimensional arrays

Activity

  1. added this to the C# 8.0 milestone on Jun 1, 2026
  2. self-assigned this
    on Jun 1, 2026
  3. jskeet commented on Jul 22, 2026

    @jskeet
    ContributorAuthor

    Also address this comment from #1554:

    Jon to file a new issue around mapping between nullable and non-nullable arrays, see #1386, to also include conversions - and anything else folks think is missing

    ... either file a new issue, or fix in the same PR.

  4. jskeet commented on Jul 22, 2026

    @jskeet
    ContributorAuthor

    Note that none of the examples of arrays have "genuinely trailing" question marks, e.g. string[]? array. That may be fine and deliberate, or it may need clarification.

  5. jskeet commented on Aug 26, 2026

    @jskeet
    ContributorAuthor

    Created #1792 for the conversions part, just to make them separable.

  6. jskeet commented on Sep 9, 2026

    @jskeet
    ContributorAuthor

    Moving to Pre-C# 9.0 - although we really would like to do this.

  7. modified the milestones: C# 8.0, Pre-C# 9.0 on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions