Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
C#
»
C#: Arrays and collections
»
C#: Sets
Sets initialization in C#
Submitted by
obraztsov
on Fri, 12/04/2015 - 17:02
Forums:
C#: Sets
var
intSet =
new
HashSet
<
int
> {1, 2, 3};
var
strSet =
new
HashSet
<
String
> {
"one"
,
"two"
,
"three"
};
Log in
to post comments