• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lduchosal / ipnetwork / 960

15 May 2026 07:18AM UTC coverage: 0.0% (-94.1%) from 94.053%
960

Pull #411

appveyor

web-flow
Merge ef6b054ce into 4cec191ae
Pull Request #411: Bump MSTest.TestFramework from 4.2.2 to 4.2.3

0 of 2438 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/System.Net.IPNetwork/IPNetwork2IEquatableIPNetworkMembers.cs
1
// <copyright file="IPNetwork2IEquatableIPNetworkMembers.cs" company="IPNetwork">
2
// Copyright (c) IPNetwork. All rights reserved.
3
// </copyright>
4

5
namespace System.Net;
6

7
/// <summary>
8
/// IEquatable.
9
/// </summary>
10
public sealed partial class IPNetwork2 : IComparable<IPNetwork2>, IEquatable<IPNetwork2>
11
{
12
    /// <summary>
13
    /// Compare two ipnetworks.
14
    /// </summary>
15
    /// <param name="left">An IPNetwork to compare.</param>
16
    /// <param name="right">An other IPNetwork to compare to.</param>
17
    /// <returns>true if obj has the same value as this instance; otherwise, false.</returns>
18
    public static bool Equals(IPNetwork2? left, IPNetwork2? right)
19
    {
×
20
        return Compare(left, right) == 0;
×
21
    }
×
22

23
    /// <summary>
24
    /// Compare two ipnetworks.
25
    /// </summary>
26
    /// <param name="other">An IPNetwork to compare to this instance.</param>
27
    /// <returns>true if obj has the same value as this instance; otherwise, false.</returns>
28
    public bool Equals(IPNetwork2? other)
29
    {
×
30
        return Equals(this, other);
×
31
    }
×
32

33
    /// <summary>
34
    /// Compare two ipnetworks.
35
    /// </summary>
36
    /// <param name="obj">An object value to compare to this instance.</param>
37
    /// <returns>true if obj has the same value as this instance; otherwise, false.</returns>
38
    public override bool Equals(object? obj)
39
    {
×
40
        return Equals(this, obj as IPNetwork2);
×
41
    }
×
42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc