Skip to content
Discussion options

You must be logged in to vote

@brinko99 that's because the Set method takes a generic argument and when you set _name to a not-null value (which string.Empty is), the generic argument becomes string, as opposed string?. Therefore, the MemberNotNull is satisfied.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@brinko99
Comment options

@TahirAhmadov
Comment options

Answer selected by brinko99
@brinko99
Comment options

@TahirAhmadov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants