Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Assigning nullable to non-nullable with C# 8
public string GetIsbn2(Book book)
=> book.Isbn ?? string.Empty;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.