Skip to content

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

@sherlock1982

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?

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