-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathIPNetTable.cs
More file actions
46 lines (33 loc) · 884 Bytes
/
IPNetTable.cs
File metadata and controls
46 lines (33 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System.Collections;
using System.Collections.Generic;
namespace IPHelper
{
public class IPNetTable : IEnumerable<IPNetRow>
{
#region Private Fields
private readonly IEnumerable<IPNetRow> _ipNetRows;
#endregion
#region Constructors
public IPNetTable(IEnumerable<IPNetRow> tcpRows)
{
_ipNetRows = tcpRows;
}
#endregion
#region Public Properties
public IEnumerable<IPNetRow> Rows
{
get { return _ipNetRows; }
}
#endregion
#region IEnumerable<IPNetRow> Members
public IEnumerator<IPNetRow> GetEnumerator()
{
return _ipNetRows.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return _ipNetRows.GetEnumerator();
}
#endregion
}
}