Skip to content

Instantly share code, notes, and snippets.

@idg10
Created September 30, 2020 12:15
Show Gist options
  • Save idg10/f14b43146b55fafc8df393aa72baddf1 to your computer and use it in GitHub Desktop.
Save idg10/f14b43146b55fafc8df393aa72baddf1 to your computer and use it in GitHub Desktop.
A bad way to make a CS8618 warning go away
public class Person
{
// This gets rid of the CS8618 warning, but it is
// A BAD IDEA!
public string FavouriteColour { get; set; } = "";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment