Skip to content

Commit 5ca7a77

Browse files
committed
Fix: merge
1 parent 6346334 commit 5ca7a77

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/System.Net.IPNetwork/IPNetworkCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public BigInteger Count
7777
{
7878
get
7979
{
80-
BigInteger count = BigInteger.Pow(2, this._cidrSubnet - this._cidr);
80+
var count = BigInteger.Pow(2, this._cidrSubnet - this._cidr);
8181
return count;
8282
}
8383
}

src/TestProject/IPNetworkTest/IPNetworkTryParseTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void TestTryParseIPAddressNetmaskAne6()
8080
public void TestTryParseIPAddressNetmaskAne7()
8181
{
8282
IPNetwork2 ipnet = null;
83-
bool parsed = IPNetwork2.TryParse("0.0.0.0", null, out ipnet);
83+
bool parsed = IPNetwork2.TryParse("0.0.0.0", netmask:null, out ipnet);
8484

8585
Assert.AreEqual(false, parsed, "parsed");
8686
Assert.AreEqual(null, ipnet, "ipnet");

src/TestProject/TryParseUnitTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void TestTryParseIPAddressNetmaskAne6()
7474
[TestMethod]
7575
public void TestTryParseIPAddressNetmaskAne7()
7676
{
77-
bool parsed = IPNetwork2.TryParse("0.0.0.0", null, out IPNetwork2 ipnet);
77+
bool parsed = IPNetwork2.TryParse("0.0.0.0", netmask:null, out IPNetwork2 ipnet);
7878

7979
Assert.AreEqual(false, parsed, "parsed");
8080
Assert.AreEqual(null, ipnet, "ipnet");

0 commit comments

Comments
 (0)