public bool Equals(IPAddressRange other)
        {
            if (other == null)
                return false;

            return other.Family == Family && other.LowerBoundary.SequenceEqual(LowerBoundary) && other.UpperBoundary.SequenceEqual(UpperBoundary);
        }
        public void CreateIPRangeBan(IPAddressRange range, string notes, DateTime? expiry)
        {
            var ban = BanManager.Instance.FindIPRangeBan(x => x.Range.Equals(range));

            if (ban != null)
                throw new ArgumentException();

            BanManager.Instance.CreateIPRangeBan(range, notes, expiry);
        }
 public void CreateIPRangeBan(IPAddressRange range, string notes, DateTime? expiry)
 {
     Contract.Requires(range != null);
 }