Skip to content

MemberNotNullWhen on interface members? #8682

Answered by HaloFour
weitzhandler asked this question in General
Discussion options

You must be logged in to vote

Those attributes apply to nullable reference types, not value types. You still have to cast from int? to int as they are two separate types.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@weitzhandler
Comment options

@TahirAhmadov
Comment options

Answer selected by weitzhandler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants