From e27d960403cb8c9b37486858626bfa09d5fda243 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Wed, 6 Mar 2019 12:38:08 +0300 Subject: [PATCH] Add a comment about the hosts func --- EduNetworkBuilder/IPAddress.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/EduNetworkBuilder/IPAddress.cs b/EduNetworkBuilder/IPAddress.cs index 9fe940f..3451e5a 100644 --- a/EduNetworkBuilder/IPAddress.cs +++ b/EduNetworkBuilder/IPAddress.cs @@ -241,6 +241,10 @@ namespace EduNetworkBuilder get { return NetworkAddress + ~_mask; } } + /// + /// Return the number of hosts in the subnet. + /// + /// public IEnumerable Hosts() { for (var host = NetworkAddress + 1; host < BroadcastAddress; host++)