private DhcpServerIpRange GetIpRange() { return(EnumSubnetElements(DHCP_SUBNET_ELEMENT_TYPE_V5.DhcpIpRangesDhcpBootp) .Select(e => DhcpServerIpRange.FromNative(e.ReadIpRange())) .First()); }
private List <DhcpServerIpRange> GetExcludedIpRanges() { return(EnumSubnetElements(DHCP_SUBNET_ELEMENT_TYPE_V5.DhcpExcludedIpRanges) .Select(e => DhcpServerIpRange.FromNative(e.ReadExcludeIpRange())) .ToList()); }