Skip to content

How to declare collection of non-nullable references? #54

Description

@sherlock1982

I use conventional builder to make my model.
Somewhere I have this definition:

    [DataMember]
    public string[]? Codecs { get; set; }

And in metadata it looks like this:

<Property Name="Codecs" Type="Collection(Edm.String)"/>

Which is from my understanding a nullable collection of nullable strings.
I do understand that from a code point of view string is a nullable reference type.
But is there a way to declare that this specific collection contains non-nullable strings?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions