Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MarcBruins
Created December 16, 2018 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcBruins/f72b433ff97e8fd5129482c08f5d62a7 to your computer and use it in GitHub Desktop.
Save MarcBruins/f72b433ff97e8fd5129482c08f5d62a7 to your computer and use it in GitHub Desktop.
Fix nullable constructor params
public class AuthSettings
{
public AuthSettings(Uri apiBase, string token, string? username)
{
Username = username;
//Handle other params
}
public string? Username { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment