title: Calculate IP range by subnet mask
body: <p>If I have a subnet mask e.g. <code>255.255.255.0</code> and an ip address <code>192.168.1.5</code>, is there an easy way to determine all the possible ip addresses within this subnet?</p>
  
  <p>In this case:</p>
  
  <pre><code>192.168.1.1
  192.168.1.2
  192.168.1.3
  192.168.1.4
  ...
  ...
  192.168.1.252
  192.168.1.253
  192.168.1.254
  192.168.1.255
  </code></pre>
  
  <p>All I found until now are heavy overloaded .net libraries. Isn't there any native way to solve this with the default namespaces?</p>