Skip to content

Tutorial: generics, nullable constraints and nullable attributes #13417

@BillWagner

Description

@BillWagner

In this tutorial, explain how to annotate a generic class, and a set of generic methods using the notnull constraints, and related attributes:

  • AllowNull
  • DisallowNull
  • MaybeNull, MaybeNullWhen(bool)
  • NotNull, NotNullWhen(bool)
  • NotNullIfNotNull(string)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions