File tree Expand file tree Collapse file tree 3 files changed +17
-36
lines changed
Dictionary_chaining/Dictionary
Dictionary_open_addressing/Dictionary Expand file tree Collapse file tree 3 files changed +17
-36
lines changed Original file line number Diff line number Diff line change 1+ // A simple, dummy class, to illustrate that
2+ // dictionaries can contain any type of
3+ // values, even complex ones.
4+ public class Address
5+ {
6+ public string Street { get ; set ; }
7+
8+ public Address ( string streetP )
9+ {
10+ Street = streetP ;
11+ }
12+
13+ public override string ToString ( )
14+ {
15+ return Street ;
16+ }
17+ }
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33
4- // A simple, dummy class, to illustrate that
5- // dictionaries can contain any type of
6- // values, even complex ones.
7- public class Address
8- {
9- public string Street { get ; set ; }
10-
11- public Address ( string streetP )
12- {
13- Street = streetP ;
14- }
15-
16- public override string ToString ( )
17- {
18- return Street ;
19- }
20- }
21-
224class Program
235{
246 static void Main ( string [ ] args )
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33
4- // A simple, dummy class, to illustrate that
5- // dictionaries can contain any type of
6- // values, even complex ones.
7- public class Address
8- {
9- public string Street { get ; set ; }
10-
11- public Address ( string streetP )
12- {
13- Street = streetP ;
14- }
15-
16- public override string ToString ( )
17- {
18- return Street ;
19- }
20- }
21-
224class Program
235{
246 static void Main ( string [ ] args )
You can’t perform that action at this time.
0 commit comments