Skip to content

Instantly share code, notes, and snippets.

@Splagoon
Last active January 2, 2016 10:19
Show Gist options
  • Save Splagoon/8288765 to your computer and use it in GitHub Desktop.
Save Splagoon/8288765 to your computer and use it in GitHub Desktop.
public class SomeClass
{
public HashSet<int> HashSet;
}
void Main()
{
// Pop quiz: does the following line work?
var someVar = new SomeClass { HashSet = { 1, 2, 3 } };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment