jsakamoto / ipaddressrange

.NET Class Library for range of IP address, both IPv4 and IPv6.
Mozilla Public License 2.0
370 stars 71 forks source link

Range overlaps #2

Closed zam6ak closed 9 years ago

zam6ak commented 10 years ago

Would you consider adding a feature to allow another IPAddressRange in .Contains()? So you can do something like var overlaps = range1.Contains(range2) This would be useful to check for subnet ovelaps...

jsakamoto commented 10 years ago

Oh, sorry, I'm missed your request in these few days.

I would like to consider your suggestion.

Please let me for more few days.

Thanks!

jsakamoto commented 10 years ago

I tried it.

https://github.com/jsakamoto/ipaddressrange/commit/d558e92d5e94c8aaa6f5b4a82027a28d69bf2d3a

You can get the latest Beta version:

PM> Install-Package IPAddressRange -Pre

https://www.nuget.org/packages/IPAddressRange/1.1.0-beta

Is it helpful for you?