Skip to content

Commit 7eb06dd

Browse files
ClémentClément
authored andcommitted
Moving Address class out of Program class.
1 parent 7db9531 commit 7eb06dd

File tree

3 files changed

+17
-36
lines changed

3 files changed

+17
-36
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

source/code/projects/Dictionary_chaining/Dictionary/Program.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
11
using System;
22
using 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-
224
class Program
235
{
246
static void Main(string[] args)

source/code/projects/Dictionary_open_addressing/Dictionary/Program.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
11
using System;
22
using 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-
224
class Program
235
{
246
static void Main(string[] args)

0 commit comments

Comments
 (0)